module2

This module is used to perform certain operations.

Functions

get_value(a)

Gets first value of an array.

get_values(a)

Gets first two values of an array.

Functions

get_value(a)[source]

Gets first value of an array.

Parameters

a (Iterable) – An array where only the first element is relevant.

Return type

int

Returns

First value of a.

get_values(a)[source]

Gets first two values of an array.

Parameters

a (array-like) – An array where only the first two elements are relevant.

Returns

A tuple containing:

  • float: First element of a.

  • float: Second element of a.

Return type

tuple