The elementwise natural exponential.

# S4 method for Expression
exp(x)

Arguments

x

An Expression.

Value

An Expression representing the natural exponential of the input.

Examples

x <- Variable(5)
obj <- Minimize(sum(exp(x)))
prob <- Problem(obj, list(sum(x) == 1))
result <- solve(prob)
result$getValue(x)
#>      [,1]
#> [1,]  0.2
#> [2,]  0.2
#> [3,]  0.2
#> [4,]  0.2
#> [5,]  0.2