cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Exponent Function?
Exponent Function?
Nov 26, 2008 at 1:43am UTC
amyotm
(13)
Is there a built in C++ function that will allow me to perform an exponent operation on items x^y? and not just exp(x) (an exponent of e)? I thought I might ask before trying to take a crack at it.
Nov 26, 2008 at 1:45am UTC
helios
(17574)
double pow(double,double) defined in cmath.
Nov 26, 2008 at 1:51am UTC
amyotm
(13)
Do I simply invoke with double to begin with?
Nov 26, 2008 at 2:06am UTC
helios
(17574)
Uh...... What?
1
2
3
double
a=8, b=.5, c=pow(a,b);
Nov 26, 2008 at 4:46am UTC
amyotm
(13)
hah, sorry, I realise now that what I said made no sense.
Topic archived. No new replies allowed.