Changes

Jump to: navigation, search

Willy

34 bytes added, 14 October
/* logsin and exponent tables */
==== logsin and exponent tables ====
The OPL3 uses two look-up tables, each containing 256 entries.[https://g.co/kgs/Da1vEi4 Source]
The exponent table exp[] is calculated by f(x)=round((power(2, x/256)-1)×1024) for x from 0 to 255. Given a value, the significand is calculated by exp[8 LSB] + 1024, and the exponent is the remaining MSBs, producing a floating-point value. Ten bits of exponent are required to represent all values in the table, the largest being 1,018.
8,313
edits