Skip to content

Commit

Permalink
Update test; tan now is singular (as expected, to be honest).
Browse files Browse the repository at this point in the history
  • Loading branch information
aadler committed Aug 20, 2023
1 parent 4fcefe3 commit f22dd47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/tinytest/test_MiniMaxApprox.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ xi <- minimaxApprox:::chebNodes(5L, -1, 1)
expect_error(minimaxApprox(fn, -1, 1, c(3L, 3L), xi = xi), errMess)

# Test checkDenom error message
expect_error(minimaxApprox(tan, 1, 2, c(2L, 3L)),
"The 3 degree polynomial in the denominator has a zero at 1.57")
expect_error(minimaxApprox(sin, 0.75 * pi, 1.25 * pi, c(2L, 3L)),
"The 3 degree polynomial in the denominator has a zero at 2.80961")

# Test evaluation function
x <- seq(0.1, 0.4, 0.025)
Expand Down

0 comments on commit f22dd47

Please sign in to comment.