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)
})

Try the mosaicCalc package in your browser

Any scripts or data that you put into this service are public.

mosaicCalc documentation built on June 22, 2024, 6:49 p.m.