astronomy

//astronomy/io.github.cosinekitty.astronomy/SearchContext

SearchContext

fun interface SearchContext

Represents a function whose ascending root is to be found.

This interface must be implemented for callers of search in order to find the ascending root of a smooth function. A class that implements SearchContext can hold state information needed to evaluate the scalar function eval.

Functions

Name Summary
eval
abstract fun eval(time: Time): Double
Evaluates a scalar function at a given time.