Follow TV Tropes

Following

6÷2(1+2) (A math topic)

Go To

GreatLich Since: Jun, 2009
#51: Apr 30th 2011 at 6:17:51 PM

@Lich: COEFFICIENTS HAVE IMPLICIT GROUPING! *glares*
What? Parentheses caused this, so I got rid of them. My equations are sound.

But, yeah. I'm with you on this. 2(1+2) is a single term.

I love you Lich
I do too. And you.

edited 30th Apr '11 6:21:04 PM by GreatLich

AllanAssiduity Since: Dec, 1969
#52: Apr 30th 2011 at 6:21:34 PM

... I hate math.

*

edited 30th Apr '11 6:22:03 PM by AllanAssiduity

Tzetze DUMB from a converted church in Venice, Italy Since: Jan, 2001
Yamikuronue So Yeah Since: Aug, 2009
#54: Apr 30th 2011 at 6:35:32 PM

So if 2(1+2) is a single term we should distribute like I said, right?

I think I hate this question now.

BTW, I'm a chick.
Zersk o-o from Columbia District, BNA Since: May, 2010
o-o
#55: Apr 30th 2011 at 6:43:22 PM

Tzetze: Pf, fool. The answer is Graham's number.

ᐅᖃᐅᓯᖅ ᐊᑕᐅᓯᖅ ᓈᒻᒪᔪᐃᑦᑐᖅ
Tzetze DUMB from a converted church in Venice, Italy Since: Jan, 2001
DUMB
#56: Apr 30th 2011 at 6:46:29 PM

Are you sure? Remember, function application is left-associative.

[1] This facsimile operated in part by synAC.
nightwyrm_zero Since: Apr, 2010
#57: Apr 30th 2011 at 6:46:59 PM

The moral of this story is that people should stop using ÷ as the division sign and instead use the fraction form for clarity. =P

edited 30th Apr '11 6:47:20 PM by nightwyrm_zero

Tzetze DUMB from a converted church in Venice, Italy Since: Jan, 2001
DUMB
#58: Apr 30th 2011 at 6:48:59 PM

That's kind of annoying to do in most textual thingamajiggers though... TeX is the obvious solution to bring us into the fourth millenium.

[1] This facsimile operated in part by synAC.
petrie911 Since: Aug, 2009
#59: Apr 30th 2011 at 7:10:23 PM

What function does 2 represent here? Also

The answer is irrelevant because no sane person would write math like that.

Belief or disbelief rests with you.
Ponicalica from facing Buttercup Since: May, 2010
Tzetze DUMB from a converted church in Venice, Italy Since: Jan, 2001
DUMB
#61: Apr 30th 2011 at 7:23:23 PM

What function does 2 represent here?

A function that pushes the number 2 to the stack, of course!

[1] This facsimile operated in part by synAC.
Tangent128 from Virginia Since: Jan, 2001 Relationship Status: Gonna take a lot to drag me away from you
#62: Apr 30th 2011 at 7:37:43 PM

Technically, 2 is a token that the Forth textual interpreter is unable to find in the dictionary, but can convert to a number, and thus compiles as a reference to the (LITERAL) routine followed by the number.

Therefore, 6 ÷ 2 ( 1 + 2 ) parses as "push 6, divide top two elements on stack, push 2, then ignore the comment in parentheses".

So you had better have a value on the stack to start with, lest you underflow. tongue

EDIT: okay, for efficiency you may wish to define the common constants such as 0, 1, and 2 with direct machine-code implementations. In which case 2 would be a routine to push 2 to the stack.

It's far more evilfun to define : 2 3 ; however. evil grin

edited 30th Apr '11 7:39:59 PM by Tangent128

Do you highlight everything looking for secret messages?
Pykrete NOT THE BEES from Viridian Forest Since: Sep, 2009
NOT THE BEES
#63: Apr 30th 2011 at 7:52:04 PM

Again, coefficients are implicit grouping.

5/2Y = 5/(2*Y), not (5/2)*Y. (Not that it will mate any difference in this specific example.)

Except I can type 5/2Y into any calculator with algebra handling and get 2.5 * Y. It's implicit grouping among lazy typists, not correct syntax.

BlackHumor Unreliable Narrator from Zombie City Since: Jan, 2001
#64: Apr 30th 2011 at 8:00:07 PM

And in my calculator, -4^2 is -16.

I'm convinced that our modern day analogues to ancient scholars are comedians. -0dd1
Tzetze DUMB from a converted church in Venice, Italy Since: Jan, 2001
BlackHumor Unreliable Narrator from Zombie City Since: Jan, 2001
#66: Apr 30th 2011 at 8:09:25 PM

Then you should change the battery, shouldn't you? tongue

I'm convinced that our modern day analogues to ancient scholars are comedians. -0dd1
Pykrete NOT THE BEES from Viridian Forest Since: Sep, 2009
NOT THE BEES
#67: Apr 30th 2011 at 8:10:41 PM

That's because -4^2 is -16. (-4)^2 is what you're looking for, because -<number> is an implicit (-1)*<number>.

BlackHumor Unreliable Narrator from Zombie City Since: Jan, 2001
#68: Apr 30th 2011 at 8:16:53 PM

You are apparently not considering the idea that the syntax your calculator uses is a representation of the syntax mathematicians use and not the other way around.

I'm convinced that our modern day analogues to ancient scholars are comedians. -0dd1
Pykrete NOT THE BEES from Viridian Forest Since: Sep, 2009
NOT THE BEES
#69: Apr 30th 2011 at 8:23:09 PM

No, that's exactly what I'm arguing. Calculators interpret it that way because that's the accepted style.

Like, if I wrote 20-4^2 you'd know I was looking for 4. So why would -4^2 not be -16?

edited 30th Apr '11 8:24:10 PM by Pykrete

Tzetze DUMB from a converted church in Venice, Italy Since: Jan, 2001
BlackHumor Unreliable Narrator from Zombie City Since: Jan, 2001
#71: Apr 30th 2011 at 8:26:06 PM

Because binary operators carry lower precedence than unary operators.

edited 30th Apr '11 8:27:48 PM by BlackHumor

I'm convinced that our modern day analogues to ancient scholars are comedians. -0dd1
Pykrete NOT THE BEES from Viridian Forest Since: Sep, 2009
NOT THE BEES
#72: Apr 30th 2011 at 8:30:38 PM

You realize that was written in the section entitled "Gaps in the standard" to contrast with written convention, and cited such marvelous mathematical constructs as Excel, right?

If you're going for (respectable) programming languages it doesn't even come up, since you usually have to use an explicit pow(a,b) for exponents or anything else that would normally come between parentheticals and multiplication in written convention.

edited 30th Apr '11 8:35:38 PM by Pykrete

BlackHumor Unreliable Narrator from Zombie City Since: Jan, 2001
#73: Apr 30th 2011 at 8:38:29 PM

It wasn't cited, and it was pretty irrelevant anyways, so I dropped the link.

Point is still valid; the reason they use that convention in Excel is that it's the convention that everyone uses. But I don't really want to dwell on a link I'm not even linking to anymore.

I'm convinced that our modern day analogues to ancient scholars are comedians. -0dd1
Ponicalica from facing Buttercup Since: May, 2010
#74: Apr 30th 2011 at 8:39:15 PM

Hell, for squaring there's a good chance you'll probably just use x*x(which, historical note, is actually what mathematicians used to use)

edited 30th Apr '11 8:39:52 PM by Ponicalica

the future we had hoped for
Tzetze DUMB from a converted church in Venice, Italy Since: Jan, 2001
DUMB
#75: Apr 30th 2011 at 8:41:52 PM

This is why we should do mathematics the Indian way. Scan that shit, bro

[1] This facsimile operated in part by synAC.

Total posts: 175
Top