New to Sympy. I am trying to solve an equation for a variable with given
boundaries and I am reviving the following error:
M_3a = symbols('M_3a', positive=true, nonzero=true)
eqn = nonlinsolve([Eq((M_e / M_3a) * Pow((2 + (gamma_4 - 1) * Pow(M_3a, 2))
/ \
(2 + (gamma_4 - 1) * Pow(M_e, 2)), a_4 / 2), A_4_A_1), M_3a <= 1], M_3a)
print(eqn)
AttributeError: 'LessThan' object has no attribute 'as_poly'
I was trying to create a multi-equation/multi-variable solver with given
boundaries through Sympy but could not get that to work. So I tried
simplifying it down to one equation with one unknown with one boundary and
I am getting the same exact error. My questions are:
1) Is Sympy even capable of doing such solver?
2) How can I get past this error?
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/ec90cf06-b796-4f5c-9de1-5133b56e2443n%40googlegroups.com.