MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / checkAt

Function checkAt

test/compute-engine/derivatives.test.ts:721–725  ·  view source on GitHub ↗
(mathJson: any, f: (x: number) => number, x0: number)

Source from the content-addressed store, hash-verified

719 });
720 });
721
722 describe('BesselK (modified second kind)', () => {
723 it('d/dx K_n(x) = -(K_{n-1}(x) + K_{n+1}(x))/2', () => {
724 const expr = engine.expr(['D', ['BesselK', 'n', 'x'], 'x']);
725 const result = expr.evaluate();
726 expect(result.toString()).toMatchInlineSnapshot(
727 `-1/2 * BesselK(n - 1, x) - 1/2 * BesselK(n + 1, x)`
728 );

Callers 1

Calls 5

numericDerivativeFunction · 0.85
evaluateMethod · 0.65
boxMethod · 0.65
NMethod · 0.65
subsMethod · 0.65

Tested by

no test coverage detected