@thi.ng/dual-algebra
Version:
Multivariate dual number algebra, automatic differentiation
66 lines • 1.5 kB
TypeScript
import type { FnU4, FnU5, FnU6 } from "@thi.ng/api";
import type { Dual, Op4, Op5 } from "./api.js";
/**
* Computes: `ax^2 + bx + c`. All args must have same size/arity.
*
* @param x -
* @param a -
* @param b -
* @param c -
*/
export declare const quadratic: Op4;
/**
* Same as {@link quadratic}, but for real/scalar inputs. `x` is treated as
* variable `x+1ε`, the rest as `n+0ε`.
*
* @param x -
* @param a -
* @param b -
* @param c -
*/
export declare const quadraticS: FnU4<number, Dual>;
/**
* Computes: `ax^3 + bx^2 + cx + d`. All args must have same size/arity.
*
* @param x -
* @param a -
* @param b -
* @param c -
* @param d -
*/
export declare const cubic: Op5;
/**
* Same as {@link cubic}, but for real/scalar inputs. `x` is treated as variable
* `x+1ε`, the rest as `n+0ε`.
*
* @param x -
* @param a -
* @param b -
* @param c -
* @param d -
*/
export declare const cubicS: FnU5<number, Dual>;
/**
* Computes: `ax^4 + bx^3 + cx^2 + dx + e`. All args must have same size/arity.
*
* @param x -
* @param a -
* @param b -
* @param c -
* @param d -
* @param e -
*/
export declare const quartic: (x: Dual, a: Dual, b: Dual, c: Dual, d: Dual, e: Dual) => Dual;
/**
* Same as {@link quartic}, but for real/scalar inputs. `x` is treated as
* variable `x+1ε`, the rest as `n+0ε`.
*
* @param x -
* @param a -
* @param b -
* @param c -
* @param d -
* @param e -
*/
export declare const quarticS: FnU6<number, Dual>;
//# sourceMappingURL=poly.d.ts.map