← SPL reference

newMath (lib/newMath.spl)

Pure SPL math helpers: constants pi and e, plus functions registered as function.power, function.abs, and others. Load with use newMath; (extensionless import is allowed because the file starts with reqFileExtension.setVar(false);).

Import

use newMath;
print.number(pi);
print.number(function.power(2, 8));

Constants

Functions

Implementation: someProgrammingLanguage/lib/newMath.spl