Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > Other Topics > Science, Math, and Philosophy
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 12-03-2005, 02:01 AM
Piers Piers is offline
Senior Member
 
Join Date: Sep 2002
Posts: 246
Default Re: Simple math/syntax problem

[ QUOTE ]
Everybody agrees that (-5)^2 = 25 and -(5^2) = -25.

The question is which of those two possibilities -5^2 represents.

[/ QUOTE ]

If – is defined to have prority then 25 is correct, if ^ is defined to have proirty then –25 is correct.

Hope that answered your question.
Reply With Quote
  #12  
Old 12-03-2005, 05:12 AM
garyjacosta garyjacosta is offline
Member
 
Join Date: May 2005
Location: Digging my head out of my ass
Posts: 95
Default Re: Simple math/syntax problem

X is understood as (1) x (X)
A (-) before X applies to the lead coefficient (1)
Therefore:
When X=5
-(1) x^2 = -25
Reply With Quote
  #13  
Old 12-03-2005, 06:56 AM
maurile maurile is offline
Member
 
Join Date: Mar 2003
Posts: 95
Default Re: Simple math/syntax problem

Well, you guys are no fun.

Even though Google and Excel return an answer of 25, that's contrary to standard convention.

By convention, exponentiation has priority over multiplication, and the unary minus is considered to be a multiplicative operator (converting the operand to its opposite by multiplying by negative one).

Many people read -5^2 as taking negative five and squaring it. But in fact there is no negative five in that expression. The thing that's negative is five squared, not five. The squaring comes first, then the negativing. (Yes, I am making up words.)

It's funny how adamant some people are, however, that -5^2 - 25, and that there's no other legitimate way of doing it.
Reply With Quote
  #14  
Old 12-03-2005, 06:59 AM
maurile maurile is offline
Member
 
Join Date: Mar 2003
Posts: 95
Default Re: Simple math/syntax problem

Here is the thread on the other forum: link.
Reply With Quote
  #15  
Old 12-03-2005, 10:16 AM
punter11235 punter11235 is offline
Senior Member
 
Join Date: Mar 2005
Location: Poland
Posts: 198
Default Re: Simple math/syntax problem

[ QUOTE ]
how badly did I screw up?

[/ QUOTE ]

Dont forget that "-5" is not the same as "0 - 5". First minus is a symbol which change expression's sign and second minus is a symbol for operation of substracting. These two can have diffrent priorities.
Reply With Quote
  #16  
Old 12-03-2005, 10:18 AM
punter11235 punter11235 is offline
Senior Member
 
Join Date: Mar 2005
Location: Poland
Posts: 198
Default Re: Simple math/syntax problem

[ QUOTE ]
-5^2 = -5 * 5 = -25.

This is the correct order of operations.

[/ QUOTE ]

[img]/images/graemlins/confused.gif[/img]

-5^2 is either -(5^2) or (-5)^2
depending on priorities of "-" where "-" is symbol which change expression's sign not substracting.
Reply With Quote
  #17  
Old 12-03-2005, 03:22 PM
jason_t jason_t is offline
Senior Member
 
Join Date: Nov 2004
Location: Another downswing?
Posts: 2,274
Default Re: Simple math/syntax problem

[ QUOTE ]
[ QUOTE ]
-5^2 = -5 * 5 = -25.

This is the correct order of operations.

[/ QUOTE ]

[img]/images/graemlins/confused.gif[/img]

-5^2 is either -(5^2) or (-5)^2
depending on priorities of "-" where "-" is symbol which change expression's sign not substracting.

[/ QUOTE ]

Yes I should have used a set of parentheses. By what I typed I meant -(5 * 5).
Reply With Quote
  #18  
Old 12-03-2005, 04:50 PM
man man is offline
Junior Member
 
Join Date: Dec 2004
Posts: 26
Default Re: Simple math/syntax problem

[ QUOTE ]
Even though Google and Excel return an answer of 25, that's contrary to standard convention.

[/ QUOTE ]
it might be because most users of Excel aren't careful enough, so the programmers made it this way.

but what about -6^2?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.