Home
Random
Nearby
Log in
Settings
Donate Now
If Wikipedia is useful to you, please give today.
About Wikipedia
Disclaimers
Search
TPK algorithm: Difference between revisions
Article
Talk
Language
Watch
View history
Edit
Browse history interactively
← Previous edit
Next edit →
Content deleted
Content added
Visual
Wikitext
Revision as of 19:02, 23 May 2012
edit
78.226.58.147
(
talk
)
→
OCaml
← Previous edit
Revision as of 19:03, 23 May 2012
edit
undo
78.226.58.147
(
talk
)
→
OCaml
Next edit →
Line 147:
<source lang="ocaml">
let tpk l =
let f x = sqrt x +. 5.0 *. (x ** 3.0) in
let p x = x < 400.0 in
List.filter p (List.map f (List.rev l))
</source>