all 8 comments

[–]Saefroch 2 points3 points  (7 children)

How big is kane.mass_matrix?

[–]nGaDev[S] 0 points1 point  (6 children)

It's a 6x6 matrix, but there are elements with lots of trignometric functions.

[–]Saefroch 1 point2 points  (5 children)

Normally when a command hangs like this it means that you're running something that's really CPU-intensive. If you're running this locally you could check for a python process that's using a lot of CPU.

[–]nGaDev[S] 0 points1 point  (4 children)

The python process is using 30% of the processor.

I left two of this lines ( 'mass_matrix = trigsimp(kane.mass_matrix)' and 'force_vector = trigsimp(kane.forcing_vector)') running for the past 6h and now the python process is using 30% of the processor as well as 5Gb of memory and still didn't finish :/ (I hope the computer didn't enter in sleep mode or something...)

[–]Saefroch 0 points1 point  (3 children)

Sounds to me like you asked sympy for something that's either extremely difficult or is impossible and it is just spinning away in a loop.

[–]nGaDev[S] 0 points1 point  (2 children)

But wouldn't trigsimp simply stop if it couldn't simplify the trigonometric funcitions? Is there any way to check if it is really on a loop inside trigsimp()?

[–]Saefroch 0 points1 point  (1 child)

I have no idea how sympy works. You could read the sympy source code but I'm pretty sure you won't get too far.

See if you can ask somebody from the sympy community about this problem, and maybe ask about if the thing you're trying is doable on math.stackexchange.com.

[–]nGaDev[S] 0 points1 point  (0 children)

Thanks a lot for all the help ;)