spew has quit [Quit: Connection closed for inactivity]
Spetznaz_ has quit [Ping timeout: 268 seconds]
orbifx has quit [Ping timeout: 245 seconds]
initiumdoeslinux has joined #ocaml
initiumdoeslinux has quit [Ping timeout: 246 seconds]
dedgrant has quit [Ping timeout: 258 seconds]
Bronsa` has joined #ocaml
r3s1stanc3_ has joined #ocaml
octachron_ has joined #ocaml
MadcapJake_ has joined #ocaml
iZsh_ has joined #ocaml
crowley9- has joined #ocaml
valtr_ has joined #ocaml
Bronsa has quit [*.net *.split]
jimt has quit [*.net *.split]
ahf has quit [*.net *.split]
troydm has quit [*.net *.split]
iZsh has quit [*.net *.split]
valtr has quit [*.net *.split]
jmiven has quit [*.net *.split]
r3s1stanc3 has quit [*.net *.split]
ocabot has quit [*.net *.split]
leah2 has quit [*.net *.split]
powerbit has quit [*.net *.split]
jack5638 has quit [*.net *.split]
crowley95 has quit [*.net *.split]
dmiles has quit [*.net *.split]
MadcapJake has quit [*.net *.split]
octachron has quit [*.net *.split]
MadcapJake_ is now known as MadcapJake
jack5638 has joined #ocaml
JimmyRcom has joined #ocaml
ocabot has joined #ocaml
ahf has joined #ocaml
logicmoo has joined #ocaml
leah2 has joined #ocaml
troydm has joined #ocaml
jmiven has joined #ocaml
jimt has joined #ocaml
hph^ has quit []
roygbiv has joined #ocaml
mildtaste has quit [Ping timeout: 252 seconds]
mildtaste has joined #ocaml
loli has quit [Quit: WeeChat 2.3]
logicmoo is now known as dmiles
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 246 seconds]
iovec has quit [Quit: Connection closed for inactivity]
mfp has quit [Ping timeout: 272 seconds]
roygbiv has quit [Quit: ™]
marvin2 has quit [Ping timeout: 246 seconds]
jao has quit [Ping timeout: 250 seconds]
_whitelogger has joined #ocaml
gravicappa has joined #ocaml
themsay has joined #ocaml
themsay has quit [Ping timeout: 245 seconds]
themsay has joined #ocaml
infinity0 has quit [Ping timeout: 268 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
jack5638 has quit [Ping timeout: 244 seconds]
jack5638 has joined #ocaml
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
themsay has quit [Ping timeout: 252 seconds]
themsay has joined #ocaml
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ocaml
infinity0 has joined #ocaml
fantasticsid has joined #ocaml
fantasticsid has quit [Client Quit]
carlosdagos has quit [Quit: Connection closed for inactivity]
ncb^ has joined #ocaml
powerbit has joined #ocaml
ggole has joined #ocaml
mildtaste has quit [Remote host closed the connection]
mildtaste has joined #ocaml
jmiven has quit [Quit: co'o]
jmiven has joined #ocaml
_whitelogger has joined #ocaml
marvin2 has joined #ocaml
orbifx has joined #ocaml
pierpal has quit [Remote host closed the connection]
pierpal has joined #ocaml
orbifx has quit [Ping timeout: 272 seconds]
bartholin has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
pierpal has quit [Ping timeout: 268 seconds]
tormen has joined #ocaml
tormen_ has quit [Ping timeout: 240 seconds]
ollehar has joined #ocaml
asymptotically has joined #ocaml
zmt01 has joined #ocaml
zmt00 has quit [Ping timeout: 250 seconds]
zv has quit [Ping timeout: 252 seconds]
iovec has joined #ocaml
pierpal has joined #ocaml
pierpal has quit [Client Quit]
pierpal has joined #ocaml
kakadu has joined #ocaml
Haudegen has joined #ocaml
pierpal has quit [Ping timeout: 240 seconds]
bartholin has quit [Remote host closed the connection]
mfp has joined #ocaml
Bronsa` is now known as Bronsa
jao has joined #ocaml
eagleflo_ is now known as eagleflo
decentpenguin has joined #ocaml
nullifidian__ has quit [Read error: Connection reset by peer]
nullifidian_ has joined #ocaml
steenuil has quit [Ping timeout: 245 seconds]
silver has joined #ocaml
Haudegen has quit [Remote host closed the connection]
nullifidian__ has joined #ocaml
nullifidian_ has quit [Ping timeout: 252 seconds]
jaar has joined #ocaml
iovec has quit [Quit: Connection closed for inactivity]
jao has quit [Ping timeout: 272 seconds]
orbifx has joined #ocaml
spew has joined #ocaml
Haudegen has joined #ocaml
opt9 has quit [Ping timeout: 245 seconds]
opt9 has joined #ocaml
opt9 has quit [Client Quit]
opt9 has joined #ocaml
ziyourenxiang has quit [Ping timeout: 268 seconds]
mildtaste has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
themsay has quit [Ping timeout: 246 seconds]
themsay has joined #ocaml
nullifidian_ has joined #ocaml
nullifidian__ has quit [Read error: Connection reset by peer]
jmiven has quit [Quit: co'o]
<orbitz>
orbifx: Maybe I'm the mirror universe you. Do you have a goatee or should I?
jmiven has joined #ocaml
al-damiri has joined #ocaml
ollehar has quit [Ping timeout: 268 seconds]
jlarocco has joined #ocaml
jao has joined #ocaml
bartholin has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
orbifx has quit [Read error: Connection reset by peer]
orbifx has joined #ocaml
FreeBirdLjj has joined #ocaml
asymptotically has quit [Ping timeout: 256 seconds]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ocaml
nullifidian__ has joined #ocaml
nullifidian_ has quit [Ping timeout: 246 seconds]
asymptotically has joined #ocaml
themsay has quit [Ping timeout: 244 seconds]
themsay has joined #ocaml
Serpent7776 has joined #ocaml
ostera2112 has joined #ocaml
skdq has joined #ocaml
skdq has left #ocaml [#ocaml]
skdq has joined #ocaml
layeredeggplant has joined #ocaml
skdq has left #ocaml [#ocaml]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ocaml
skdq has joined #ocaml
<skdq>
afternoon
FreeBirdLjj has quit [Remote host closed the connection]
<skdq>
anyone can help with a square root function using approximation?
FreeBirdLjj has joined #ocaml
ostera2112 has quit [Ping timeout: 240 seconds]
ostera2112 has joined #ocaml
<rain1>
yeah
FreeBirdLjj has quit [Ping timeout: 245 seconds]
octachron_ has left #ocaml [#ocaml]
<skdq>
trying to use abs_float (x -. y) < 0.0001 approximation in a (x/g +g)/2, where I take a random number to see if it's the square root of X, and if it isn't, I use the approximation
octachron has joined #ocaml
<skdq>
and this gives me a syntax error, been at it for a bit now: let mysqrt (x:float) = let guess= x /. 2.0 in let rec root_iter x guess = let improve_guess = (x /. guess +. guess) /. 2.0 in if close (square (guess), x) then guess else root_iter x improve_guess;;
<skdq>
square is x*.x, and close is abs_float (x -. y) < 0.0001;;
ostera2112 has quit [Ping timeout: 246 seconds]
decentpenguin has quit [Quit: WeeChat 2.3]
<octachron>
skdq, you should use a copy-pasting site or https://sketch.sh for multiline code. And you never call the inner function root_iter
<ggole>
skdq: the binding of guess isn't used either. You probably want to make it an argument to the initial call to root_iter.
<skdq>
what
<skdq>
's wrong with calling the inner funct root_iter?
<ggole>
There's nothing wrong with the name. You need to actually *call* it, as in, apply the function.
<skdq>
ah right, cause I'm trying to call it in the "else" only, but not out of it
<octachron>
The call in the else branch is part of the definition of root_iter. From the point of view of the compiler, you are stopping in the middle of this definition
<skdq>
you're right! I just did "rootiter x improveguess IN rootiter x guess and it worked
dedgrant has joined #ocaml
<skdq>
thnx lads, ocaml is a bit daunting, just started, obvious things are not so obvious XD
skdq has quit [Quit: Page closed]
jaar has quit [Quit: Leaving]
ostera2112 has joined #ocaml
webshinra_ has joined #ocaml
steenuil has joined #ocaml
Haudegen has quit [Remote host closed the connection]
webshinra has quit [Read error: Connection reset by peer]
ostera2112 has quit [Ping timeout: 240 seconds]
recj has quit [Ping timeout: 245 seconds]
Denommus has joined #ocaml
pierpal has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
jnavila has joined #ocaml
pierpal has joined #ocaml
gravicappa has quit [Ping timeout: 240 seconds]
pierpal has quit [Ping timeout: 246 seconds]
ggole has quit [Quit: ggole]
sonologico has joined #ocaml
olle has joined #ocaml
Haudegen has joined #ocaml
kakadu_ has joined #ocaml
themsay has quit [Ping timeout: 246 seconds]
themsay has joined #ocaml
layeredeggplant has quit [Quit: WeeChat 2.3]
zv has joined #ocaml
zv has quit [Ping timeout: 252 seconds]
nicoo has quit [Ping timeout: 256 seconds]
pierpal has joined #ocaml
pierpal has quit [Ping timeout: 250 seconds]
nicoo has joined #ocaml
pierpal has joined #ocaml
sagax has joined #ocaml
Spetznaz_ has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
sonologico has quit [Remote host closed the connection]
themsay has quit [Ping timeout: 268 seconds]
themsay has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
pierpal has quit [Ping timeout: 272 seconds]
pierpal has joined #ocaml
ncb^ has quit []
hph^ has joined #ocaml
dedgrant has quit [Ping timeout: 245 seconds]
cubemonkey has joined #ocaml
pierpal has quit [Ping timeout: 272 seconds]
pierpal has joined #ocaml
dedgrant has joined #ocaml
hph^ has quit []
bartholin has quit [Remote host closed the connection]
recj has joined #ocaml
ostera2112 has joined #ocaml
nullifidian_ has joined #ocaml
Serpent7776 has quit [Quit: leaving]
nullifidian__ has quit [Ping timeout: 250 seconds]
tane has joined #ocaml
jnavila has quit [Remote host closed the connection]
bacam_ is now known as bacam
Spetznaz_ has quit [Ping timeout: 244 seconds]
cubemonkey has quit [Read error: Connection reset by peer]
Anarchos has joined #ocaml
<Anarchos>
when i use ocamldebug i always get 'unknown identifier' if i try to use break. what did i miss ?
decentpenguin has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]