Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

complicated algebra test: infinite loop

Hi W11,WSL,UBUNTU 22.04 ,SAGEMATH 10.2

test if zero of complicated algebra value gives infinite loop (if second t value uncommented)

t=-1/6*(1/4)^(1/3)*(3*sqrt(35)*sqrt(3) + 31)^(1/3)*(I*sqrt(3) + 1) - 2/3*(1/4)^(2/3)*(-I*sqrt(3) + 1)/(3*sqrt(35)*sqrt(3) + 31)^(1/3) + 1/3

#t= -1/12*sqrt((36*(1/24*I*sqrt(827)*sqrt(6) + 593/216)^(2/3) + 21*(1/24*I*sqrt(827)*sqrt(6) + 593/216)^(1/3) + 91)/(1/24*I*sqrt(827)*sqrt(6) + 593/216)^(1/3)) - 1/2*sqrt(-(1/24*I*sqrt(827)*sqrt(6) + 593/216)^(1/3) - 91/36/(1/24*I*sqrt(827)*sqrt(6) + 593/216)^(1/3) - 27/2/sqrt((36*(1/24*I*sqrt(827)*sqrt(6) + 593/216)^(2/3) + 21*(1/24*I*sqrt(827)*sqrt(6) + 593/216)^(1/3) + 91)/(1/24*I*sqrt(827)*sqrt(6) + 593/216)^(1/3)) + 7/6) - 1/4

show(t)
if t == 0 :
    print('zero')