Skip to main content

evaluate-implicit2

function evaluateImplicit2(cs: object, x: number, y: number): number

Defined in implicit-form/evaluate/double/evaluate-implicit2.ts:22

Evaluates and returns the result of evaluating the given implicit function (a degree 2 bivariate polynomial in x and y) at the point [x,y].

  • the implicit form is given by: vₓₓx² +vₓᵧxy + vᵧᵧy² + vₓx + vᵧy + v, where the vₓ, vₓ, v, etc are constants

example

evaluateImplicit2({ vₓₓ: 4, vₓᵧ: 5, vᵧᵧ: 6, vₓ: 1, vᵧ: 2, v: 3 }, 1, 1);  //=> 21

Parameters:

NameTypeDescription
cs{ vₓₓ: number; vₓᵧ: number; vᵧᵧ: number; vₓ: number; vᵧ: number; v: number }the polynomial to evaluate
xnumberthe x variable at which to evaluate
ynumberthe y variable at which to evaluate