I am using IQMath in c6472
I am seeing an issue for numbers less than 1.0 (+ve number between 0 and 1.0). It seems to work fine for values greater than 1.0.
I am using _iq19 format.
This is what I get for 2.0 (_iq19 HEX value 0x00100000) --> computed (by IQmath library) log value is 0.69314...(_iq19 HEX value 0x00058B8F)
for 1.75 (_iq19 value 0x000E0000 ) --> 0.55961... (_iq19 value 0x0047A17)
for 3.5 (_iq19 value 0x001C0000) --> 1.25275.. (_iq19 value 0x000A05A7)
Values for < 1.0 are as follows
for 0.0003 (_iq19 HEX vale 0x0000009D) --> computed (by IQmath library) log value is 1.6787.. (_iq19 Hex 0x000D6E11)
Expected value is -8.1117
for 0.0006 (_iq19 0x0000013A) --> computed vale is 1.71877.. ( _iq19 HEX 0x00DC00E)
expected value is -7.4186
Can someone please help if I am missing something or is it a bug?
Somnath