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

You are not logged in.

## #1 2009-10-20 12:39:03

MathsIsFun

Offline

### Order of Operations Calculator

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

## #2 2009-10-20 12:59:15

Ricky
Moderator

Offline

### Re: Order of Operations Calculator

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..."

## #3 2009-10-20 15:25:04

bobbym

Online

### Re: Order of Operations Calculator

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-20 16:22:21)

In mathematics, you don't understand things. You just get used to them.
90% of mathematicians do not understand 90% of currently published mathematics.
I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on.

## #4 2009-10-21 16:22:34

MathsIsFun

Offline

### Re: Order of Operations Calculator

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

## #5 2009-10-23 06:18:29

bobbym

Online

### Re: Order of Operations Calculator

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.
90% of mathematicians do not understand 90% of currently published mathematics.
I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on.

## #6 2009-10-23 10:43:49

Ricky
Moderator

Offline

### Re: Order of Operations Calculator

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..."

## #7 2009-10-23 11:27:45

MathsIsFun

Offline

### Re: Order of Operations Calculator

#### 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

## #8 2009-10-24 03:45:59

bobbym

Online

### Re: Order of Operations Calculator

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.
90% of mathematicians do not understand 90% of currently published mathematics.
I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on.