Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up ExpandAll #160

Closed
ereborDeveloper opened this issue Dec 15, 2019 · 1 comment
Closed

Speed up ExpandAll #160

ereborDeveloper opened this issue Dec 15, 2019 · 1 comment

Comments

@ereborDeveloper
Copy link

@ereborDeveloper ereborDeveloper commented Dec 15, 2019

My PC:
AMD Ryzen 5 2600
16 GB RAM
SSD M2
I try to use ExpandAll like this
result = util.eval("ExpandAll(14.019230769230766*(0.5817764173314433*psiy11*Cos(0.5817764173314433*y)*Sin(0.1851851851851852*Pi*x)+1.1635528346628865*psiy12*Cos(1.1635528346628865*y)*Sin(0.1851851851851852*Pi*x)+1.7453292519943295*psiy13*Cos(1.7453292519943295*y)*Sin(0.1851851851851852*Pi*x)+0.5817764173314433*psiy21*Cos(0.5817764173314433*y)*Sin(0.3703703703703704*Pi*x)+1.1635528346628865*psiy22*Cos(1.1635528346628865*y)*Sin(0.3703703703703704*Pi*x)+1.7453292519943295*psiy23*Cos(1.7453292519943295*y)*Sin(0.3703703703703704*Pi*x)+0.5817764173314433*psiy31*Cos(0.5817764173314433*y)*Sin(0.5555555555555556*Pi*x)+1.1635528346628865*psiy32*Cos(1.1635528346628865*y)*Sin(0.5555555555555556*Pi*x)+1.7453292519943295*psiy33*Cos(1.7453292519943295*y)*Sin(0.5555555555555556*Pi*x))*(0.5817764173314433*psiy11*Cos(0.5817764173314433*y)*Sin(0.5817764173314433*x)+1.1635528346628865*psiy12*Cos(1.1635528346628865*y)*Sin(0.5817764173314433*x)+1.7453292519943295*psiy13*Cos(1.7453292519943295*y)*Sin(0.5817764173314433*x)+0.5817764173314433*psiy21*Cos(0.5817764173314433*y)*Sin(1.1635528346628865*x)+1.1635528346628865*psiy22*Cos(1.1635528346628865*y)*Sin(1.1635528346628865*x)+1.7453292519943295*psiy23*Cos(1.7453292519943295*y)*Sin(1.1635528346628865*x)+0.5817764173314433*psiy31*Cos(0.5817764173314433*y)*Sin(1.7453292519943295*x)+1.1635528346628865*psiy32*Cos(1.1635528346628865*y)*Sin(1.7453292519943295*x)+1.7453292519943295*psiy33*Cos(1.7453292519943295*y)*Sin(1.7453292519943295*x)+0.3*(0.5817764173314433*psix11*Cos(0.5817764173314433*x)*Sin(0.5817764173314433*y)+1.1635528346628865*psix21*Cos(1.1635528346628865*x)*Sin(0.5817764173314433*y)+1.7453292519943295*psix31*Cos(1.7453292519943295*x)*Sin(0.5817764173314433*y)+0.5817764173314433*psix12*Cos(0.5817764173314433*x)*Sin(1.1635528346628865*y)+1.1635528346628865*psix22*Cos(1.1635528346628865*x)*Sin(1.1635528346628865*y)+1.7453292519943295*psix32*Cos(1.7453292519943295*x)*Sin(1.1635528346628865*y)+0.5817764173314433*psix13*Cos(0.5817764173314433*x)*Sin(1.7453292519943295*y)+1.1635528346628865*psix23*Cos(1.1635528346628865*x)*Sin(1.7453292519943295*y)+1.7453292519943295*psix33*Cos(1.7453292519943295*x)*Sin(1.7453292519943295*y)))+14.019230769230766*(0.3*(0.5817764173314433*psiy11*Cos(0.5817764173314433*y)*Sin(0.5817764173314433*x)+1.1635528346628865*psiy12*Cos(1.1635528346628865*y)*Sin(0.5817764173314433*x)+1.7453292519943295*psiy13*Cos(1.7453292519943295*y)*Sin(0.5817764173314433*x)+0.5817764173314433*psiy21*Cos(0.5817764173314433*y)*Sin(1.1635528346628865*x)+1.1635528346628865*psiy22*Cos(1.1635528346628865*y)*Sin(1.1635528346628865*x)+1.7453292519943295*psiy23*Cos(1.7453292519943295*y)*Sin(1.1635528346628865*x)+0.5817764173314433*psiy31*Cos(0.5817764173314433*y)*Sin(1.7453292519943295*x)+1.1635528346628865*psiy32*Cos(1.1635528346628865*y)*Sin(1.7453292519943295*x)+1.7453292519943295*psiy33*Cos(1.7453292519943295*y)*Sin(1.7453292519943295*x))+0.5817764173314433*psix11*Cos(0.5817764173314433*x)*Sin(0.5817764173314433*y)+1.1635528346628865*psix21*Cos(1.1635528346628865*x)*Sin(0.5817764173314433*y)+1.7453292519943295*psix31*Cos(1.7453292519943295*x)*Sin(0.5817764173314433*y)+0.5817764173314433*psix12*Cos(0.5817764173314433*x)*Sin(1.1635528346628865*y)+1.1635528346628865*psix22*Cos(1.1635528346628865*x)*Sin(1.1635528346628865*y)+1.7453292519943295*psix32*Cos(1.7453292519943295*x)*Sin(1.1635528346628865*y)+0.5817764173314433*psix13*Cos(0.5817764173314433*x)*Sin(1.7453292519943295*y)+1.1635528346628865*psix23*Cos(1.1635528346628865*x)*Sin(1.7453292519943295*y)+1.7453292519943295*psix33*Cos(1.7453292519943295*x)*Sin(1.7453292519943295*y))*(0.5817764173314433*psix11*Cos(0.5817764173314433*x)*Sin(0.1851851851851852*Pi*y)+1.1635528346628865*psix21*Cos(1.1635528346628865*x)*Sin(0.1851851851851852*Pi*y)+1.7453292519943295*psix31*Cos(1.7453292519943295*x)*Sin(0.1851851851851852*Pi*y)+0.5817764173314433*psix12*Cos(0.5817764173314433*x)*Sin(0.3703703703703704*Pi*y)+1.1635528346628865*psix22*Cos(1.1635528346628865*x)*Sin(0.3703703703703704*Pi*y)+1.7453292519943295*psix32*Cos(1.7453292519943295*x)*Sin(0.3703703703703704*Pi*y)+0.5817764173314433*psix13*Cos(0.5817764173314433*x)*Sin(0.5555555555555556*Pi*y)+1.1635528346628865*psix23*Cos(1.1635528346628865*x)*Sin(0.5555555555555556*Pi*y)+1.7453292519943295*psix33*Cos(1.7453292519943295*x)*Sin(0.5555555555555556*Pi*y))+1.8224999999999996E-5*(0.5817764173314433*psix11*Cos(0.5817764173314433*y)*Sin(0.5817764173314433*x)+1.1635528346628865*psix12*Cos(1.1635528346628865*y)*Sin(0.5817764173314433*x)+1.7453292519943295*psix13*Cos(1.7453292519943295*y)*Sin(0.5817764173314433*x)+0.5817764173314433*psix21*Cos(0.5817764173314433*y)*Sin(1.1635528346628865*x)+1.1635528346628865*psix22*Cos(1.1635528346628865*y)*Sin(1.1635528346628865*x)+1.7453292519943295*psix23*Cos(1.7453292519943295*y)*Sin(1.1635528346628865*x)+0.5817764173314433*psix31*Cos(0.5817764173314433*y)*Sin(1.7453292519943295*x)+1.1635528346628865*psix32*Cos(1.1635528346628865*y)*Sin(1.7453292519943295*x)+1.7453292519943295*psix33*Cos(1.7453292519943295*y)*Sin(1.7453292519943295*x)+0.5817764173314433*psiy11*Cos(0.5817764173314433*x)*Sin(0.5817764173314433*y)+1.1635528346628865*psiy21*Cos(1.1635528346628865*x)*Sin(0.5817764173314433*y)+1.7453292519943295*psiy31*Cos(1.7453292519943295*x)*Sin(0.5817764173314433*y)+0.5817764173314433*psiy12*Cos(0.5817764173314433*x)*Sin(1.1635528346628865*y)+1.1635528346628865*psiy22*Cos(1.1635528346628865*x)*Sin(1.1635528346628865*y)+1.7453292519943295*psiy32*Cos(1.7453292519943295*x)*Sin(1.1635528346628865*y)+0.5817764173314433*psiy13*Cos(0.5817764173314433*x)*Sin(1.7453292519943295*y)+1.1635528346628865*psiy23*Cos(1.1635528346628865*x)*Sin(1.7453292519943295*y)+1.7453292519943295*psiy33*Cos(1.7453292519943295*x)*Sin(1.7453292519943295*y))*(0.5817764173314433*psix11*Cos(0.5817764173314433*y)*Sin(0.1851851851851852*Pi*x)+1.1635528346628865*psix12*Cos(1.1635528346628865*y)*Sin(0.1851851851851852*Pi*x)+1.7453292519943295*psix13*Cos(1.7453292519943295*y)*Sin(0.1851851851851852*Pi*x)+0.5817764173314433*psix21*Cos(0.5817764173314433*y)*Sin(0.3703703703703704*Pi*x)+1.1635528346628865*psix22*Cos(1.1635528346628865*y)*Sin(0.3703703703703704*Pi*x)+1.7453292519943295*psix23*Cos(1.7453292519943295*y)*Sin(0.3703703703703704*Pi*x)+0.5817764173314433*psix31*Cos(0.5817764173314433*y)*Sin(0.5555555555555556*Pi*x)+1.1635528346628865*psix32*Cos(1.1635528346628865*y)*Sin(0.5555555555555556*Pi*x)+1.7453292519943295*psix33*Cos(1.7453292519943295*y)*Sin(0.5555555555555556*Pi*x)+0.5817764173314433*psiy11*Cos(0.5817764173314433*x)*Sin(0.1851851851851852*Pi*y)+1.1635528346628865*psiy21*Cos(1.1635528346628865*x)*Sin(0.1851851851851852*Pi*y)+1.7453292519943295*psiy31*Cos(1.7453292519943295*x)*Sin(0.1851851851851852*Pi*y)+0.5817764173314433*psiy12*Cos(0.5817764173314433*x)*Sin(0.3703703703703704*Pi*y)+1.1635528346628865*psiy22*Cos(1.1635528346628865*x)*Sin(0.3703703703703704*Pi*y)+1.7453292519943295*psiy32*Cos(1.7453292519943295*x)*Sin(0.3703703703703704*Pi*y)+0.5817764173314433*psiy13*Cos(0.5817764173314433*x)*Sin(0.5555555555555556*Pi*y)+1.1635528346628865*psiy23*Cos(1.1635528346628865*x)*Sin(0.5555555555555556*Pi*y)+1.7453292519943295*psiy33*Cos(1.7453292519943295*x)*Sin(0.5555555555555556*Pi*y))-q*(w11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+w21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+w31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+w12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+w22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+w32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+w13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+w23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+w33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y))+20769.230769230766*(0.5817764173314433*u11*Cos(0.5817764173314433*x)*Sin(0.1851851851851852*Pi*y)+1.1635528346628865*u21*Cos(1.1635528346628865*x)*Sin(0.1851851851851852*Pi*y)+1.7453292519943295*u31*Cos(1.7453292519943295*x)*Sin(0.1851851851851852*Pi*y)+0.5817764173314433*u12*Cos(0.5817764173314433*x)*Sin(0.3703703703703704*Pi*y)+1.1635528346628865*u22*Cos(1.1635528346628865*x)*Sin(0.3703703703703704*Pi*y)+1.7453292519943295*u32*Cos(1.7453292519943295*x)*Sin(0.3703703703703704*Pi*y)+0.5817764173314433*u13*Cos(0.5817764173314433*x)*Sin(0.5555555555555556*Pi*y)+1.1635528346628865*u23*Cos(1.1635528346628865*x)*Sin(0.5555555555555556*Pi*y)+1.7453292519943295*u33*Cos(1.7453292519943295*x)*Sin(0.5555555555555556*Pi*y)-0.04938271604938271*(w11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+w21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+w31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+w12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+w22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+w32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+w13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+w23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+w33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y))+(0.5817764173314433*w11*Cos(0.5817764173314433*x)*Sin(0.1851851851851852*Pi*y)+1.1635528346628865*w21*Cos(1.1635528346628865*x)*Sin(0.1851851851851852*Pi*y)+1.7453292519943295*w31*Cos(1.7453292519943295*x)*Sin(0.1851851851851852*Pi*y)+0.5817764173314433*w12*Cos(0.5817764173314433*x)*Sin(0.3703703703703704*Pi*y)+1.1635528346628865*w22*Cos(1.1635528346628865*x)*Sin(0.3703703703703704*Pi*y)+1.7453292519943295*w32*Cos(1.7453292519943295*x)*Sin(0.3703703703703704*Pi*y)+0.5817764173314433*w13*Cos(0.5817764173314433*x)*Sin(0.5555555555555556*Pi*y)+1.1635528346628865*w23*Cos(1.1635528346628865*x)*Sin(0.5555555555555556*Pi*y)+1.7453292519943295*w33*Cos(1.7453292519943295*x)*Sin(0.5555555555555556*Pi*y)+0.04938271604938271*(u11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+u21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+u31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+u12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+u22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+u32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+u13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+u23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+u33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y)))^2/2)*(0.5817764173314433*u11*Cos(0.5817764173314433*x)*Sin(0.1851851851851852*Pi*y)+1.1635528346628865*u21*Cos(1.1635528346628865*x)*Sin(0.1851851851851852*Pi*y)+1.7453292519943295*u31*Cos(1.7453292519943295*x)*Sin(0.1851851851851852*Pi*y)+0.5817764173314433*u12*Cos(0.5817764173314433*x)*Sin(0.3703703703703704*Pi*y)+1.1635528346628865*u22*Cos(1.1635528346628865*x)*Sin(0.3703703703703704*Pi*y)+1.7453292519943295*u32*Cos(1.7453292519943295*x)*Sin(0.3703703703703704*Pi*y)+0.5817764173314433*u13*Cos(0.5817764173314433*x)*Sin(0.5555555555555556*Pi*y)+1.1635528346628865*u23*Cos(1.1635528346628865*x)*Sin(0.5555555555555556*Pi*y)+1.7453292519943295*u33*Cos(1.7453292519943295*x)*Sin(0.5555555555555556*Pi*y)-0.04938271604938271*(w11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+w21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+w31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+w12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+w22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+w32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+w13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+w23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+w33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y))+(0.5817764173314433*w11*Cos(0.5817764173314433*x)*Sin(0.1851851851851852*Pi*y)+1.1635528346628865*w21*Cos(1.1635528346628865*x)*Sin(0.1851851851851852*Pi*y)+1.7453292519943295*w31*Cos(1.7453292519943295*x)*Sin(0.1851851851851852*Pi*y)+0.5817764173314433*w12*Cos(0.5817764173314433*x)*Sin(0.3703703703703704*Pi*y)+1.1635528346628865*w22*Cos(1.1635528346628865*x)*Sin(0.3703703703703704*Pi*y)+1.7453292519943295*w32*Cos(1.7453292519943295*x)*Sin(0.3703703703703704*Pi*y)+0.5817764173314433*w13*Cos(0.5817764173314433*x)*Sin(0.5555555555555556*Pi*y)+1.1635528346628865*w23*Cos(1.1635528346628865*x)*Sin(0.5555555555555556*Pi*y)+1.7453292519943295*w33*Cos(1.7453292519943295*x)*Sin(0.5555555555555556*Pi*y)+0.04938271604938271*(u11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+u21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+u31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+u12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+u22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+u32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+u13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+u23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+u33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y)))^2/2+0.3*(0.5817764173314433*v11*Cos(0.5817764173314433*y)*Sin(0.1851851851851852*Pi*x)+1.1635528346628865*v12*Cos(1.1635528346628865*y)*Sin(0.1851851851851852*Pi*x)+1.7453292519943295*v13*Cos(1.7453292519943295*y)*Sin(0.1851851851851852*Pi*x)+0.5817764173314433*v21*Cos(0.5817764173314433*y)*Sin(0.3703703703703704*Pi*x)+1.1635528346628865*v22*Cos(1.1635528346628865*y)*Sin(0.3703703703703704*Pi*x)+1.7453292519943295*v23*Cos(1.7453292519943295*y)*Sin(0.3703703703703704*Pi*x)+0.5817764173314433*v31*Cos(0.5817764173314433*y)*Sin(0.5555555555555556*Pi*x)+1.1635528346628865*v32*Cos(1.1635528346628865*y)*Sin(0.5555555555555556*Pi*x)+1.7453292519943295*v33*Cos(1.7453292519943295*y)*Sin(0.5555555555555556*Pi*x)-0.04938271604938271*(w11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+w21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+w31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+w12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+w22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+w32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+w13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+w23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+w33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y))+(0.5817764173314433*w11*Cos(0.5817764173314433*y)*Sin(0.1851851851851852*Pi*x)+1.1635528346628865*w12*Cos(1.1635528346628865*y)*Sin(0.1851851851851852*Pi*x)+1.7453292519943295*w13*Cos(1.7453292519943295*y)*Sin(0.1851851851851852*Pi*x)+0.5817764173314433*w21*Cos(0.5817764173314433*y)*Sin(0.3703703703703704*Pi*x)+1.1635528346628865*w22*Cos(1.1635528346628865*y)*Sin(0.3703703703703704*Pi*x)+1.7453292519943295*w23*Cos(1.7453292519943295*y)*Sin(0.3703703703703704*Pi*x)+0.5817764173314433*w31*Cos(0.5817764173314433*y)*Sin(0.5555555555555556*Pi*x)+1.1635528346628865*w32*Cos(1.1635528346628865*y)*Sin(0.5555555555555556*Pi*x)+1.7453292519943295*w33*Cos(1.7453292519943295*y)*Sin(0.5555555555555556*Pi*x)+0.04938271604938271*(v11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+v21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+v31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+v12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+v22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+v32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+v13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+v23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+v33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y)))^2/2))+20769.230769230766*(0.5817764173314433*v11*Cos(0.5817764173314433*y)*Sin(0.1851851851851852*Pi*x)+1.1635528346628865*v12*Cos(1.1635528346628865*y)*Sin(0.1851851851851852*Pi*x)+1.7453292519943295*v13*Cos(1.7453292519943295*y)*Sin(0.1851851851851852*Pi*x)+0.5817764173314433*v21*Cos(0.5817764173314433*y)*Sin(0.3703703703703704*Pi*x)+1.1635528346628865*v22*Cos(1.1635528346628865*y)*Sin(0.3703703703703704*Pi*x)+1.7453292519943295*v23*Cos(1.7453292519943295*y)*Sin(0.3703703703703704*Pi*x)+0.5817764173314433*v31*Cos(0.5817764173314433*y)*Sin(0.5555555555555556*Pi*x)+1.1635528346628865*v32*Cos(1.1635528346628865*y)*Sin(0.5555555555555556*Pi*x)+1.7453292519943295*v33*Cos(1.7453292519943295*y)*Sin(0.5555555555555556*Pi*x)-0.04938271604938271*(w11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+w21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+w31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+w12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+w22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+w32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+w13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+w23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+w33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y))+(0.5817764173314433*w11*Cos(0.5817764173314433*y)*Sin(0.1851851851851852*Pi*x)+1.1635528346628865*w12*Cos(1.1635528346628865*y)*Sin(0.1851851851851852*Pi*x)+1.7453292519943295*w13*Cos(1.7453292519943295*y)*Sin(0.1851851851851852*Pi*x)+0.5817764173314433*w21*Cos(0.5817764173314433*y)*Sin(0.3703703703703704*Pi*x)+1.1635528346628865*w22*Cos(1.1635528346628865*y)*Sin(0.3703703703703704*Pi*x)+1.7453292519943295*w23*Cos(1.7453292519943295*y)*Sin(0.3703703703703704*Pi*x)+0.5817764173314433*w31*Cos(0.5817764173314433*y)*Sin(0.5555555555555556*Pi*x)+1.1635528346628865*w32*Cos(1.1635528346628865*y)*Sin(0.5555555555555556*Pi*x)+1.7453292519943295*w33*Cos(1.7453292519943295*y)*Sin(0.5555555555555556*Pi*x)+0.04938271604938271*(v11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+v21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+v31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+v12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+v22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+v32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+v13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+v23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+v33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y)))^2/2)*(0.5817764173314433*v11*Cos(0.5817764173314433*y)*Sin(0.1851851851851852*Pi*x)+1.1635528346628865*v12*Cos(1.1635528346628865*y)*Sin(0.1851851851851852*Pi*x)+1.7453292519943295*v13*Cos(1.7453292519943295*y)*Sin(0.1851851851851852*Pi*x)+0.5817764173314433*v21*Cos(0.5817764173314433*y)*Sin(0.3703703703703704*Pi*x)+1.1635528346628865*v22*Cos(1.1635528346628865*y)*Sin(0.3703703703703704*Pi*x)+1.7453292519943295*v23*Cos(1.7453292519943295*y)*Sin(0.3703703703703704*Pi*x)+0.5817764173314433*v31*Cos(0.5817764173314433*y)*Sin(0.5555555555555556*Pi*x)+1.1635528346628865*v32*Cos(1.1635528346628865*y)*Sin(0.5555555555555556*Pi*x)+1.7453292519943295*v33*Cos(1.7453292519943295*y)*Sin(0.5555555555555556*Pi*x)-0.04938271604938271*(w11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+w21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+w31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+w12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+w22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+w32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+w13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+w23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+w33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y))+0.3*(0.5817764173314433*u11*Cos(0.5817764173314433*x)*Sin(0.1851851851851852*Pi*y)+1.1635528346628865*u21*Cos(1.1635528346628865*x)*Sin(0.1851851851851852*Pi*y)+1.7453292519943295*u31*Cos(1.7453292519943295*x)*Sin(0.1851851851851852*Pi*y)+0.5817764173314433*u12*Cos(0.5817764173314433*x)*Sin(0.3703703703703704*Pi*y)+1.1635528346628865*u22*Cos(1.1635528346628865*x)*Sin(0.3703703703703704*Pi*y)+1.7453292519943295*u32*Cos(1.7453292519943295*x)*Sin(0.3703703703703704*Pi*y)+0.5817764173314433*u13*Cos(0.5817764173314433*x)*Sin(0.5555555555555556*Pi*y)+1.1635528346628865*u23*Cos(1.1635528346628865*x)*Sin(0.5555555555555556*Pi*y)+1.7453292519943295*u33*Cos(1.7453292519943295*x)*Sin(0.5555555555555556*Pi*y)-0.04938271604938271*(w11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+w21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+w31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+w12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+w22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+w32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+w13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+w23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+w33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y))+(0.5817764173314433*w11*Cos(0.5817764173314433*x)*Sin(0.1851851851851852*Pi*y)+1.1635528346628865*w21*Cos(1.1635528346628865*x)*Sin(0.1851851851851852*Pi*y)+1.7453292519943295*w31*Cos(1.7453292519943295*x)*Sin(0.1851851851851852*Pi*y)+0.5817764173314433*w12*Cos(0.5817764173314433*x)*Sin(0.3703703703703704*Pi*y)+1.1635528346628865*w22*Cos(1.1635528346628865*x)*Sin(0.3703703703703704*Pi*y)+1.7453292519943295*w32*Cos(1.7453292519943295*x)*Sin(0.3703703703703704*Pi*y)+0.5817764173314433*w13*Cos(0.5817764173314433*x)*Sin(0.5555555555555556*Pi*y)+1.1635528346628865*w23*Cos(1.1635528346628865*x)*Sin(0.5555555555555556*Pi*y)+1.7453292519943295*w33*Cos(1.7453292519943295*x)*Sin(0.5555555555555556*Pi*y)+0.04938271604938271*(u11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+u21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+u31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+u12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+u22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+u32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+u13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+u23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+u33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y)))^2/2)+(0.5817764173314433*w11*Cos(0.5817764173314433*y)*Sin(0.1851851851851852*Pi*x)+1.1635528346628865*w12*Cos(1.1635528346628865*y)*Sin(0.1851851851851852*Pi*x)+1.7453292519943295*w13*Cos(1.7453292519943295*y)*Sin(0.1851851851851852*Pi*x)+0.5817764173314433*w21*Cos(0.5817764173314433*y)*Sin(0.3703703703703704*Pi*x)+1.1635528346628865*w22*Cos(1.1635528346628865*y)*Sin(0.3703703703703704*Pi*x)+1.7453292519943295*w23*Cos(1.7453292519943295*y)*Sin(0.3703703703703704*Pi*x)+0.5817764173314433*w31*Cos(0.5817764173314433*y)*Sin(0.5555555555555556*Pi*x)+1.1635528346628865*w32*Cos(1.1635528346628865*y)*Sin(0.5555555555555556*Pi*x)+1.7453292519943295*w33*Cos(1.7453292519943295*y)*Sin(0.5555555555555556*Pi*x)+0.04938271604938271*(v11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+v21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+v31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+v12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+v22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+v32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+v13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+v23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+v33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y)))^2/2)+0.027*(0.5817764173314433*u11*Cos(0.5817764173314433*y)*Sin(0.1851851851851852*Pi*x)+1.1635528346628865*u12*Cos(1.1635528346628865*y)*Sin(0.1851851851851852*Pi*x)+1.7453292519943295*u13*Cos(1.7453292519943295*y)*Sin(0.1851851851851852*Pi*x)+0.5817764173314433*u21*Cos(0.5817764173314433*y)*Sin(0.3703703703703704*Pi*x)+1.1635528346628865*u22*Cos(1.1635528346628865*y)*Sin(0.3703703703703704*Pi*x)+1.7453292519943295*u23*Cos(1.7453292519943295*y)*Sin(0.3703703703703704*Pi*x)+0.5817764173314433*u31*Cos(0.5817764173314433*y)*Sin(0.5555555555555556*Pi*x)+1.1635528346628865*u32*Cos(1.1635528346628865*y)*Sin(0.5555555555555556*Pi*x)+1.7453292519943295*u33*Cos(1.7453292519943295*y)*Sin(0.5555555555555556*Pi*x)+0.5817764173314433*v11*Cos(0.5817764173314433*x)*Sin(0.1851851851851852*Pi*y)+1.1635528346628865*v21*Cos(1.1635528346628865*x)*Sin(0.1851851851851852*Pi*y)+1.7453292519943295*v31*Cos(1.7453292519943295*x)*Sin(0.1851851851851852*Pi*y)+0.5817764173314433*v12*Cos(0.5817764173314433*x)*Sin(0.3703703703703704*Pi*y)+1.1635528346628865*v22*Cos(1.1635528346628865*x)*Sin(0.3703703703703704*Pi*y)+1.7453292519943295*v32*Cos(1.7453292519943295*x)*Sin(0.3703703703703704*Pi*y)+0.5817764173314433*v13*Cos(0.5817764173314433*x)*Sin(0.5555555555555556*Pi*y)+1.1635528346628865*v23*Cos(1.1635528346628865*x)*Sin(0.5555555555555556*Pi*y)+1.7453292519943295*v33*Cos(1.7453292519943295*x)*Sin(0.5555555555555556*Pi*y)+(-0.5817764173314433*w11*Cos(0.5817764173314433*x)*Sin(0.1851851851851852*Pi*y)-1.1635528346628865*w21*Cos(1.1635528346628865*x)*Sin(0.1851851851851852*Pi*y)-1.7453292519943295*w31*Cos(1.7453292519943295*x)*Sin(0.1851851851851852*Pi*y)-0.5817764173314433*w12*Cos(0.5817764173314433*x)*Sin(0.3703703703703704*Pi*y)-1.1635528346628865*w22*Cos(1.1635528346628865*x)*Sin(0.3703703703703704*Pi*y)-1.7453292519943295*w32*Cos(1.7453292519943295*x)*Sin(0.3703703703703704*Pi*y)-0.5817764173314433*w13*Cos(0.5817764173314433*x)*Sin(0.5555555555555556*Pi*y)-1.1635528346628865*w23*Cos(1.1635528346628865*x)*Sin(0.5555555555555556*Pi*y)-1.7453292519943295*w33*Cos(1.7453292519943295*x)*Sin(0.5555555555555556*Pi*y)-0.04938271604938271*(u11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+u21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+u31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+u12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+u22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+u32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+u13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+u23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+u33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y)))*(-0.5817764173314433*w11*Cos(0.5817764173314433*y)*Sin(0.1851851851851852*Pi*x)-1.1635528346628865*w12*Cos(1.1635528346628865*y)*Sin(0.1851851851851852*Pi*x)-1.7453292519943295*w13*Cos(1.7453292519943295*y)*Sin(0.1851851851851852*Pi*x)-0.5817764173314433*w21*Cos(0.5817764173314433*y)*Sin(0.3703703703703704*Pi*x)-1.1635528346628865*w22*Cos(1.1635528346628865*y)*Sin(0.3703703703703704*Pi*x)-1.7453292519943295*w23*Cos(1.7453292519943295*y)*Sin(0.3703703703703704*Pi*x)-0.5817764173314433*w31*Cos(0.5817764173314433*y)*Sin(0.5555555555555556*Pi*x)-1.1635528346628865*w32*Cos(1.1635528346628865*y)*Sin(0.5555555555555556*Pi*x)-1.7453292519943295*w33*Cos(1.7453292519943295*y)*Sin(0.5555555555555556*Pi*x)-0.04938271604938271*(v11*Sin(0.1851851851851852*Pi*x)*Sin(0.1851851851851852*Pi*y)+v21*Sin(0.3703703703703704*Pi*x)*Sin(0.1851851851851852*Pi*y)+v31*Sin(0.5555555555555556*Pi*x)*Sin(0.1851851851851852*Pi*y)+v12*Sin(0.1851851851851852*Pi*x)*Sin(0.3703703703703704*Pi*y)+v22*Sin(0.3703703703703704*Pi*x)*Sin(0.3703703703703704*Pi*y)+v32*Sin(0.5555555555555556*Pi*x)*Sin(0.3703703703703704*Pi*y)+v13*Sin(0.1851851851851852*Pi*x)*Sin(0.5555555555555556*Pi*y)+v23*Sin(0.3703703703703704*Pi*x)*Sin(0.5555555555555556*Pi*y)+v33*Sin(0.5555555555555556*Pi*x)*Sin(0.5555555555555556*Pi*y))))^2)

It takes up to 5 minutes, but in Maple I have less than a minute.
Is any possibility to speed it up?

I have an algorythm to expandAllDegrees, it takes few seconds for such input string. And I'm going to implement expandAll algorythm in my way.
Do you have already existsing solution?

Thank you.

axkr added a commit that referenced this issue Dec 15, 2019
@axkr

This comment has been minimized.

Copy link
Owner

@axkr axkr commented Dec 15, 2019

@ereborDeveloper can you please post the numbers after the last change in commit e658c1c

axkr added a commit that referenced this issue Dec 16, 2019
axkr added a commit that referenced this issue Dec 18, 2019
axkr added a commit that referenced this issue Jan 2, 2020
@axkr axkr closed this Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.