vamseeachanta / assetutilities

Utilities for performing day to day tasks. Helps in automation of day to day business tasks
MIT License
0 stars 1 forks source link

SIMPY | Solve equations #22

Open vamseeachanta opened 1 month ago

vamseeachanta commented 1 month ago

Test data:

Displaying equation on screen:

samdansk2 commented 1 month ago

@vamseeachanta once look into it sir , displaying equations on screen :

our equation is not correctly displayed as described here https://docs.sympy.org/latest/tutorials/intro-tutorial/printing.html instead it is giving the value of equation

Screenshot 2024-08-06 111846

vamseeachanta commented 1 month ago

@samdansk2 , first create a test for simple equation and try all the methods above. Let us do this for a simple equation that was used in sympy link above. Can you do this and send me link to the code?

samdansk2 commented 1 month ago

@vamseeachanta I am not getting your point sir How can we write a test for displaying a single equation ?

vamseeachanta commented 1 month ago

@samdansk2 , just a simple function to just display the equations in a terminal?

samdansk2 commented 1 month ago

@vamseeachanta Hello sir good morning , i have researched regarding sympy equation displaying , To display math equations visually on screen , there are three ways :

  1. Using Sympy in ipython
  2. Using IPython library in Jupyter notebook
  3. Using Matplotlib

--> I have tried all of these ways , from three of this i found Ipython with Jupyter notebook and Matplotlib are better , gives more visual resulting equations . i am attaching the screenshots of three methods below , please see it and choose the method of your choice , we will go ahead .

ipythonn

JUPYTER NOTEBOOK : Jupyter notebookk

MATPLOTLIB : matplotlib

vamseeachanta commented 6 days ago

Exploring markdown route. See repo folder below: https://github.com/vamseeachanta/assetutilities/blob/2024aug/docs/sub_latex/markdown

vamseeachanta commented 5 days ago

https://github.com/vamseeachanta/assetutilities/blob/574e255e5e13ec955e1ed00f60b027aafbe28783/docs/sub_latex/markdown/sympy_function_2.py https://github.com/vamseeachanta/assetutilities/blob/574e255e5e13ec955e1ed00f60b027aafbe28783/docs/sub_latex/markdown/sympy_function_2.md