tests/testthat/test-univariate.R

test_that("Univariate example", {
  x <- qlone(1)
  f <- x^2 - 2*x - 1
  g <- x^2 - 3
  r <- resultant(f, g)
  expect_equal(r, gmp::as.bigq("-8/1"))
})

Try the resultant package in your browser

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

resultant documentation built on Sept. 11, 2024, 8:01 p.m.