//[astronomy](../../../index.md)/[io.github.cosinekitty.astronomy](../index.md)/[SearchContext](index.md)
# SearchContext
fun interface [SearchContext](index.md)
Represents a function whose ascending root is to be found.
This interface must be implemented for callers of [search](../search.md) 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](eval.md)
abstract fun [eval](eval.md)(time: [Time](../-time/index.md)): [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)
Evaluates a scalar function at a given time. |