Algebra

• 04-10-2002
Unregistered
Algebra
How would I use exponents in C++ (ie having a^2+b^2) = c^2

Anyone know? thanks.
• 04-10-2002
taylorguitarman
math.h - pow(), sqrt() and other great math functions in there.
• 04-10-2002
Unregistered
thanks
• 04-10-2002
Xterria
hey, does ^ mean 'to the power'?
• 04-10-2002
ProgrammingDlux
>hey, does ^ mean 'to the power'?

In algebra it does. In C++, I'm sure you know how to use pow(). ;)
• 04-10-2002
Xterria
so 4^4 would be sixteen, am i correct
• 04-10-2002
ProgrammingDlux
>so 4^4 would be sixteen, am i correct

4^2 is 16
4^4 is 256
• 04-10-2002
Xterria
oh ya..hehe...
• 04-10-2002
danielthomas3
lol
i have always thought exponents are just a shortcut. and we all know where shortcuts get u lol.

just like in coding, you need to understand what is happening in the problem to be able to solve it.

so from now on, instead of 4^15'th power, make it 4*4*4*4*4*4*4*4*4*4*4*4*4*4*4, and check yourself to make sure ur correct.

lol if u follow my advice, you will go crazy in a matter of minutes!

{this post makes no sense} sry :>