Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ π -¹ ² ³ °

You are not logged in.

- Topics: Active | Unanswered

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,559

Just made an Order of Operations Calculator

Play with it, give it a good workout, and let me know what you do or don't like about it

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

Offline

**Ricky****Moderator**- Registered: 2005-12-04
- Posts: 3,791

It pretty gracefully handled my huge input. You may want to put a limit to the amount of text one can put in the input box though.

"In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..."

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 92,964

Hi;

Ricky wrote:

It pretty gracefully handled my huge input.

Well, I bet my input is huger.

7*5^3/5+11/2^3/2/2/3/5+17*123.345^32.34*17.2345-3^2.3^3.4

The calculator just wouldn't accept the last part "-3^2.3^3.4" , when I tried to paste it in. So either we are looking at a bug or you have already restricted the size of the input.

So maybe there might be overflow issues also.

Tree idea is excellent cause it shows how it was parsed.

*Last edited by bobbym (2009-10-19 17:22:21)*

**In mathematics, you don't understand things. You just get used to them.**

**I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.**

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,559

Thanks!

I made the text size a bit smaller, and allowed selecting of the output so you can scan down with the mouse to see the result.

It gets: 1.24084779868173e+70

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 92,964

Hi MathsIsFun;

Could be browser related but I can't cut and paste my expression to see that answer.

**In mathematics, you don't understand things. You just get used to them.**

**I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.**

Offline

**Ricky****Moderator**- Registered: 2005-12-04
- Posts: 3,791

Well, I bet my input is huger.

I was referring to the length of input that I was giving, and if your next line is your input, it wasn't.

"In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..."

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,559

bobbym wrote:

Could be browser related but I can't cut and paste my expression to see that answer.

You may need to use refresh to get the latest version (0.62)

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 92,964

Hi MathsIsFun;

I am using 0.62, the trouble is that my cursor starts in the middle of the input bar. I can't get it over to the extreme left. Have no idea what is causing that.

Hi Ricky;

Was just kidding around, please excuse my sense of humor.

**In mathematics, you don't understand things. You just get used to them.**

**I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.**

Offline