Skip to content

Create dynamic formulae using Variables, Constants, and Operators.

Notifications You must be signed in to change notification settings

a-poor/Formulae.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Formulae.jl

created by Austin Poor

Create dynamic formulae using Variables, Constants, and Operators.

Here's a quick example:

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)

About

Create dynamic formulae using Variables, Constants, and Operators.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages