Skip to main content



Device, Agent


Squirrel’s math library provides a set of mathematical functions you can incorporate into your agent or device code. All of these functions need to be prefixed with math., for example:

local answer = math.exp(45.01);

This is how they are listed here, contrary to standard Squirrel documentation.

The math object has the following member functions: