Moodle  2.2.1
http://www.collinsharper.com
EvalMath Class Reference

Public Member Functions

 EvalMath ($allowconstants=false, $allowimplicitmultiplication=false)
 e ($expr)
 evaluate ($expr)
 vars ()
 funcs ()
 nfx ($expr)
 pfx ($tokens, $vars=array())
 trigger ($msg)

Static Public Member Functions

static is_valid_var_or_func_name ($name)

Data Fields

 $suppress_errors = false
 $last_error = null
 $v = array()
 $f = array()
 $vb = array()
 $fb
 $fc
 $allowimplicitmultiplication

Detailed Description

This class was heavily modified in order to get usefull spreadsheet emulation ;-) skodak

Definition at line 95 of file evalmath.class.php.


Member Function Documentation

e ( expr)

Definition at line 128 of file evalmath.class.php.

Here is the call graph for this function:

EvalMath ( allowconstants = false,
allowimplicitmultiplication = false 
)

Definition at line 120 of file evalmath.class.php.

evaluate ( expr)

Definition at line 132 of file evalmath.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

funcs ( )

Definition at line 176 of file evalmath.class.php.

static is_valid_var_or_func_name ( name) [static]
Parameters:
string$name
Returns:
boolean Is this a valid var or function name?

Definition at line 187 of file evalmath.class.php.

nfx ( expr)

Definition at line 194 of file evalmath.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

pfx ( tokens,
vars = array() 
)

Definition at line 363 of file evalmath.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

trigger ( msg)

Definition at line 438 of file evalmath.class.php.

Here is the caller graph for this function:

vars ( )

Definition at line 172 of file evalmath.class.php.


Field Documentation

$allowimplicitmultiplication

Definition at line 118 of file evalmath.class.php.

$f = array()

Definition at line 104 of file evalmath.class.php.

$fb
Initial value:
 array(  
        'sin','sinh','arcsin','asin','arcsinh','asinh',
        'cos','cosh','arccos','acos','arccosh','acosh',
        'tan','tanh','arctan','atan','arctanh','atanh',
        'sqrt','abs','ln','log','exp','floor','ceil','round')

Definition at line 106 of file evalmath.class.php.

$fc
Initial value:
 array( 
        'average'=>array(-1), 'max'=>array(-1),  'min'=>array(-1),
        'mod'=>array(2),      'pi'=>array(0),    'power'=>array(2),
        'round'=>array(1, 2), 'sum'=>array(-1), 'rand_int'=>array(2),
        'rand_float'=>array(0))

Definition at line 112 of file evalmath.class.php.

$last_error = null

Definition at line 101 of file evalmath.class.php.

$suppress_errors = false

Definition at line 100 of file evalmath.class.php.

$v = array()

Definition at line 103 of file evalmath.class.php.

$vb = array()

Definition at line 105 of file evalmath.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations