MCPcopy Index your code
hub / github.com/TheAlgorithms/JavaScript / SimpsonIntegration.test.js

File SimpsonIntegration.test.js

Maths/test/SimpsonIntegration.test.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { integralEvaluation } from '../SimpsonIntegration'
2
3test('Should return the integral of f(x) = sqrt(x) in [1, 3] to be equal 2.797434', () => {
4 const result = integralEvaluation(16, 1, 3, (x) => {

Callers

nothing calls this directly

Calls 2

integralEvaluationFunction · 0.90
logMethod · 0.45

Tested by

no test coverage detected