Create a Power atom
Arguments
- x
An Expression (the base), OR a positive constant if
pis a variable (the identityb^x = exp(x * log(b))is used).- p
Numeric exponent, Parameter, or Expression. If
pis a non-constant Expression andxis a positive constant, dispatches toexp(p * log(x)).- max_denom
Maximum denominator for rational approximation
- approx
If TRUE (default), use SOC approximation. If FALSE, use exact power cone.
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.
