log value for fpa type
log_value = fpa_log(fpa_object) log_value = fpa_log(fpa_object, precision, round)
Overloaded usage:
log_value = log(fpa_object)
a fpa object with log value
fpa object created
precision: 2 bit or higher (53 bit by default)
round mode: a character ('N' by default)
'N': round to nearest (roundTiesToEven in IEEE 754-2008)
'Z': round toward zero (roundTowardZero in IEEE 754-2008)
'U': round toward plus infinity (roundTowardPositive in IEEE 754-2008)
'D': round toward minus infinity (roundTowardNegative in IEEE 754-2008)
'A': round away from zero
'F': faithful rounding
'R': round to nearest, with ties away from zero
Get log value for fpa type
a = fpa_fi(exp(1)) b = log(a) c = fpa_fi(exp(1),4) d = fpa_log(c, 2, 'U') |