Skip to content

Small improvement of function interpolate with single value #178

@natema

Description

@natema

interpolate(x, x₁, xₙ, y₁, yₙ) = y₁ + (x - x₁) * ((yₙ - y₁) / (xₙ - x₁))

I suggest to rename $x_n$ and $y_n$ as $x_2$ and $y_2$ to emphasize that it's just a line, and to typize the arguments (Number?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions