mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
convert ASCII TABs to ASCII SPACEs
Converted all ASCII tabs to ASCII spaces using a 8 character tab stop, for all files, except for all Makefiles (plus rpm.mk). The `git diff -w` reports no changes.
This commit is contained in:
70
help/sqrt
70
help/sqrt
@@ -14,11 +14,11 @@ TYPES
|
||||
|
||||
For other argument types:
|
||||
|
||||
x real or complex
|
||||
eps 0 < real < 1, defaults to epsilon()
|
||||
z integer
|
||||
x real or complex
|
||||
eps 0 < real < 1, defaults to epsilon()
|
||||
z integer
|
||||
|
||||
return real or complex
|
||||
return real or complex
|
||||
|
||||
DESCRIPTION
|
||||
For real or complex x, sqrt(x, y, z) returns either the exact
|
||||
@@ -35,60 +35,60 @@ DESCRIPTION
|
||||
|
||||
z bit 6 ((z & 64) > 0)
|
||||
|
||||
0: principal square root
|
||||
0: principal square root
|
||||
|
||||
1: negative principal square root
|
||||
1: negative principal square root
|
||||
|
||||
z bit 5 ((z & 32) > 0)
|
||||
|
||||
0: return an approximation square root
|
||||
0: return an approximation square root
|
||||
|
||||
1: return exact square root when real & imaginary are rational
|
||||
1: return exact square root when real & imaginary are rational
|
||||
|
||||
z bits 5-0 (z & 31)
|
||||
z bits 5-0 (z & 31)
|
||||
|
||||
0: round down or up according as y is positive or negative,
|
||||
sgn(r) = sgn(y)
|
||||
0: round down or up according as y is positive or negative,
|
||||
sgn(r) = sgn(y)
|
||||
|
||||
1: round up or down according as y is positive or negative,
|
||||
sgn(r) = -sgn(y)
|
||||
1: round up or down according as y is positive or negative,
|
||||
sgn(r) = -sgn(y)
|
||||
|
||||
2: round towards zero, sgn(r) = sgn(x)
|
||||
2: round towards zero, sgn(r) = sgn(x)
|
||||
|
||||
3: round away from zero, sgn(r) = -sgn(x)
|
||||
3: round away from zero, sgn(r) = -sgn(x)
|
||||
|
||||
4: round down
|
||||
4: round down
|
||||
|
||||
5: round up
|
||||
5: round up
|
||||
|
||||
6: round towards or from zero according as y is positive or
|
||||
negative, sgn(r) = sgn(x/y)
|
||||
6: round towards or from zero according as y is positive or
|
||||
negative, sgn(r) = sgn(x/y)
|
||||
|
||||
7: round from or towards zero according as y is positive or
|
||||
negative, sgn(r) = -sgn(x/y)
|
||||
7: round from or towards zero according as y is positive or
|
||||
negative, sgn(r) = -sgn(x/y)
|
||||
|
||||
8: a/y is even
|
||||
8: a/y is even
|
||||
|
||||
9: a/y is odd
|
||||
9: a/y is odd
|
||||
|
||||
10: a/y is even or odd according as x/y is positive or negative
|
||||
10: a/y is even or odd according as x/y is positive or negative
|
||||
|
||||
11: a/y is odd or even according as x/y is positive or negative
|
||||
11: a/y is odd or even according as x/y is positive or negative
|
||||
|
||||
12: a/y is even or odd according as y is positive or negative
|
||||
12: a/y is even or odd according as y is positive or negative
|
||||
|
||||
13: a/y is odd or even according as y is positive or negative
|
||||
13: a/y is odd or even according as y is positive or negative
|
||||
|
||||
14: a/y is even or odd according as x is positive or negative
|
||||
14: a/y is even or odd according as x is positive or negative
|
||||
|
||||
15: a/y is odd or even according as x is positive or negative
|
||||
15: a/y is odd or even according as x is positive or negative
|
||||
|
||||
The value of y and lowest 5 bits of z are used in the same way as
|
||||
y and z in appr(x, y, z): for either the real or imaginary part
|
||||
of the square root, if this is a multiple of y, it is returned
|
||||
exactly; otherwise the value returned for the part is the
|
||||
multiple of y nearest below or nearest above the true value.
|
||||
For z = 0, the remainder has the sign of y; changing bit 0
|
||||
For z = 0, the remainder has the sign of y; changing bit 0
|
||||
changes to the other possibility; for z = 2, the remainder has the
|
||||
sign of the true value, i.e. the rounding is towards zero; for
|
||||
z = 4, the remainder is always positive, i.e. the rounding is down;
|
||||
@@ -138,7 +138,7 @@ SEE ALSO
|
||||
##
|
||||
## Calc is distributed in the hope that it will be useful, but WITHOUT
|
||||
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
||||
## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
||||
## Public License for more details.
|
||||
##
|
||||
## A copy of version 2.1 of the GNU Lesser General Public License is
|
||||
@@ -146,8 +146,8 @@ SEE ALSO
|
||||
## received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
##
|
||||
## Under source code control: 1995/09/18 03:54:32
|
||||
## File existed as early as: 1995
|
||||
## Under source code control: 1995/09/18 03:54:32
|
||||
## File existed as early as: 1995
|
||||
##
|
||||
## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
||||
## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|
||||
## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
||||
## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|
||||
|
Reference in New Issue
Block a user