Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

A few facts about Lisp and Haskell

Name: Anonymous 2011-04-18 6:59

Lisp:

* (expt -1 (exp 1))
#C(-0.6332554 0.7739428)


Haskell:

Prelude Data.Complex> (-1) ** exp 1 :: Complex Double
(-0.6332556513148192) :+ (-0.773942685266709)

Name: Anonymous 2011-04-18 7:49

>>5
SBCL doesn't have > as prompt. That was Racket, this is MIT Scheme.
1 ]=> (expt -1 (exp 1))
;Value: -.6332556513148192+.773942685266709i
1 ]=> (floor (/ 1 .0))
Floating point exception

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List