It depends on what calculation you are interested in. Some algorithms
in SymPy work quite differently than you would do things by hand.

For differentiation and integration, take a look at the step-by-step
stuff you get from SymPy Gamma http://gamma.sympy.org/.

Aaron Meurer

On Wed, Apr 23, 2014 at 4:50 PM, Amit Saha <[email protected]> wrote:
> On Thu, Apr 24, 2014 at 5:30 AM, jiju <[email protected]> wrote:
>> Hi,
>>
>> Is there any way to obtain all the steps involved in the mathematical
>> calculations from sympy?
>
> I think what you mean is that you want to see what is happening behind
> the scenes when you use a SymPy function or method? I would think if
> you follow the standard procedure for any other Python
> program/software/package, that would work here. Here is a rough
> overview:
>
> 1. Find the source line for your function/method
> 2. Insert pdb.set_trace() there (after import pdb)
> 3. Run your "usual" program which makes use of that function/method
> 4. Your program will hit the pdb.set_trace() line, and you will get
> the (pdb) prompt.
> 5. Now, you can choose to step through each line that Python is executing
>
> You may find some of the pdb links here helpful:
> http://stackoverflow.com/questions/4228637/getting-started-with-the-python-debugger-pdb
>
> You may also find
> http://docs.sympy.org/latest/modules/utilities/source.html useful.
>
> Hope that helps.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/CANODV3%3DxVpJWouYT2%3DGXpRGbFwESxbTf-5BcmYEoMuE6O-%2BbSQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6Jwz4oX2KuNkQ0Qtre7MjXc4Dz2UswDopuP%2BnrL%3DhsfgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to