Skip to content

Commit

Permalink
Better heading
Browse files Browse the repository at this point in the history
  • Loading branch information
aadler committed Aug 30, 2023
1 parent ae37cc2 commit 18f2cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/MiniMaxApprox.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ minimaxApprox <- function(fn, lower, upper, degree, relErr = FALSE, xi = NULL,
}

coefficients <- if (ratApprox) list(a = mmA$a, b = mmA$b) else list(a = mmA$a)
diagnostics <- list(EE = mmA$expe, OE = mmA$mxae, iterations = mmA$i,
diagnostics <- list(EE = mmA$expe, OE = mmA$mxae, iterations = mmA$i,
x = mmA$x, Warning = gotWarning)
ret <- c(coefficients, diagnostics)
attr(ret, "type") <- if (ratApprox) "Rational" else "Polynomial"
Expand All @@ -174,7 +174,7 @@ minimaxEval <- function(x, mmA) {
evalFunc(x, mmA)
}

# Error given mmA object convenience function. Based on remErr but takes a
# Minimax approximation error convenience function. Based on remErr but takes a
# completed mmA object.

minimaxErr <- function(x, mmA) {
Expand Down

0 comments on commit 18f2cc2

Please sign in to comment.