mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
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:
@@ -5,7 +5,7 @@ SYNOPSIS
|
||||
epsilon([eps])
|
||||
|
||||
TYPES
|
||||
eps real number greater than 0 and less than 1
|
||||
eps 0 < real < 1, defaults to epsilon()
|
||||
|
||||
return real number greater than 0 and less than 1
|
||||
|
||||
@@ -72,7 +72,7 @@ EXAMPLE
|
||||
3.141592653589793238462643383279502884197169399375105820974944592307816406
|
||||
|
||||
LIMITS
|
||||
none
|
||||
0 < eps < 1
|
||||
|
||||
LINK LIBRARY
|
||||
void setepsilon(NUMBER *eps)
|
||||
@@ -81,7 +81,7 @@ LINK LIBRARY
|
||||
SEE ALSO
|
||||
config, display, fprintf, printf, strprintf
|
||||
|
||||
## Copyright (C) 1999,2018,2021 Landon Curt Noll
|
||||
## Copyright (C) 1999,2018,2021,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
|
||||
|
Reference in New Issue
Block a user