symbolic mathematics engine in OCaml with differentiation, integration, simplification, and numerical methods
17

Configure Feed

Select the types of activity you want to include in your feed.

1 1 0

Clone this repository

https://git.vm.fail/vm.fail/leibniz https://git.vm.fail/did:plc:p55djzh3ge452wdkbxcpphon
ssh://git@knot.vm.fail:2222/vm.fail/leibniz ssh://git@knot.vm.fail:2222/did:plc:p55djzh3ge452wdkbxcpphon

For self-hosted knots, clone URLs may differ based on your setup.


README.md

leibniz#

symbolic differentiation engine in OCaml with simplification

building#

dune build

repl#

dune exec leibniz-repl

usage#

open Leibniz

let f = Parser.parse "x^3 * sin(x)"
let df = Expr.diff "x" f
let () = print_endline (Expr.to_string df)

let ddf = Expr.diff "x" df
let () = print_endline (Expr.to_string ddf)

let value = Expr.eval [("x", 2.0)] df
let () = print_endline (string_of_float value)