Logo GenPRES

Calculations Module

Runs a calculation on two numbers with units of measure for every pair of values from two ValueUnits. Returns an error when a ValueUnit cannot be converted.

Nested modules

Modules Description

BSA

Calculates the body surface area in m2 from a weight ValueUnit and a height ValueUnit with one of five formulas. Returns an array of ValueUnits, one for every pair of a weight value and a height value, or an error when the weight ValueUnit is not a weight or the height ValueUnit is not a height.

Functions and values

Function or value Description

calc2 vu1To vu2To resultTo calculation vu1 vu2

Full Usage: calc2 vu1To vu2To resultTo calculation vu1 vu2

Parameters:
    vu1To : 'a -> Result<'b array, 'c>
    vu2To : 'd -> Result<'e array, 'c>
    resultTo : 'f -> 'g
    calculation : int option -> 'b -> 'e -> 'f
    vu1 : 'a
    vu2 : 'd

Returns: Result<'g array, 'c>
Modifiers: inline
Type parameters: 'a, 'b, 'c, 'd, 'e, 'f, 'g
vu1To : 'a -> Result<'b array, 'c>
vu2To : 'd -> Result<'e array, 'c>
resultTo : 'f -> 'g
calculation : int option -> 'b -> 'e -> 'f
vu1 : 'a
vu2 : 'd
Returns: Result<'g array, 'c>

Type something to start searching.