tests/testthat/test-numerical-int.R

context('Numerical Integration')

test_that('Numerics get generated by antiD()',{
  ff = antiD(a*exp(x^2) ~ x, a=100)
  expect_equal(diff(ff(x=c(-2,2))), 3290.526, tol=0.01)
})
ProjectMOSAIC/mosaicCalc documentation built on March 1, 2025, 12:37 a.m.