Maths

[ Back ]

NaaLaa has a basic set of mathematical functions, all presented below.

Sub routines

function min(a, b), function min#(a#, b#)
function max(a, b), function max#(a#, b#)
function abs(a), function abs#(a#)
function sqr#(a#)
function sin#(a#), function cos#(a#), function tan#(a#)
function asin#(a#), function acos#(a#), function atan#(a#)
function atan2#(y#, x#)
procedure degrees, procedure radians
function degrees()


function min(a, b)
function min#(a#, b#)

Return the smallest value of a and b.


function max(a, b)
function max#(a#, b#)

Return the largest value of a and b.


function abs(a)
function abs#(a#)

Return the absolute value of a.


function sqr#(a#)

Return the square root of a.


function sin#(a#)
function cos#(a#)
function tan#(a#)

Return sin, cos or tan of a.


function asin#(a#)
function acos#(a#)
function atan#(a#)

Return asin, acos or atan of a.


function atan2#(y#, x#)

Return the angle between the positive x axis of a plane and the point given by the coordinates (x, y) on it.


procedure degrees
procedure radians

Switch between degrees (standard) and radians for all trigonometric functions.


function degrees()

Return true if trigonometric functions are using degrees (default).

[ Back ]