inst/tinytest/test_sloboba.R

if (interactive()) {
    pkgload::load_all()
    library("tinytest")
}

expectation <- 31.2160691238646
result <- sloboda(a = 0.9, b = 0.02, c = 3, y0 = 30, t0 = 30, t = 35, k = 65)
expect_equal(result, expectation)
result <- sloboda(a = 0.9, b = 0.02, c = 3, y0 = 30, t0 = 30, t = 35, k = 65, type = "kaendler")
expect_equal(result, expectation)

Try the fritools package in your browser

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

fritools documentation built on June 8, 2025, 11:59 a.m.