ipi

From DavinciWiki
Jump to: navigation, search


Description

Inverse Parabolic Interpolation. Calculates the coordinates of the minimum or maximum of a parabola given 3 x and y values on the parabola

Arguments and Return Values

Arguments:Two 3x1x1 FLOAT arrays containg the X and Y values of three points on the parabola

Return Value: A float number indicating the x-coordinate at which the extremum is located.

Usage

Syntax: ipi(coordinates=VAL, values=VAL)

'coordinates' - The x-positions (or any arbitrary axis) of the three selected points

'values' - The value of the function at the specified x-position.

Examples

dv> coords
3x1x1 array of float, bsq format [12 bytes]
-10.0440       -4.10500       5.22300

dv> vals
3x1x1 array of float, bsq format [12 bytes]
81.3300 9.03500 36.9800

dv> b=ipi(coords,vals)
-0.948612

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 01-13-2008

Personal tools