You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Math Library Extension

12.0

Math Library Extension

In addition to the functions that come with the standard Lua math library, there is an interface to the TI-Nspire™ math server that allows access to the advanced mathematical features of the TI-Nspire™ product.

Note

The TI-Nspire™ math server uses a number of unicode characters. For example, the math server uses Unicode character U+F02F, i, UTF-8 character “\239\128\175”, for
imaginary numbers and another special character for the exponent for a scientific notation, small capital letter “E”.

See http://en.wikipedia.org/wiki/UTF-8 for a description of how to convert unicode to UTF-8 and vice versa. See TI-Nspire™ Reference Guide for a list of unicode characters used in TI-Nspire™ software.

All results from the TI-Nspire™ math server are returned as full-precision expressions. To limit the precision of the result to the display digits, retrieve the current display digits via math.getEvalSettings() and apply the appropriate precision before
displaying the value returned by the TI-Nspire™ math server.

Related Topics

eval

evalStr

getEvalSettings

setEvalSettings