Algebra system with simplification etc.

Started by
2 comments, last by alex_myrpg 18 years ago
Hello, I want make an algebra system with distributive, associative communitative laws ans implification applied for max. the high school level. i've been looking on the net and i'm thinkin of using mathml, but didn't find that much. do you have any suggestions or interesting links? thanks
Be creative, don't copy...Greets from Holland!
Advertisement
I don't know details of it, but you may give Axiom a try:
http://axiom.axiom-developer.org/axiom-website/download.html
It is free, and precompiled binaries are available for several OSes.
Quote:
Hello, I want make an algebra system with distributive, associative communitative laws ans implification applied for max. the high school level.


Are you trying to write your own parser/evaluator for such computation?

Quote:i've been looking on the net and i'm thinkin of using mathml, but didn't find that much.


MathML is a description standard. It has no processing abilities.

The most straightforward way to approach this (and also get symbolic computation for free) is to create a binary tree from the equation. Look here for example (http://www.codeproject.com/csharp/binary_tree_expressions.asp).

The it's just a matter of traversing the nodes and transforming the tree to achieve what you want.
I believe using RPN evaluators is the simplest and quickest way to go for big expressions (or lots of them). :) The code's pretty short and simple too. Here are two good examples (though I've only tried the first):
http://www.codeproject.com/csharp/CustExprEval.asp
http://www.codeproject.com/csharp/RPN_ExpressionParser.asp
Hope that helps.

This topic is closed to new replies.

Advertisement