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

You are not logged in.

#1 2009-10-19 13:39:03

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,552

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 smile


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

Offline

#2 2009-10-19 13:59:15

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

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

Offline

#3 2009-10-19 16:25:04

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 90,562

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

#4 2009-10-20 17:22:34

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,552

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

Offline

#5 2009-10-22 07:18:29

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 90,562

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.

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

#6 2009-10-22 11:43:49

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

Re: Order of Operations Calculator

Well, I bet my input is huger.

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

big_smile


"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

#7 2009-10-22 12:27:45

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,552

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

Offline

#8 2009-10-23 04:45:59

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 90,562

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.

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

Board footer

Powered by FluxBB