# Algebra

This is a discussion on Algebra within the C++ Programming forums, part of the General Programming Boards category; How would I use exponents in C++ (ie having a^2+b^2) = c^2 Anyone know? thanks....

1. ## Algebra

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

Anyone know? thanks.

2. math.h - pow(), sqrt() and other great math functions in there.

3. thanks

4. hey, does ^ mean 'to the power'?

5. >hey, does ^ mean 'to the power'?

In algebra it does. In C++, I'm sure you know how to use pow().

6. so 4^4 would be sixteen, am i correct

7. >so 4^4 would be sixteen, am i correct

4^2 is 16
4^4 is 256

8. oh ya..hehe...

9. ## 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 :>