Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
(import (scheme inexact))
|
||||
|
||||
(print "infinity: " (/ 1 0))
|
||||
(print "minus infinity: " (log 0))
|
||||
|
||||
; note: (sqrt -1) function will produce 0+i complex number
|
||||
; so we need to use simpler function "fsqrt"
|
||||
|
||||
(import (owl math fp))
|
||||
(print "not-a-number: " (fsqrt -1))
|
||||
|
||||
; note: your must use equal? or eqv? but not eq? for comparison
|
||||
(print "is this is not a number? " (equal? (fsqrt -1) +nan.0))
|
||||
Loading…
Add table
Add a link
Reference in a new issue