Trusted answers to developer questions

harris910

The ** exp() function** returns the mathematical

`e`

raised to the power of a specific number. Here, `e`

Figure 1 shows the mathematical representation of the `exp()`

function.

```
exp(number or vector)
```

This function has a single parameter that takes any real number or a vector of real numbers.

`exp()`

returns the mathematical `e`

raised to the power of the specific number (or a vector) passed as an argument.

#Positive number a <- exp(10); print("exp(10): ") print (a) #negative number b <- exp(-2); print("exp(-2): ") print (b) #zero c <- exp(0); print("exp(0): ") print (c) #vector d <- exp(c(1, -2, 10.4, -7.4)) print("exp(c(1, -2, 10.4, -7.4)): ") print (d)

RELATED TAGS

r

math

exponent

communitycreator

CONTRIBUTOR

harris910

RELATED COURSES

View all Courses

Keep Exploring

Related Courses