Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium Solvers

New issue 4112 by [email protected]: solve doesn't work with rational=True
http://code.google.com/p/sympy/issues/detail?id=4112

See http://stackoverflow.com/q/20225413/161801.

# define the symbols we wish to use
se = symbols('se')

# assign some constants
D = S(0.24)
sn = S(38e6)
Q = S(0.64)

Dprime = 1.0 - D

mc = 1 + (se/sn)

# this is the expression that we wish to make equal to Q
expr = (S(1)/(pi * (mc * Dprime - S(0.5))))

# this should print the value for se
print(solve(Eq(expr, Q),se))


It doesn't give a solution. If you pass rational=False to solve, it works.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to