how can I use exponent function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how can I use exponent function

11th Jul 2016, 5:22 PM
AN!KET BHAVSAR
AN!KET BHAVSAR - avatar
2 Answers
+ 1
I think you cant use exponential function. But you can use power function by introducing math header file. For eg pow(value, its power)
11th Jul 2016, 6:37 PM
sherry
0
This is what I do; #include <iostream> using namespace std; #define _USE_MATH_DEFINES #include <cmath> Then use pow(x, y) with x being the value and y being the power. It always works for me
7th Aug 2017, 9:56 PM
Isaiah R.
Isaiah R. - avatar