copp.Jet3

Scalar third-order automatic-differentiation value.

Syntax

obj = copp.Jet3(value, d1, d2, d3)

Description

Jet3 stores a real value and its first three derivatives with respect to one scalar path parameter. Path.from_parametric passes a seeded Jet3 into a user formula, then extracts q, dq/ds, d2q/ds2, and d3q/ds3 from the returned Jet3 vector.

Supported operations cover the first lightweight MATLAB formula surface: +, -, .*, *, ./, /, .^, ^, sin, cos, exp, log, and sqrt. The class also supports vertical and horizontal concatenation so formulas may return vectors such as [sin(s); cos(2*s); s^2]. Path.from_parametric treats the formula return as a vector with dim elements and stores each sample as a \(\mathrm{dim} \times 1\) column inside the final \(\mathrm{dim} \times N\) batch output; matrix-valued formulas are rejected.

Properties

d1

First derivative.

d2

Second derivative.

d3

Third derivative.

Methods

Jet3

Construct a value with explicit derivatives.

double

Return the numeric value component.

seed

Construct the scalar path parameter jet d/ds value = 1.

Method Details

Jet3

Syntax

obj = copp.Jet3(value, d1, d2, d3)

double

Syntax

y = double(x)

uplus

Syntax

y = uplus(x)

uminus

Syntax

y = uminus(x)

plus

Syntax

y = plus(a, b)

minus

Syntax

y = minus(a, b)

times

Syntax

y = times(a, b)

mtimes

Syntax

y = mtimes(a, b)

rdivide

Syntax

y = rdivide(a, b)

mrdivide

Syntax

y = mrdivide(a, b)

power

Syntax

y = power(a, b)

mpower

Syntax

y = mpower(a, b)

sin

Syntax

y = sin(x)

cos

Syntax

y = cos(x)

exp

Syntax

y = exp(x)

log

Syntax

y = log(x)

sqrt

Syntax

y = sqrt(x)

transpose

Syntax

y = transpose(x)

ctranspose

Syntax

y = ctranspose(x)

vertcat

Syntax

y = vertcat(varargin)

horzcat

Syntax

y = horzcat(varargin)

constant

Syntax

obj = constant(value)

seed

Syntax

obj = seed(value)

See Also

copp