Pocket Grapher Scripting
lua.org. general help file. When a script is run it will run the script body then attempt to call the funciton in the body with the same name as the script passing the parameters recieved to lua and returning what the funciton returned. The parameters passed to lua will all be in a table format.
Table FormatsParameters are passed to lua scripts by means of a table. This allows complex number, lists, and matricies to be passed to a script. These tables can also be returned back to the calculator. Every table will have the member of "type". Type identifies the type of the table format and can be on of the following values.
The table formats that can be returned to the calculator are "number", "list", and "matrix". A regular number can also be returned to the calculator.
if param.type == "number" then
holder = param.r
param.r = param.i
param.i = holder
elseif param.type == "list" then
for i = 1,param.len do
elseif param.type == "matrix" then
for r = 1,param.row do
for c = 1,param.col do