Luke wrote: > Last night I was deriving the moment of inertia for a solid torus > using Sympy. It mostly worked, except for the step where the > determinant of the Jacobian for the change of variables mapping was to > be computed, the result was unable to be simplified by trigsimp. I > gave it a shot anyway, and it resulted in integrate() stalling on the > triple integral that is necessary. Using other means to compute the > Jacobian of the determinant, then using that result in integrate() > resulted in the correct solution for the moment of inertia, which is > comforting, but at the same time, really makes me want to get trigsimp > to work better. > > I know of the paper by Fu, Zhong, and Zeng, but I was wondering if > anybody had any other recommendations for approaches to trigonometric > simplification. It would be really nice if this part of sympy worked > better. If there is somebody else out there who would like to tackle > this together, let me know and we could figure out a reasonable > approach. > > Thanks, > ~Luke > > > > > Did you try the deep and recursive switches on the most recent version of trigsimp. I also would like trigsimp to do better for the same reasons you gave and would also like it to apply to hyperbolic trig functions. One thing I would do for trigsimp is to convert all trig functions in the expression to sin's and cos's before simplifying.
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---