mmikhasenko / ThreeBodyDecaysIO.jl

0 stars 0 forks source link

implement generic func #6

Closed mmikhasenko closed 5 months ago

mmikhasenko commented 5 months ago
    dict = Dict(
        "type" => "GenericFunction",
        "expression" => "1/(0.77^2 - x - i*0.77*0.15*sin(x))"
    )
    @unpack type = dict
    instance_type = eval(Symbol(type))
    custom_function = dict2instance(instance_type, dict)

works now