Author Topic: I bet you also thought it was correct  (Read 3440 times)

0 Members and 1 Guest are viewing this topic.

Offline ca0s

  • VIP
  • Sir
  • *
  • Posts: 432
  • Cookies: 53
    • View Profile
    • ka0labs #
Re: I bet you also thought it was correct
« Reply #15 on: April 16, 2012, 08:17:02 pm »
Your order of precedence is not the one used in mathematics. Some programming languages and programs may have an unary minus that has a higher precedence than exponentiation, but that is not something a mathematician would do.

Wikipedia: https://en.wikipedia.org/wiki/Order_of_operations#cite_note-2
Wolfram Alpha:
http://www.wolframalpha.com/input/?i=-2^2

@gh0st: Now I understand that there is indeed a misconception about this.

Edit: Link added.

MFW I was wrong. Last maths I studied were logic propositions, so yes, I was confused. I deserve more than -9000, sir.
« Last Edit: April 16, 2012, 08:20:58 pm by ca0s »

Offline Infinityexists

  • Peasant
  • *
  • Posts: 74
  • Cookies: 1
    • View Profile
Re: I bet you also thought it was correct
« Reply #16 on: April 16, 2012, 09:24:51 pm »
Your order of precedence is not the one used in mathematics. Some programming languages and programs may have an unary minus that has a higher precedence than exponentiation, but that is not something a mathematician would do.

Wikipedia: https://en.wikipedia.org/wiki/Order_of_operations#cite_note-2
Wolfram Alpha:
http://www.wolframalpha.com/input/?i=-2^2

@gh0st: Now I understand that there is indeed a misconception about this.

Edit: Link added.


this is what i explained in fewer lines ;)


to All:
why you people are still discussing since the right answer has already been posted :O

Offline Deque

  • P.I.N.N.
  • Global Moderator
  • Overlord
  • *
  • Posts: 1203
  • Cookies: 518
  • Programmer, Malware Analyst
    • View Profile
Re: I bet you also thought it was correct
« Reply #17 on: April 17, 2012, 09:27:37 am »
this is what i explained in fewer lines ;)

I know that you did, but obviously a lot of people didn't believe it.

Offline pl0tuS

  • Knight
  • **
  • Posts: 320
  • Cookies: 22
    • View Profile
Re: I bet you also thought it was correct
« Reply #18 on: April 17, 2012, 04:44:04 pm »
I did. Where is my cookie ?


--Approved future mod :D --Factionwars

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: I bet you also thought it was correct
« Reply #19 on: April 17, 2012, 11:42:45 pm »
I did. Where is my cookie ?

I believe this guy ate it
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true