Recent Changes - Search:

Information

Installation

Documentation

 

Javascript Function Parser

This Javascript parser is used to compute values from analytic expressions.

 

The syntax supported by the parser is the following:

 

  • CONSTANTS: E (the number e), PI, pi
  • OPERATORS: ‘+’, ‘-‘, ‘*’, ‘/’, ‘%’ (modulus), ‘^’ (power), ‘,’ (append), ‘||’ (concat)
  • FUNCTIONS OF NO VARIABLE: “random()”
  • FUNCTIONS OF ONE VARIABLE: “abs(x)”, “acos(x)”, “asin(x)”, “atan(x)”, “ceil(x)”, “cos(x)”, “exp(x)”, “fac(n)” (n!), “floor(x)”, “log(x)”, “round(x)”, “sin(x)”, “sqrt(x)”, “step(x)” (0 if x<0, 1 otherwise), “tan(x)”
  • FUNCTIONS OF SEVERAL VARIABLES: “atan2(y,x)”, “min(a,b,….)”, “max(a,b,…)”, “pow(a,b)” (a^b), “pyt(a,b)” (sqrt(a*a+b*b))



Edit - History - Print - Recent Changes - Search
Page last modified on August 26, 2013, at 05:50 PM