equation
This commit is contained in:
parent
5db818b3d3
commit
a8f47cd662
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user