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

Function noFloats

test/compute-engine/calculus.test.ts:560–564  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

558 return s;
559 };
560
561 test('∫1/(x³+1) dx is exact (no float coefficients)', () =>
562 expect(
563 noFloats(evaluate('\\int \\frac{1}{x^3+1} dx'))
564 ).toMatchInlineSnapshot(
565 `1/3 * ln(|x + 1|) + sqrt(3)/3 * arctan(2/3sqrt(3) * x - sqrt(3)/3) - 1/6 * ln(|x^2 - x + 1|)`
566 ));
567

Callers 1

calculus.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected