nicolewhite / algebra.js

Build, display, and solve algebraic equations.
http://algebra.js.org
MIT License
1.34k stars 111 forks source link

Algebraic power does not work for fractions and decimal #75

Closed Amruthraj1 closed 7 years ago

Amruthraj1 commented 7 years ago

For a decimal value, The power does not work. If we have var exp3 = new Expression("x"); var power = exp3.pow(1/0.258); I get an error that the power argument must be an integer Infact, the whole algebra.js works only for integer numbers and not for floating point numbers

nicolewhite commented 7 years ago

Yeah, that is not supported because the package does not support irrational numbers.