in reply to translating code and creating matrix
The most likely reason for the discrepancy is that Darwin appears (from the scant information I can find about it) to generate C code that uses float where Perl uses double.
Hence, I believe that the Perl code is producing more accurate results, but they will not reproduce the results from the Darwin code.
Probably the easiest way to confirm this would be to intercept the C code generated by the Darwin code and inspect it. Perhaps even try switching all floats to doubles and see if the results then produced match what perl is producing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: translating code and creating matrix
by spx2 (Deacon) on Aug 17, 2013 at 16:40 UTC | |
by BrowserUk (Patriarch) on Aug 17, 2013 at 17:15 UTC |