This commit is contained in:
Mahdi Dibaiee 2015-04-20 14:01:55 +04:30
parent 5db818b3d3
commit a8f47cd662

View File

@ -3,7 +3,7 @@ import operators from './operators';
import constants from './constats';
import * as _ from './helpers';
let Mathstring = {
let Equation = {
/**
* Solves the given math expression, following these steps:
* 1. Replace constants in the expression
@ -64,8 +64,7 @@ let Mathstring = {
return a;
});
console.log(variables, expression);
return Mathstring.solve(expression);
return Equation.solve(expression);
};
}
};
@ -293,4 +292,4 @@ const replaceConstants = expression => {
});
};
export default Mathstring;
export default Equation;