Name

domainof — Return the first value on the domain axis for the specified value from the range axis.

Syntax

domainof(curve, number)
              

The DOMAINOF function has the following arguments:

curve

The curve for which the value is to be calculated.

number

The Y-value for which to fnd the first corresponding X-value.

Description

This functions calculates the first value on the domain axis for the specified value from the range axis. The functions scans the curve from the lowest range value to the highest, and returns the first domain (X) value where the range (Y) value is equal to the specified number.

If the range value is not found in the curve, the function returns the maximum integer value (2**31)-1.

Examples

Formula

Description

Result

domainof(curve(0,0, 100,100, 200,0), 50)

Determine the x-value for the first value of 50 on the Y-axis.50.0