Hacker News new | past | comments | ask | show | jobs | submit login

Last time I tried sympy was to simplify a function including dot products. In 24h it was not able to converge.

Anyone has tips to reduce time required to simplify?




The main simplify function is full of heuristics and is itself a basket of more specialised simplify functions. One thing to try one or several of these specialised functions.

Another tip I don't think gets mentioned enough, try to provide domain information for your symbolic variables. By default all these systems assume the most general solution. But if you know x is a positive real value, you should tell that to SymPy.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: