HP Forums

Full Version: HP Prime EVAL function question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Suppose I want to put a function call into a string and call it later. How do I do that?

For instance, if I try:

    EVAL("SIN(30)")
all I get is:
    "SIN(30)"
How do I get it to actually evaluate the string?

-Jonathan

Edited: 28 Sept 2013, 6:06 p.m.

Ok, found the answer to my own question!

You must use the single quotes:

   EVAL('SIN(30)')  ==>   .5

Quote:
Ok, found the answer to my own question!

You must use the single quotes:

   EVAL('SIN(30)')  ==>   .5



You may have been thinking of:

EXPR("SIN(30)");

which is another way to do it.