Ahem, both of those have three function calls, and not all functions are equal. A cos call is far more expensive than a simple multiply or divide. I expect there are a lot of multiplications and divisions going on inside sin and cos.
Thank you for the interest and comments. If at all possible please respond to my other questions as well or refer to a colleague who may be able to assist. I would like to explore further the Symbolics.jl package but need more information.
Symbolics.jl is not part of Julia itself, so you won’t find any reference to it in the Julia manual. The Symbolics.jl codebase is here, and its documentation (there’s also a link on the page I just mentioned) is here.
Yes, I visited this website previously but other than simplify() I
could not find
any additional simplification functions, eg. factor(), expand(), etc. I assume
that they are not available yet?
Also, I could not find some linear algebra functions for symbolic matrices, eg.
reduced row echelon form, etc.
I don’t know if it helps, but Symbolics.jl uses some routines in package SymbolicUtils.jl, and the simplify functionality is better explained in the documentation for SymbolicUtils.jl. [At least last time I checked…]
If they are available then I would like to try them. Please let me know
as soon as the documentation is available.
I noticed that the julia command names(Symbolics) and names(Symbolics,
all=true) provides the user with some information as to all the methods that
are available in the package Symbolics.
Are there julia commands for listing the contents of a specified method in
the Symbolics package or any julia package?