Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: translating code and creating matrix

by BrowserUk (Pope)
on Aug 17, 2013 at 01:58 UTC ( #1049814=note: print w/ replies, xml ) Need Help??


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.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re: translating code and creating matrix
Select or Download Code
Re^2: translating code and creating matrix
by spx2 (Chaplain) on Aug 17, 2013 at 16:40 UTC

    Apparently Darwin is closed source. See my other post. So.. slim chances of getting the code.

      Apparently Darwin is closed source. See my other post. So.. slim chances of getting the code.

      I know, but I linked an example of the C produced by Darwin (it converts Darwin code into C which is then compiled in the normal way), and it shows that it uses floats rather than doubles for many variables -- including mutation rate -- which probably explains the difference between its results and those produced with Perl.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049814]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-08-23 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (174 votes), past polls