Algebrite: calling Algebrite.print() throws "ReferenceError: Eval_display is not defined"
I am trying to turn the result of Algebrite.simplify('x+x+x') into a string. I thought Algebrite.print() might do that, but it fails, throwing the exception “ReferenceError: Eval_display is not defined”.
Some background:
What I am actually trying to accomplish is testing whether two expressions (this could be equations, too) are equivalent to each other. I was using Algebrite.run(expr1) == Algebrite.run(expr2), but this has side effects and does not work for equations or inequalities. I thought simplify might be the better way to go.
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 19 (12 by maintainers)
So my idea was to run something like this piece of code
to replace each number in the input by a rational to avoid any floating point operations in Algebrite. It would not change
1/3, since only the1and the3would be passed to the function, but it would turn0.5into5/10and3.3333into33333/10000.What is the more general case you mentioned? Where should I best add the test cases?