On Thu, 11 Feb 2021 at 21:42, mpierro3 <[email protected]> wrote:
>
> 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'

This could be a bug in sympy but the code as shown is missing most of
the variable definitions so it's hard for me to judge. Can you post a
complete minimum working example?


Oscar

-- 
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/CAHVvXxSuNFoHZXkLGUb3zBfkV5dJAkW7eXkE4mv9UJTxkuby7Q%40mail.gmail.com.

Reply via email to