Jump to content
  • Advertisement
Sign in to follow this  
rmdeboer82

Algebra system with simplification etc.

This topic is 4500 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!