[Maxima] Maxima removes parentheses from cos(x)
villate at fe.up.pt
Wed Oct 17 06:32:03 CDT 2007
On Tue, 2007-10-16 at 21:36 -0600, Robert Dodier wrote:
> For TeX output, Maxima treats sin, cos, etc as prefix
> operators with a precedence greater than multiplication.
> So cos xy has to mean (cos x)*y; cos(x*y) is output as cos(xy).
> For TeX output, we could change the precedence of
> sin, cos, etc to be less than that of multiplication. Then
> cos xy has to mean cos(x*y), and cos(x)*y is output as (cos x) y.
Would it be possible to treat sin and cos as functions rather that
prefix operators and always typeset their arguments within parenthesis?
More information about the Maxima