PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197 Simplify Algebraic Expression-VBForums

Here is my first ever attempt at creating anything solely math related.

So having said, there are known bugs. Simply put, it cannot handle large numbers. But soon I hope to find the time where I can implement a solution to solve this issue.

Updates: November 10th - Initial support* for the basics. IE (), *, /, +, -, and ^. November 11th - Square Roots (√) is now supported). Format: √(x) November 12th - Summation (∑) is now supported*. Format: ∑(expression,index,lower,upper) November 13th - Complete reconstruction of my operations that fixed a few bugs. November 17th -Factorials (!) is now supported* and all doubles have now been replaced with decimals. Plus some more bugs fixed. February 10th 2013 - Negative (-) signs were not being recognized as numeric values.

*AT THE MOMENT I REALIZE AN ON GOING ISSUE. When converting to string from a double, if the number is large/small enough I'll receive my converted string in scientific notation. Which cannot be converted back into a double. I'm working hard at the moment to fix this, but if anyone has any suggestions please do tell. In the mean time, avoid using any fractions which can produce irrational numbers. Those seem to be the killers. However once supported, the Pi and e Symbols will be added to the support list.

*DO NOT USE SQUARE BRACKETS ([, ])IN YOUR EQUATIONS. When an equation such as, (-1)^n is simplified. It becomes [-1]^n for evaluation purposes. My guess would be that if you used any, then that would cause an exception.

Last edited by DavesChillaxin; Feb 10th, 2013 at 04:13 PM.

Sounds like a good idea ... but can you make the project compatible with vs2008? ; has a few errors (could prob fix them but don't have the time 2 look atm)....

In the near future I will, but my first priority is to fix all the bugs, also most important the issue of accuracy. I'm in the middle of attempting a transition to BigInteger which will hopefully eliminate this issue. I'll be uploading an update to this tonight however, which now can support ! - factorials.

Edit:

Originally Posted by i00

has a few errors (could prob fix them but don't have the time 2 look atm)....

Could you possibly give me a few pointers to the errors? I know there were some obvious ones such as 6^10. I was building the exponent backwards which gave me 01. That had been noted and fixed last night at school. Also I change all doubles to decimals until I can figure how to approach the transition to BigIntegers. Doing decimals gave me a little more play with accuracy, but still not completely. Going to far will give you overflows.

Last edited by DavesChillaxin; Nov 17th, 2011 at 06:52 PM.

Please rate if my post was helpful!
Per favore e grazie!

Sorry for anyone who's seen no updates for this. I've been really busy with my main project at the moment Ive had no time for any of my other side projects... however soon I will require this math class of mine in my main project. So soon I'll be back on this with hopes of finding a way of dealing with irrational numbers and such.

Please rate if my post was helpful!
Per favore e grazie!

Also the biggest bug is numbers too large to handle... I stopped working on this for a bit, but I was in the middle of fixing this(which is a ton of work.. much more than I had hoped for) But I'm hoping to jump back into this soon and fix all bugs Also, I've learned a lot since I wrote this so a lot can probably be changed and modified to perform better, faster and stronger.

Please rate if my post was helpful!
Per favore e grazie!

Hey, I found wrong results when simplifying 2x when x running from -10 to 10 : All the x values from -10 to -1 are wrong. Can you fix this?

Wow, nice catch on that. I'll take a look at it after work today, but unfortunately I'm going to remake this project from scratch. I'll fix this error for now, but expect in the near future a much more powerful and efficient version of this.

Please rate if my post was helpful!
Per favore e grazie!

→ The Comprehensive Guide to Cloud Computing
A complete overview of Cloud Computing focused on what you need to know, from selecting a platform to choosing a cloud vendor.