tests/testthat/test-Bessel.R

context("Bessel function of Herz")

test_that("Relation with Bessel-J for x scalar", {
  nu <- 3
  t <- 1 + 2i
  expected <- Bessel::BesselJ(t, nu)
  obtained <- BesselA(m=15, t^2/4, nu) * (t/2)^nu
  expect_equal(obtained, expected)
  #
  t <- 5
  expected <- besselJ(t, nu)
  obtained <- BesselA(m=15, t^2/4, nu) * (t/2)^nu
  expect_equal(obtained, expected)
})
stla/HypergeoMat3 documentation built on Nov. 5, 2019, 9:39 a.m.