Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

patent10021

macrumors 68040
Original poster
Apr 23, 2004
3,579
854
How does

(function / 4.0 * 2.0) + (1.0 / 4.0)

become

((function * 2.0) + 1.0) / 4

?
 
Oh snap! That's right. I kept thinking it was an equation and had to do it to the other side as well, but it's only an expression!

But wait. Isn't it function OVER 4 * 2 not function OVER 4? We have to adhere to PEDMAS
 
Oh snap! That's right. I kept thinking it was an equation and had to do it to the other side as well, but it's only an expression!

But wait. Isn't it function OVER 4 * 2 not function OVER 4? We have to adhere to PEDMAS

Pay attention to your parentheses. You wrote
Code:
(function / 4.0 * 2.0) + (1.0 / 4.0)
which is NOT equivalent to
Code:
(function / (4.0 * 2.0)) + (1.0 / 4.0)
which is, I believe, what you are thinking.
 
Yes you are right. I was thinking that. So in reality this expression is easier than I made it out to be lol Ridonculous.

You just need to know the excursion types plus PEDMAS and you're set.

Thank you.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.