Skip to content

Commit 91856a8

Browse files
committed
Update according to comments
1 parent 9363d58 commit 91856a8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

math-doc/math/scribblings/math-special-functions.scrbl

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ in terms of their flonum counterparts, but are different in two crucial ways:
2828
@racket[exn:fail:contract] instead of returning @racket[+nan.0].}
2929
]
3030

31-
Only functions in @secref{complex-functions} support accepting or returning complex arguments.
31+
Only functions in @secref{complex-real-functions} support accepting or returning complex arguments.
3232
Mathematically, some of the other functions could return complex numbers given
33-
real numbers, such @racket[hurwitz-zeta] when given a negative second argument. In
33+
real numbers, such as @racket[hurwitz-zeta] when given a negative second argument. In
3434
these cases, they raise an @racket[exn:fail:contract] (for an exact argument) or return
3535
@racket[+nan.0] (for an inexact argument).
3636

@@ -56,7 +56,7 @@ The most general type @racket[Real -> (U Zero Flonum)] is used to generate
5656
@racket[lambert]'s contract when it is used in untyped code. Except for this discussion,
5757
this the only type documented for @racket[lambert].
5858

59-
@section[#:tag "complex-real-functions"]{Complex and real Functions}
59+
@section[#:tag "complex-real-functions"]{Complex and Real Functions}
6060

6161
@defproc[(gamma [x Number]) Number]{
6262
Computes the @hyperlink["http://en.wikipedia.org/wiki/Gamma_function"]{gamma function},
@@ -83,7 +83,7 @@ When @racket[x] is an exact integer, @racket[(gamma x)] is exact.
8383
(eval:result @racketresultfont{(bf "1.241018070217667823424840524103103992618e309")}))]
8484

8585
On the real line the error is no more than 10 @tech{ulps} everywhere that has been tested, and is usually no more than 4
86-
ulps. In the rest of the complex plane the relative error is smaller than 1e-13 (@tech{ulps}=450).
86+
ulps. In the rest of the complex plane the relative error is smaller than 1e-13 except in the very close neighbourhood of negative integers, where the error can increase signifiantly.
8787
}
8888

8989
@defproc[(log-gamma [x Number]) Number]{
@@ -185,7 +185,7 @@ manipulate @racket[(- 1.0 (erfc x))] and its surrounding expressions to avoid th
185185
For negative @racket[x] away from @racket[0.0], do the same with @racket[(- (erfc (- x)) 1.0)].
186186

187187
For @racket[erf], on the real line the error is no greater than 2 @tech{ulps} everywhere that has been tested, and
188-
is almost always no greater than 1. In the complex plane the relative error is smaller 1e-12. For @racket[erfc], observed error is no greater than 4 ulps,
188+
is almost always no greater than 1. In the complex plane the relative error is smaller than 1e-12. For @racket[erfc], observed error is no greater than 4 ulps,
189189
and is usually no greater than 2.
190190
}
191191

0 commit comments

Comments
 (0)