HP Prime EVAL function question



#4

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.


#5

Ok, found the answer to my own question!

You must use the single quotes:

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

#6

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.


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP50g: Writing a function that returns a function Chris de Castro 2 306 12-10-2013, 06:49 PM
Last Post: Han
  IFERR function on HP Prime Mic 2 267 12-02-2013, 01:33 AM
Last Post: cyrille de Brébisson
  HP Prime Matrix TERRIBLE bug and question uklo 19 898 11-25-2013, 12:10 PM
Last Post: Mic
  HP Prime - vector question bluesun08 3 217 11-18-2013, 07:26 PM
Last Post: Han
  Question about transfering programs to the HP Prime Namir 10 541 11-17-2013, 04:01 PM
Last Post: Namir
  HP Prime: Dirichlet's eta function recognized but not numerically evaluated Helge Gabert 0 157 11-16-2013, 03:41 PM
Last Post: Helge Gabert
  Possible bug with sqrt function in the HP prime Michael de Estrada 6 360 11-15-2013, 12:49 PM
Last Post: Michael de Estrada
  Another HP Prime CAS question Michael de Estrada 3 274 11-09-2013, 10:56 AM
Last Post: Michael de Estrada
  HP-41 MCODE: The Last Function - at last! Ángel Martin 0 169 11-08-2013, 05:11 AM
Last Post: Ángel Martin
  XCas / Prime "solve" question Nigel J Dowrick 4 297 11-08-2013, 04:01 AM
Last Post: Nigel J Dowrick

Forum Jump: