Skip to content

Instantly share code, notes, and snippets.

@stereobooster
Last active July 30, 2017 19:31
Show Gist options
  • Save stereobooster/5a5bd7dde4a592745dc0bf2a7a0070d8 to your computer and use it in GitHub Desktop.
Save stereobooster/5a5bd7dde4a592745dc0bf2a7a0070d8 to your computer and use it in GitHub Desktop.
let deriv f dx = function x -> (f (x +. dx) -. f x) /. dx;;
The Y combinator is defined as:
λf.(λx.f (x x))(λx.f (x x))
let rec fact x = match x with
| 0 -> 1
| n -> x * fact (x - 1);;
let rec fact x =
if x == 0 then 1
else x * fact (x - 1);;
https://math.stackexchange.com/questions/396889/how-to-find-the-factorial-of-a-fraction
https://rosettacode.org/wiki/Gamma_function#OCaml
https://www.cs.cornell.edu/courses/cs3110/2016sp/lectures/15/calculus.pdf
https://rosettacode.org/wiki/Y_combinator#OCaml
https://github.com/hcarty/ocaml-plplot
https://github.com/Ngoguey42/gnuplot-ocamlFORK
---
http://raganwald.com/2013/03/28/trampolines-in-javascript.html
http://raganwald.com/2013/03/29/high-level-trampolining.html
http://sarabander.github.io/sicp/html/1_002e2.xhtml#g_t1_002e2_002e1
https://github.com/MikeMcl/bignumber.js
---
## lisp
http://ceaude.twoticketsplease.de/js-lisps.html
http://lisperator.net/slip/impl
http://cs.brown.edu/courses/cs173/2012/book/
https://kazzkiq.github.io/CodeFlask.js/
https://www.awwwards.com/10-html-css-online-code-editors-for-web-developers.html
http://joel.franusic.com/Online-REPs-and-REPLs/
http://gallium.inria.fr/seminaires/transparents/20161205.Leo.White.pdf
http://kcsrk.info/ocaml/multicore/2015/05/20/effects-multicore/
http://homepages.inf.ed.ac.uk/gdp/publications/alg_ops_gen_effects.pdf
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.79.3678&rep=rep1&type=pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment