Tessero\Differentiate\Derivative
AI assistant
Build this with Claude Code, Cursor or Copilot
Copy a Tessero-tuned prompt for Tessero\Differentiate\Derivative, grounded in 3 real API signatures , into your IDE's AI. No chatbot, just exact context.
derivative
static
derivative(callable $f, float $x, ?float $atol = null, ?float $rtol = null, int $maxiter = 10, int $order = 8, float $initialStep = 0.5, float $stepFactor = 2.0): array
d/dx f(x) by adaptive central finite differences.
jacobian
static
jacobian(callable $f, array $x, ?float $atol = null, ?float $rtol = null, int $maxiter = 10, int $order = 8, float $initialStep = 0.5, float $stepFactor = 2.0): array
Jacobian of f: R^m -> R^k, evaluated at the point $x (length m). Returns a k-by-m array.
hessian
static
hessian(callable $f, array $x, ?float $atol = null, ?float $rtol = null, int $maxiter = 10, int $order = 8, float $initialStep = 0.5, float $stepFactor = 2.0): array
Hessian of a scalar function f: R^m -> R at the point $x. Returns an m-by-m array of second partials, computed as the Jacobian of the numerical gradient.