How would I use exponents in C++ (ie having a^2+b^2) = c^2

Anyone know? thanks.

Printable View

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

Anyone know? thanks. - 04-10-2002taylorguitarman
math.h - pow(), sqrt() and other great math functions in there.

- 04-10-2002Unregistered
thanks

- 04-10-2002Xterria
hey, does ^ mean 'to the power'?

- 04-10-2002ProgrammingDlux
>hey, does ^ mean 'to the power'?

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

- 04-10-2002ProgrammingDlux
>so 4^4 would be sixteen, am i correct

4^2 is 16

4^4 is 256 - 04-10-2002Xterria
oh ya..hehe...

- 04-10-2002danielthomas3lol
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 :>