![]() |
Canoe
Comprehensive Atmosphere N' Ocean Engine
|
Go to the source code of this file.
Functions | |
| int | locate (double const *xx, double x, int n) |
| int locate | ( | double const * | xx, |
| double | x, | ||
| int | n | ||
| ) |
Given an array xx[0..n-1] , and given a value x , returns a value j such that x is between xx[j] and xx[j+1]. xx must be monotonic, either increasing or decreasing. j=0 or j=n is returned to indicate that x is out of range. adapted from Numerical Recipes in C, 2nd Ed., p. 117.