LaTex to Work With Symbolic Expressions

  • #1
269
37
Summary:
I'm curious if there's a tool out there to work with symbolic expressions (defining, substituting, solving), but with a natural display using LaTex as opposed to a coding language.
For many of the problems in my engineering courses (as well as other STEM courses and maybe even in industry), much of the work is in algebraic manipulation of equations. These problems could be solved using by using symbolic expressions in a coding language like MATLAB. However, it is very clunky to copy those equations over and write the code to solve the problems, is prone to mistakes, and is much more difficult for others to see the steps. Is there an interface which has the basic functionality (defining variables and equations, substitutions, and solving in terms of a variable), but is natural to write and read in? I was imagining using something like Math Quill so the user can write the equations in directly. If it were a site, I think it would also be helpful to allow people to share and build off of what other people made on the site, and to allow people to export it as code.
 

Answers and Replies

  • #2
pasmith
Homework Helper
2,004
637
SymPy in a jupyter workbook?
 
  • Like
Likes S.G. Janssens
  • #3
269
37
SymPy does seem very neat. I was thinking of something a bit more like Desmos as used here (the graph part isn't relevant), but where you can also define and use systems of equations to solve for symbolically.
 
  • #5
S.G. Janssens
Science Advisor
Education Advisor
956
725
SymPy in a jupyter workbook?
I would very much recommend that, too. It has very good documentation.

Maybe to add to this, it it worth mentioning that when execution speed becomes a problem (as it sometimes does, for me), you can use SymEngine.py to let SymPy use the computational power of SymEngine. This can indeed all be done from Jupyter notebooks, if you like.
 
  • #6
269
37
I was actually thinking of something very similar to fxsolver (I just found it now) where you have common equations to choose from and you can also make your own (it also allows for unit conversions, which is something else I was thinking of). However, it seems fxsolver is difficult to build off of (the links would get very confusing if you started adding more equations for example).
 
  • #8
269
37
I was thinking of something where you could define systems of equations and build off of them. Here would be a simple example for a projectile motion problem:
20210410_215057.jpg
 

Related Threads on LaTex to Work With Symbolic Expressions

  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
3
Views
463
Replies
2
Views
4K
  • Last Post
Replies
2
Views
4K
  • Last Post
Replies
1
Views
9K
  • Last Post
Replies
8
Views
20K
Replies
2
Views
17K
Replies
7
Views
3K
Top