Add fake type name -Real
Add `scheme/math' types from Jos Koot. svn: r14251 original commit: 43443652b8d4c0b73ec950c3ead818c262ddf0bb
This commit is contained in:
parent
8fa0ec6079
commit
23a33e158c
|
@ -577,7 +577,7 @@
|
|||
|
||||
[current-continuation-marks (-> -Cont-Mark-Set)]
|
||||
|
||||
;; path.ss
|
||||
;; scheme/path
|
||||
|
||||
[explode-path (-Pathlike . -> . (-lst (Un -Path (-val 'up) (-val 'same))))]
|
||||
[find-relative-path (-Pathlike -Pathlike . -> . -Path)]
|
||||
|
@ -591,3 +591,13 @@
|
|||
[string->some-system-path
|
||||
(-String (Un (-val 'unix) (-val 'windows)) . -> . -Path)]
|
||||
|
||||
;; scheme/math
|
||||
|
||||
[sgn (-Real . -> . -Real)]
|
||||
[pi N]
|
||||
[sqr (N . -> . N)]
|
||||
[sgn (N . -> . N)]
|
||||
[conjugate (N . -> . N)]
|
||||
[sinh (N . -> . N)]
|
||||
[cosh (N . -> . N)]
|
||||
[tanh (N . -> . N)]
|
|
@ -204,6 +204,8 @@
|
|||
(define -Pattern (*Un -String -Bytes -Regexp -Byte-Regexp -PRegexp -Byte-PRegexp))
|
||||
(define -Byte N)
|
||||
|
||||
(define -Real N)
|
||||
|
||||
(define (-Tuple l)
|
||||
(foldr -pair (-val '()) l))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user