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. Unlike standard Squirrel, imp Squirrel requires that all of these functions are prefixed with math., for example:

local answer = math.exp(45.01);

This is how they are listed here.

Member Entities

The math object has the following member functions: