power: Create a Power atom

View source: R/059_atoms_elementwise_power.R

powerR Documentation

Create a Power atom

Description

Create a Power atom

Usage

power(x, p, max_denom = 1024L, approx = TRUE)

Arguments

x

An Expression

p

Numeric exponent

max_denom

Maximum denominator for rational approximation

approx

If TRUE (default), use SOC approximation. If FALSE, use exact power cone.

Value

A Power or PowerApprox atom

Note

sqrt(x) on a CVXR expression dispatches to Power(x, 0.5) via the Math group generic. See math_atoms for all standard R function dispatch.


CVXR documentation built on April 4, 2026, 9:08 a.m.