curvature function

Curvature of Expression

Curvature of Expression

The curvature of an expression.

The curvature of an expression. methods

curvature(object) ## S4 method for signature 'Expression' curvature(object)

Arguments

  • object: An Expression object.

Returns

A string indicating the curvature of the expression, either "CONSTANT", "AFFINE", "CONVEX, "CONCAVE", or "UNKNOWN".

A string indicating the curvature of the expression, either "CONSTANT", "AFFINE", "CONVEX", "CONCAVE", or "UNKNOWN".

Examples

x <- Variable() c <- Constant(5) curvature(c) curvature(x) curvature(x^2) curvature(sqrt(x)) curvature(log(x^3) + sqrt(x))
  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07