add logn and error checking for invalue eps and epsilon values

Add new logn(x, n [,eps]) builtin to compute logarithms to base n.

Verify that eps arguments (error tolerance arguments that override
the default epsilon value) to builtin functions have proper values.
Previously the eps argument had little to no value checks for
many builtin functions.

Document in help files for builtin functions that take eps arguments,
the LIMIT range for such eps values.
This commit is contained in:
Landon Curt Noll
2023-08-31 22:33:41 -07:00
parent 4787199462
commit 1c839dfede
55 changed files with 1092 additions and 199 deletions

View File

@@ -6,13 +6,13 @@ SYNOPSIS
TYPES
x real
eps nonzero real, defaults to epsilon()
eps 0 < real < 1, defaults to epsilon()
return real
DESCRIPTION
Calculate the cosh of x to the nearest or next to nearest multiple of
epsilon, with absolute error less than .75 * abs(eps).
epsilon, with absolute error less than .75 * eps.
cosh(x) = (exp(x) + exp(-x))/2
@@ -21,7 +21,7 @@ EXAMPLE
1.54308 1.5430806348 1.543080634815244 1.54308063481524377848
LIMITS
none
0 < eps < 1
LINK LIBRARY
NUMBER *qcosh(NUMBER *x, NUMBER *eps)
@@ -29,7 +29,7 @@ LINK LIBRARY
SEE ALSO
sinh, tanh, sech, csch, coth, epsilon
## Copyright (C) 1999 Landon Curt Noll
## Copyright (C) 1999,2023 Landon Curt Noll
##
## Calc is open software; you can redistribute it and/or modify it under
## the terms of the version 2.1 of the GNU Lesser General Public License