Algebra_with_Sympy
Algebra_with_Sympy copied to clipboard
Tools for doing stepwise algebra in an on paper like manner using SymPy.
``` eq_1 =@ x +y = z**2 ``` Will fail to pretty print with labeling on. This can be fixed by replacing the `(\text{eq_1})` in the LaTex with `(\verb!eq_1!)`
Currently the preparser casts all occurrences of text numbers without decimal points as type sympy integer(). It would cause fewer problems with other code if this only happened to numbers...
V1.0.0 Get following in IPython terminal: ``` In[5]: algwsym_config.output.solve_to_list = True In[6]: solve([e1, e2], [wn, xi]) Out[6]: omega_n = sqrt(16*T_p**2 + pi**2*T_s**2)/(T_p*T_s) xi = 4*T_p/sqrt(16*T_p**2 + pi**2*T_s**2) [, ] ```...
Consider this example: ```py from sympy import * from algebra_with_sympy import Eqn, solve, algwsym_config algwsym_config.output.label = False algwsym_config.output.solve_to_list = True init_printing() xi, wn = symbols("xi omega_n", real=True, positive=True) Tp, Ts...
Some thought needs to go into explaining or modifying how output options work when imported using `import algebra_with_sympy as...`.
> Thank you for incorporating it. The approach, as shown in the following snippet, cannot be rendered in LaTeX. But it works fine in the Jupyternotebook. > > ``` >...
For use by beginning students it might help to have a GUI/palette-like way of building equations that generates the expression for defining an equation that could then be copy/pasted into...
For the most naive users the following behavior would be the most natural for substituting into an equation. This behavior is implemented in the SageMath package, but I believe it...
Currently the `Equation` constructor only accepts two arguments `lhs` and `rhs`, where they are valid sympy expressions. It would be convenient if it could also accept an `Equality` or iterable...
This would require adding another option to output formatting (e.g. `sympy_expr_labels`). When requested sympy expressions would be labeled with the python name for the expressions just as equations are by...