Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun harm(i:int, c:int):real =
- case evenP c of
- true => case c of
- 0 => 1.0
- | _ => 1.0 * (1 div c) + harm(i, c+1)
- | false => case c of
- 0 => 1.0
- | _ => -1.0 * (1 div c) + harm(1, c+1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement