HP Forums
HP Prime EVAL function question - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: HP Prime EVAL function question (/thread-251660.html)



HP Prime EVAL function question - Jonathan Cameron - 09-28-2013

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.


Re: HP Prime EVAL function question - Jonathan Cameron - 09-28-2013

Ok, found the answer to my own question!

You must use the single quotes:

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



Re: HP Prime EVAL function question - Han - 09-28-2013

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.