Changes

Jump to: navigation, search

Willy

18 bytes added, 14 October
/* Logsin and Exponent tables */
out = exp(logsin(phase2 + exp(logsin(phase1) + gain1)) + gain2)
==== Exponential table:====
x = 0..255, y = round((power(2, x/256)-1)*1024)
When such a table is used for calculation of the exponential, the table is read at the position given by the 8 LSB's of the input. The value + 1024 (the hidden bit) is then the significand of the floating point output and the yet unused MSB's of the input are the exponent of the floating point output.
==== Log-sin table:====
x = 0..255, y = round(-log(sin((x+0.5)*pi/256/2))/log(2)*256)
8,312
edits