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

Function trigSquare

test/compute-engine/differential-equations.test.ts:682–687  ·  view source on GitHub ↗
(x: Expr)

Source from the content-addressed store, hash-verified

680 expect(result.toString()).toMatchInlineSnapshot(
681 `[y(x) == ArbitraryConstant(1) * e^x + ArbitraryConstant(2) * e^(-x)]`
682 );
683 expect(
684 verifyEquationSolution(equation, result, { c_1: 2, c_2: 3, x: 0.75 })
685 ).toBe(true);
686 });
687
688 test('keeps irrational characteristic roots exact when possible', () => {
689 const equation = [
690 'Equal',

Callers 1

splitFunction · 0.70

Calls 1

isSameMethod · 0.65

Tested by

no test coverage detected