Learn R Programming

CVXR (version 1.0-14)

exp,Expression-method: Natural Exponential

Description

The elementwise natural exponential.

Usage

# S4 method for Expression
exp(x)

Value

An Expression representing the natural exponential of the input.

Arguments

x

An Expression.

Examples

Run this code
x <- Variable(5)
obj <- Minimize(sum(exp(x)))
prob <- Problem(obj, list(sum(x) == 1))
result <- solve(prob)
result$getValue(x)

Run the code above in your browser using DataLab