Math function solving

unfinished

by Darby Rathbone

JavaScript

/**
 * The position function for a projectile is s(t) = –16*(t*t) + _v*t + _h
 * v0 represents the initial velocity of the object
 * h0 represents the initial height of the object
 * Note that this position equation represents the height in feet of 
 * the object t seconds after it is released.
 **/
function mathFunction( in ) {
    var equation = {
        string: in .equation
    },
    variables = [];
    Object.keys( n ).forEach(function (e) {
        if (!e == equation) {
            var _e = Object.create(null);
            _e.name = e;
            _e.value = n[e];
            _e.regex = (function (s) {
                return new RegExp("(\$"+s+")","g");
            })();
            equation[e] = ;
            variables.push()
        }
    });



}