How would I use exponents in C++ (ie having a^2+b^2) = c^2
Anyone know? thanks.
How would I use exponents in C++ (ie having a^2+b^2) = c^2
Anyone know? thanks.
math.h - pow(), sqrt() and other great math functions in there.
If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?
thanks
hey, does ^ mean 'to the power'?
>hey, does ^ mean 'to the power'?
In algebra it does. In C++, I'm sure you know how to use pow().
"For in fact what is a man in Nature? A Nothing in comparison with the Infinite, an All in comparison with the Nothing, a mean between nothing and everything"- Blaise Pascal
so 4^4 would be sixteen, am i correct
>so 4^4 would be sixteen, am i correct
4^2 is 16
4^4 is 256
"For in fact what is a man in Nature? A Nothing in comparison with the Infinite, an All in comparison with the Nothing, a mean between nothing and everything"- Blaise Pascal
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 :>
- Visual C++, Adobe Photoshop -