Make docs for sgn correct.
This commit is contained in:
parent
667b9e9b71
commit
6e5c9a97ed
|
@ -1116,16 +1116,17 @@ Converts @racket[x] radians to degrees.
|
|||
|
||||
Returns @racket[(* z z)].}
|
||||
|
||||
@defproc[(sgn [x real?]) (or/c 1 0 -1 1.0 0.0 -1.0)]{
|
||||
@defproc[(sgn [x real?]) (or/c (=/c -1) (=/c 0) (=/c 1) +nan.0 +nan.f)]{
|
||||
|
||||
Returns the sign of @racket[x] as either @math{-1}, @math{0}, or
|
||||
@math{1}.
|
||||
Returns the sign of @racket[x] as either @math{-1}, @math{0},
|
||||
@math{1}, or not-a-number.
|
||||
|
||||
@mz-examples[
|
||||
#:eval math-eval
|
||||
(sgn 10)
|
||||
(sgn -10.0)
|
||||
(sgn 0)
|
||||
(sgn +nan.0)
|
||||
]}
|
||||
|
||||
@defproc[(conjugate [z number?]) number?]{
|
||||
|
|
Loading…
Reference in New Issue
Block a user