Hello! Is there any way to instruct sympy to use real numbers only?
In [1]: from sympy import * In [2]: x = Symbol('x', real=True) In [3]: sqrt(x**2-3) Out[3]: I*(3 - x**2)**(1/2) Why is sqrt(x**2-3) transformed in that way that it uses the imaginary unit? This makes it hard for me to turn the output into a native python expression using eval(). Thanks, Fabian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---