# what is the operand for an exponent?

answered Sep 16 by (560 points)
selected Sep 16 by Yvan Simard

In c language we include <math.h> library to perform exponent operation by using pow() function

ex:

```#include <stdio.h>
#include <math.h>

void main()
{
float a = pow(2, 3);//power function always return floating value.
printf("%f\n", a);
}```

but in python we can use ** (double asetrick)operator to perform exponential operation as shown below example

float a=2**3

print(a)

out put: 8

answered Sep 13 by (140 points)
Operand in an exponential function is not one. There are two operands namely

1. The one whose power we are calculating

2.The raise to term

eg. 3^4

Here operator is '^' and operands are 3 and 4

Hope it helps..
answered Sep 13 by (79,800 points)

What language are you after?

In Python you can use the double asterisk to express an exponent, like this

`eight = 2 ** 3`

Other languages have mathematics libraries with typically a pow() or power() function.

In C, you'd write

```#include <stdio.h>
#include <math.h>

int main()
{
float eight = pow(2, 3);
printf("%f\n", eight);
return 0;
}```