Nothing
test_that("inverse_with_uniroot() works", {
expect_equal(inverse_with_uniroot(f = function(x) {
2 * x
}, y = 0.5), 0.25)
})
test_that("vectorization inverse_with_uniroot_sorted() works", {
expect_equal(inverse_with_uniroot_sorted(f = function(x) {
2 * x
}, y = c(0, 0.5)), c(0, 0.25))
})
### Add testst hat show how these functions break
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.