calling simplification routines by default?

10 views
Skip to first unread message

krastano...@gmail.com

unread,
Jun 21, 2012, 11:53:14 AM6/21/12
to sy...@googlegroups.com
I know that using simplify in library code is discouraged because
simplify is not rigorously defined.

However, in diffgeom too often complicated trig expressions are
employed. I plan on using trigsimp by default in this code. I will
definitely try it and hopefully I will stick to using it, however I
would like to know your opinion?

manoj babu

unread,
Jun 21, 2012, 12:08:25 PM6/21/12
to sy...@googlegroups.com
that would be good.


--
You received this message because you are subscribed to the Google Groups "sympy" group.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to sympy+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sympy?hl=en.


Aaron Meurer

unread,
Jun 21, 2012, 6:03:46 PM6/21/12
to sy...@googlegroups.com
Actually it is used in some library code where no there is no
knowledge of the form of the expression. For example, both dsolve and
meijerint (I believe) use it.

If you do know the structure, you will have better luck applying
specific functions. Also note that simplify can be slow for large
expressions, so if that becomes an issue, you might want to add a flag
to disable it (such as with dsolve).

Aaron Meurer

On Jun 21, 2012, at 9:53 AM, "krastano...@gmail.com"

krastano...@gmail.com

unread,
Jun 21, 2012, 6:12:47 PM6/21/12
to sy...@googlegroups.com
By specific function do you mean stuff like trigsimp?

Vinzent Steinberg

unread,
Jun 25, 2012, 2:19:17 PM6/25/12
to sy...@googlegroups.com
Am Freitag, 22. Juni 2012 00:12:47 UTC+2 schrieb Stefan Krastanov:
By specific function do you mean stuff like trigsimp?

This and things like cancel(), apart(), together(), as_numer_denom() etc. If you want one of these, you should of course favor using it instead of simplify().

Vinzent
Reply all
Reply to author
Forward
0 new messages