LaTex to Work With Symbolic Expressions

Click For Summary

Discussion Overview

The discussion revolves around the need for a user-friendly interface for manipulating symbolic expressions in engineering and STEM contexts. Participants explore various tools and platforms that could facilitate algebraic manipulation, equation solving, and sharing of symbolic work.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests the need for an interface that allows for easy definition of variables and equations, substitutions, and solving in a readable format, potentially using Math Quill.
  • Another participant proposes using SymPy in a Jupyter notebook as a viable option for symbolic computation.
  • Some participants express interest in a tool similar to Desmos that would allow for defining and solving systems of equations symbolically.
  • There is mention of advancements in mathematical handwriting recognition, which could facilitate input into symbolic calculators like Wolfram Alpha.
  • One participant highlights the benefits of using SymPy with SymEngine.py for improved execution speed in Jupyter notebooks.
  • A participant introduces fxsolver as a potential tool, noting its limitations in terms of building off existing equations and managing links.
  • Wolfram Alpha is referenced as a tool for symbolic computation with an example provided.
  • Another participant shares an example of wanting to define systems of equations for a projectile motion problem.

Areas of Agreement / Disagreement

Participants express a variety of preferences for different tools and approaches, indicating that multiple competing views remain regarding the best solution for symbolic expression manipulation.

Contextual Notes

Some tools mentioned may have limitations in terms of usability, flexibility, or integration with other systems, which remain unresolved in the discussion.

person123
Messages
326
Reaction score
52
TL;DR
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.
 
Physics news on Phys.org
SymPy in a jupyter workbook?
 
  • Like
Likes   Reactions: S.G. Janssens
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.
 
pasmith said:
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.
 
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).
 
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
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 11 ·
Replies
11
Views
8K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K