user3120921
user3120921

Reputation: 39

Printing sympy input function

I have been experimenting with sympy, and I have been searching for a way to print the input of my math function, not just the result.

For example, if I type

integrate(x**2 + x + 1, x)

I get: formula

though I would like a way to output something like to this: formula

Is this possible? If so how would it be implemented?

Thanks in advance

Upvotes: 1

Views: 324

Answers (1)

Dinesh Suthar
Dinesh Suthar

Reputation: 148

Try This.

a = Integral(x**2 + x + 1, x)
Eq(a,a.doit())

Upvotes: 2

Related Questions