| Server IP : 165.22.154.248 / Your IP : 216.73.217.0 [ Web Server : Apache/2.4.29 (Ubuntu) System : Linux droplet-integra 4.15.0-197-generic #208-Ubuntu SMP Tue Nov 1 17:23:37 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 7.2.24-0ubuntu0.18.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/avanza-lms.old.bak9874115/lib/evalmath/ |
Upload File : |
Description of EvalMath library import into Moodle Our changes: * implicit multiplication (optionally) not allowed * new custom calc emulation functions * removed (optionally) e and pi constants - not used in calc * removed sample files * Fix a == FALSE that should have been === FALSE. * added $expecting_op = true; for branch where a function with no operands is found to fix bug. * moved pattern for func and var names into a static var * made a function to test a string to see if it is a valid func or var name. * localized strings * added round, ceil and floor functions. * EvalMath::EvalMath() changed to EvalMath::__construct() and there is a new EvalMath::EvalMath function to maintain backwards compatibility To see all changes diff against version 1.1, available from: http://www.phpclasses.org/browse/package/2695.html skodak, Tim Hunt Changes by Juan Pablo de Castro (MDL-14274): * operators >,<,>=,<=,== added. * function if[thenelse](condition, true_value, false_value) Changes by Stefan Erlachner, Thomas Niedermaier (MDL-64414): * add function or: e.g. if (or(condition_1, condition_2, ... condition_n)) * add function and: e.g. if (and(condition_1, condition_2, ... condition_n))