An open API service indexing awesome lists of open source software.

https://github.com/a-poor/formulae.jl

Create dynamic formulae using Variables, Constants, and Operators.
https://github.com/a-poor/formulae.jl

equation formula graph julia julia-package

Last synced: about 1 year ago
JSON representation

Create dynamic formulae using Variables, Constants, and Operators.

Awesome Lists containing this project

README

          

# Formulae.jl

_created by Austin Poor_

Create dynamic formulae using `Variables`, `Constants`, and `Operators`.

Here's a quick example:

```julia
julia> using Formulae

julia> x = Variable("x", 10)
{x=10}

julia> y = Variable("y", 3)
{y=3}

julia> f = x * (y + 2)
{{x=10} {*} {{y=3} {+} {2}}}

julia> getval(x), getval(y), getval(f)
(10, 3, 50)

julia> x.value = 5
5

julia> getval(x), getval(y), getval(f)
(5, 3, 25)

julia> update!(f, Dict("x"=>2,"y"=>4))

julia> getval(x), getval(y), getval(f)
(2, 4, 12)
```