News:

How did you even find this place?

Main Menu

My new toy..

Started by Joe, August 22, 2007, 04:18:46 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Sidoh

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... :-\

Joe

Quote from: rabbit on September 07, 2007, 06:26:43 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.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


iago

Let's just all start using Math.pow(x, y) for exponents. That should solve everything.

Sidoh

Quote from: iago on September 09, 2007, 06:59:28 PM
Let's just all start using Math.pow(x, y) for exponents. That should solve everything.

Haha, agreed!

Joe

Quote from: Joex86] link=topic=10074.msg129729#msg129729 date=1189360188]
Man, I wish everyone else in my math class knew Java.

Fixed.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


iago

Quote from: Joex86] link=topic=10074.msg129748#msg129748 date=1189388032]
Quote from: Joex86] link=topic=10074.msg129729#msg129729 date=1189360188]
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?

Joe

I was saying that using Math.pow is Java-specific, making it even more complicated than C syntax.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


Sidoh

Quote from: Joex86] link=topic=10074.msg129781#msg129781 date=1189406407]
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

Joe

Quote from: Sidoh on September 10, 2007, 02:51:31 AM
Quote from: Joex86] link=topic=10074.msg129781#msg129781 date=1189406407]
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.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


Sidoh

Quote from: Joex86] link=topic=10074.msg129790#msg129790 date=1189433904]
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

Joe

Quote from: Sidoh on September 10, 2007, 12:06:12 PM
Quote from: Joex86] link=topic=10074.msg129790#msg129790 date=1189433904]
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
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.