Skip to content

RFC: storing intermediate values #152

@tpapp

Description

@tpapp

Sometimes I solve nonlinear systems of the form

f(g(x))  0 # could be a scalar or a vector

where g(x) is a large, costly, and ultimately interesting object, so one would call it on the root, but that is a bit wasteful. It would be nice to have an interface that returns it. I am thinking of something like

(root = x, value = g(x)) = find_zero(f, arg_or_bracket, method; by = identity)

where by would be g, and a NamedTuple is returned. But this of course would be breaking, so a new name would perhaps be better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions