equation
This commit is contained in:
parent
5db818b3d3
commit
a8f47cd662
@ -3,7 +3,7 @@ import operators from './operators';
|
|||||||
import constants from './constats';
|
import constants from './constats';
|
||||||
import * as _ from './helpers';
|
import * as _ from './helpers';
|
||||||
|
|
||||||
let Mathstring = {
|
let Equation = {
|
||||||
/**
|
/**
|
||||||
* Solves the given math expression, following these steps:
|
* Solves the given math expression, following these steps:
|
||||||
* 1. Replace constants in the expression
|
* 1. Replace constants in the expression
|
||||||
@ -64,8 +64,7 @@ let Mathstring = {
|
|||||||
return a;
|
return a;
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(variables, expression);
|
return Equation.solve(expression);
|
||||||
return Mathstring.solve(expression);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -293,4 +292,4 @@ const replaceConstants = expression => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Mathstring;
|
export default Equation;
|
||||||
|
Loading…
Reference in New Issue
Block a user