2 epsilon - set or read the stored epsilon value
8 eps real number greater than 0 and less than 1
10 return real number greater than 0 and less than 1
13 Without args, epsilon() returns the current epsilon value.
15 With one arg, epsilon(eps) returns the current epsilon value
16 and sets the stored epsilon value to eps.
18 The stored epsilon value is used as default value for eps in
19 the functions appr(x, eps, rnd), sqrt(x, eps, rnd), etc.
22 ; oldeps = epsilon(1e-6)
23 ; print epsilon(), sqrt(2), epsilon(1e-4), sqrt(2), epsilon(oldeps)
24 ; .000001 1.414214 .000001 1.4142 .0001
30 void setepsilon(NUMBER *eps)
36 ## Copyright (C) 1999 Landon Curt Noll
38 ## Calc is open software; you can redistribute it and/or modify it under
39 ## the terms of the version 2.1 of the GNU Lesser General Public License
40 ## as published by the Free Software Foundation.
42 ## Calc is distributed in the hope that it will be useful, but WITHOUT
43 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
44 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
45 ## Public License for more details.
47 ## A copy of version 2.1 of the GNU Lesser General Public License is
48 ## distributed with calc under the filename COPYING-LGPL. You should have
49 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
50 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
52 ## @(#) $Revision: 30.1 $
53 ## @(#) $Id: epsilon,v 30.1 2007/03/16 11:10:42 chongo Exp $
54 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/epsilon,v $
56 ## Under source code control: 1995/10/05 04:52:26
57 ## File existed as early as: 1995
59 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
60 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/