Replies: 1 comment 2 replies
-
Can you show the code for which simplify is slow? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
I've been playing around with einsteinpy, and I wanted to calculate the Ricci Tensor for the Kerr metric (modifying this example ). The computation gets stuck on a .simplify() during the trigsimp call and didn't finish after a couple days of computation. I guess the expressions do get pretty complicated.
I've modified my personal version as to have a simplify(..., usetrigsimp=True) function, where I can optionally turn off the trigsimp call, which fixed the problem.
In the documentation you say that when knowing about the expression a specific simplify call (nsimplify, trigsimp, etc.) is usually suited better, and I agree with that. But for general expressions, it might be useful to turn off just one simple specific simplify call to leave everything else intact. So my suggestion is to include kwargs such as usetrigsimp, usebesselsimp, usecombsimp in the simplify function.
Thanks and best,
Niklas
Beta Was this translation helpful? Give feedback.
All reactions