Author Topic: My new toy..  (Read 20283 times)

0 Members and 1 Guest are viewing this topic.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: My new toy..
« Reply #30 on: September 08, 2007, 02:32:12 am »
Its use in a bunch of programming languages doesn't really make it a standard, especially since there are so many other ways that it's done.

Plus, that's in the syntax of the programming language; it doesn't really apply in a situation like this... :-\

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: My new toy..
« Reply #31 on: September 09, 2007, 01:49:48 pm »
People are stupid :D

** is power, ^ is eXclusive Or

Not difficult to remember :\

Man, I wish everyone else in my math class knew C.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: My new toy..
« Reply #32 on: September 09, 2007, 06:59:28 pm »
Let's just all start using Math.pow(x, y) for exponents. That should solve everything.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: My new toy..
« Reply #33 on: September 09, 2007, 07:03:57 pm »
Let's just all start using Math.pow(x, y) for exponents. That should solve everything.

Haha, agreed!

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: My new toy..
« Reply #34 on: September 09, 2007, 09:33:52 pm »
Man, I wish everyone else in my math class knew Java.

Fixed.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: My new toy..
« Reply #35 on: September 09, 2007, 09:39:37 pm »
Man, I wish everyone else in my math class knew Java.

Fixed.

Huh?

Incidentally, it would be even more complicated if they only knew C, because in addition to having to type pow(x, y), you'd have to find a way to link in the math library (-libm) when they, err, compile your text?

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: My new toy..
« Reply #36 on: September 10, 2007, 02:40:07 am »
I was saying that using Math.pow is Java-specific, making it even more complicated than C syntax.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: My new toy..
« Reply #37 on: September 10, 2007, 02:51:31 am »
I was saying that using Math.pow is Java-specific, making it even more complicated than C syntax.

How does it being Java syntax make it more complicated than C? :S

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: My new toy..
« Reply #38 on: September 10, 2007, 10:18:24 am »
I was saying that using Math.pow is Java-specific, making it even more complicated than C syntax.

How does it being Java syntax make it more complicated than C? :S

Math is a class. ^ and ** are operators. Math is language specific, whereas ^ and ** are part of the syntax, and can be taken to any most programming languages.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: My new toy..
« Reply #39 on: September 10, 2007, 12:06:12 pm »
Math is a class. ^ and ** are operators. Math is language specific, whereas ^ and ** are part of the syntax, and can be taken to any most programming languages.

Yes, I know, but Math being Java-specific doesn't make the syntax any more complicated.

If you start throwing ** around in C, I'm pretty sure you're not going to get the desired results. :P

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: My new toy..
« Reply #40 on: September 10, 2007, 12:47:35 pm »
Math is a class. ^ and ** are operators. Math is language specific, whereas ^ and ** are part of the syntax, and can be taken to any most programming languages.

Yes, I know, but Math being Java-specific doesn't make the syntax any more complicated.

Let my bad joke die, okay? :P
I'd personally do as Joe suggests

You might be right about that, Joe.