## Keyboard shortcuts

Press `←` or `→` to navigate between chapters

Press `S` or `/` to search in the book

Press `?` to show this help

Press `Esc` to hide this help

# Load Curve / Function

Returns the ordinate value of `x` in the defined `id`.

    template <typename T1, typename T2>
    inline __host__ __device__ double load_curve(T1* curve_data, T2* curve_val, int id, double x)

## Parameters

#### `curve_data`

- Input: Array of curve data

#### `curve_val`

- Input: Array of curve values

#### `id`

- Input: Function or Curve ID

#### `x`

- Input: Value of `x` in function `f(x)`

## Returns

The ordinate value of `x`.