Difference between revisions of "math.eval"

From Inspired-Lua Wiki
Jump to navigation Jump to search
(Created page with "<span style="font-weight: bold;">math.eval</span> is a math library extension. <br> The function calls the math server with the specified arguments and returns the a numerica...")
 
Line 7: Line 7:
 
== Syntax  ==
 
== Syntax  ==
  
var.'''eval(expression)'''<br> evaluates "expression" (can contain Basic arguments) and returns a result as a number if possible.<br>
+
math.'''eval(expression)'''<br> evaluates "expression" (can contain Basic arguments) and returns a result as a number if possible.<br>  
  
Expression can contain everything a TI-Basic function can contain. You can seperate statements using ":".
+
Expression can contain everything a TI-Basic function can contain. You can seperate statements using ":".  
  
 
It can also contain calls to user defined functions in the document, or functions in global libraries.
 
It can also contain calls to user defined functions in the document, or functions in global libraries.
 
 
  
 
== Example  ==
 
== Example  ==

Revision as of 17:40, 11 March 2012

math.eval is a math library extension.


The function calls the math server with the specified arguments and returns the a numerical result if possible.

Syntax

math.eval(expression)
evaluates "expression" (can contain Basic arguments) and returns a result as a number if possible.

Expression can contain everything a TI-Basic function can contain. You can seperate statements using ":".

It can also contain calls to user defined functions in the document, or functions in global libraries.

Example

math.eval("sqrt(2^3)")


See also