Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

solve maxima need to prechew equ to succeed (solve sympy ok)

HI

Ubuntu 18.04 , Jupyter notebook SageMath 9.1

vL=['x','y','x_o','y_o','a','b']
varL=var(vL)

for v in varL :
    assume(v,'real')

eq02=y - y_o == -b^2*(x - x_o)*x/(a^2*y)
eq2=x^2/a^2 + y^2/b^2 == 1
# here I need to prechew
eq03=eq02.multiply_both_sides(y/b^2).expand()

SmaximaPrechewed=solve([eq03,eq2],x,y)
show("solution maxima ok prechewed : ",SmaximaPrechewed)


SsympyNotPrechewed=solve([eq02,eq2],x,y,algorithm='sympy')
show("solution sympy ok : ",SsympyNotPrechewed)

SmaximaNotPrechewedKO=solve([eq02,eq2],x,y,algorithm='maxima')
show("solution maxima not preChewed KO  : ",SmaximaNotPrechewedKO)