ARCHIVED: When I type sin(3), why does Maple echo this back instead of evaluating it?

This content has been archived, and is no longer maintained by Indiana University. Information here may no longer be accurate, and links may no longer be available or reliable.

If you type sin(3), Maple echoes it back instead of evaluating it because sin(3) does not simplify symbolically. You can obtain a floating-point solution by using the evalf() function:

  > sin(3);
                        sin(3)
  > evalf(sin(3));
                        .1411200081

Another way to get a floating-point solution is to call sin on 3.0, which is a floating-point number in Maple syntax, rather than on 3, which is an integer.

  > sin(3.0);
                        .1411200081

For more about Maple, see the UITS Research Analytics Maple page.

If you have questions about using statistical and mathematical software at Indiana University, contact the UITS Research Applications and Deep Learning team.

This is document afbl in the Knowledge Base.
Last modified on 2023-05-09 14:43:58.