Post Reply 
MATLAB on Raspberry Pi 2, BeagleBone Black, ios, and Python
12-08-2015, 01:31 AM
Post: #6
RE: MATLAB on Raspberry Pi 2, BeagleBone Black, ios, and Python
math-processor is open source and is inspired in matlab

http://mathiversity.com/math-processor/d...-functions

Code:
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;:
    }
}
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: MATLAB on Raspberry Pi 2, BeagleBone Black, ios, and Python - compsystems - 12-08-2015 01:31 AM



User(s) browsing this thread: 1 Guest(s)