El autor de esta aplicación, esta escribiendo una app de matemáticas (mathprocessor) inspirada en MATLAB, ver
https://sourceforge.net/projects/mprocessor/algunos scripts de esta aplicación
http://mathiversity.com/math-processor/documentation/user-defined-functionsspirograph = function (R, r, p, rotations, color)
{
t = vectorin(0, 0.05, 2 * pi * rotations);:
x = (R + r) * cos(t) + p * cos((R + r) * t / r);:
y = (R + r)* sin(t) + p * sin((R + r) * t / r);:
plot(x, y, color):
}
fibonacci = function (return, times, twoNumbersBack, oneNumberBack)
{
if (times == 1) { return = twoNumbersBack;:}
elseif (times == 2) { return = oneNumberBack;:}
elseif (times == 3) { return = oneNumberBack + twoNumbersBack;: }
elseif (times >= 0)
{
return = fibonacci(times - 1, oneNumberBack, oneNumberBack + twoNumbersBack);:
}
else
{
echo("Error: Bad input."):
return = -1;:
}
}