PowerHyperDualReal Function

public elemental function PowerHyperDualReal(v1, v2) result(v3)

PowerHyperDualReal

Raise a hyperdual value to a power.

Description

Applies the power rule to the primal and derivative coefficients.

Examples

z = x ** 2.5_pr

Arguments

Type IntentOptional Attributes Name
type(hyperdual), intent(in) :: v1

First input operand.

real(kind=pr), intent(in) :: v2

Second input operand.

Return Value type(hyperdual)


Called by

proc~~powerhyperdualreal~~CalledByGraph proc~powerhyperdualreal PowerHyperDualReal interface~operator (ASTERISKASTERISK) operator (**) interface~operator (ASTERISKASTERISK)->proc~powerhyperdualreal

Variables

Type Visibility Attributes Name Initial
real(kind=pr), public :: deriv
real(kind=pr), public, parameter :: tol = 1.0e-15_pr

Numerical convergence tolerance.

real(kind=pr), public :: xval