tests/testthat/test-gregory.R

test_that("correct weights are generated", {
  expect_equal(Gregory_weights(11, 1, 8), c(0.304224537037037, 1.4603835978836, 0.453463955026455, 1.47142857142857, 0.728025793650793, 1.16494708994709, 0.728025793650793, 1.47142857142857, 0.453463955026455, 1.4603835978836, 0.304224537037037))
})

Try the GregoryQuadrature package in your browser

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

GregoryQuadrature documentation built on May 29, 2024, 11:19 a.m.