E7_82_8E
E7_82_8E

Reputation: 75

Maxima not evaluating trig expressions

How do you make maxima give you the numerical value for a expression involving trigonometric function?

For example ''(sin(pi/6)); or ev(sin(pi/6)) just returns sin(pi/6) instead of 0.5

Upvotes: 0

Views: 1624

Answers (1)

Robert Dodier
Robert Dodier

Reputation: 17585

First, note that 3.14... is written as %pi in Maxima (note the percent sign). Second, you can force numerical evaluation by writing float(sin(%pi/6)) or ev(sin(%pi/6), numer) or, in the interactive console, sin(%pi/6), numer.

Upvotes: 1

Related Questions