Please register to participate in our discussions with 2 million other members - it's free and quick! Some forums can only be seen by registered members. After you create your account, you'll be able to customize options and access all our 15,000 new posts/day with fewer ads.
LOL - been following this thread since the beginning, off-and-on... my answer? "2"
Simply due to what I recall from my JHS & HS math courses many moons ago: "what is in parenthesis gets done first, followed by what is 'attached' to such, and then go left to right obeying the PEMDAS laws". Even from my BS degree in engineering, nothing swayed me from that process.
Funny,,, the other day, I asked oldest boy and some of his college freshman friends about this, and also the engineers that work for me: 6 out of 8 came back w/ the answer being "2", the other two [which was one from each group of people] replied with "288".
Main take-away that I see with this equation is that it has the potential to be ambiguous... that there are those that don't see the "2" as being tied-to what is w/in the parenthesis, but as tied-to 48. And IMHO, the former is the correct interpretation of this kind of equation. 6am more clearly lays this out in the above posts.
Distributive property of multiplication states 2(9+3) cannot be separated.
Considering that the distributive property of multiplication is just multiplication and thus follows the order of operations (per the link I showed you, which even states that distribution occurs alongside division from left to right), can you provide evidence or proof to your statement?
Location: Mableton, GA USA (NW Atlanta suburb, 4 miles OTP)
11,334 posts, read 26,096,346 times
Reputation: 3996
Quote:
Originally Posted by PanTerra
You don't know convention.
Actually, I think a classic infix to postfix conversion program (pushing operators and operands on a stack and popping them off in the correct order) would arrive at 288. Operations inside parenthesis are performed first as the closing paren is popped off the stack. Multiplication and division are equal in priority. Standard parsing and resolution is left to right.
It's an interesting puzzle, tho, and shows why ambiguity can cause issues for even "simple" problems.
Oh wait...
It's too late in the day. I punt. It might be 2. I need to write the code in several languages and see how they handle it.
The presence or absence of an implied multiplication is the turning point. I was always taught that a number adjacent to a right paren was implied multiplication, but a calculator generally needs explicit operators to be specified, so a lot will depend on how the parser is coded.
Please register to post and access all features of our very popular forum. It is free and quick. Over $68,000 in prizes has already been given out to active posters on our forum. Additional giveaways are planned.
Detailed information about all U.S. cities, counties, and zip codes on our site: City-data.com.