Posts by RareProton • 51 points
2 posts
-
1
votes2
answers117
viewsQ: How to use guards with Let in Haskell
I wanted to make that same problem calculating the roots of a second-degree function, but using Let. raizes2 :: Float -> Float -> Float -> (Float, Float) raizes2 a b c |delta < 0 = error…
haskellasked RareProton 51 -
3
votes1
answer485
viewsQ: Exercise Algorithm Given the values of x real and n natural positive, calculate
Given the values of x real and n natural positive, calculate: S = (x+1)/1! + (x+2)/2! + (x+3)/3! + ... + (x+n)/n! So far what I’ve done is this: leia x leia n nFatorial = 1 contadorFatorial = 0…