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

Pages: 1-

wut

Name: Anonymous 2013-12-17 15:06

# sqrt -1;;
Error: This expression has type float -> float
       but an expression was expected of type int

Name: Anonymous 2013-12-17 17:14

The answer is i.

Name: Anonymous 2013-12-17 17:14

The answer is i.

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-12-18 1:33

Congratulations, you've just found out why parenthesesless languages are horrible. That got parsed as (sqrt) - 1.

Name: Anonymous 2013-12-18 12:18

>>2
>le pedophile sage

Name: Anonymous 2013-12-18 12:37

>>4
Nice joke, fool.

Name: Anonymous 2013-12-18 13:44

$ ghci
GHCi, version 7.6.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
ghci> :m + Data.Complex
ghci> sqrt (1 :+ 0)
1.0 :+ 0.0
ghci> sqrt ((-1) :+ 0)
Segmentation fault
$

Name: Anonymous 2013-12-18 13:46

>>7
Stop oppressing Haskell, you misogymonadinist!

Name: Anonymous 2013-12-18 18:56


CL-USER> (sqrt -1)
#C(0.0 1.0)
CL-USER> (sqrt #C(-1.0 0.0))
#C(0.0 1.0)

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