mail[sr #3154] Implementation of Baldwin (2014) B14 model - 2-site exact solution model for all time scales


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Edward d Auvergne on May 06, 2014 - 09:31:
Follow-up Comment #70, sr #3154 (project relax):

Attached is a modification (compareTroells_w_Troels_mod_ed.py) of your
modification Troels (compareTroells_w_Troels_mod.py,
https://gna.org/support/download.php?file_id=20642).  A unified diff between
the two files is:

$ diff -u compareTroells_w_Troels_mod.py compareTroells_w_Troels_mod_ed.py
--- compareTroells_w_Troels_mod.py      2014-05-05 16:06:06.522388615 +0200
+++ compareTroells_w_Troels_mod_ed.py   2014-05-06 09:17:00.328524062 +0200
@@ -148,10 +148,9 @@
     if(verb=='n'):
         return 
     else:
-        #add on R2g to R2eff
         arrayNew=[]
         for i in range(len(array)):
-            arrayNew.append((array[i][0],array[i][1]+R2g))
+            arrayNew.append((array[i][0],array[i][1]))
         array=arrayNew
         if(outfile!='Null'):
             outy=open(outfile,'w')

The result before is:

Relative times of the various approaches:
Baldwin 1.159897 1.0
Numerical 150.864266 130.066950772
Meiboom 0.399363 0.344309020542
Carver 0.609061 0.525099211395
Nikolai 3.302521 2.84725367856
NikolaiLong 382.673914 329.920599846
Maximum error over grid (s-1):
Meiboom:          22664942.3388
Baldwin:          10.0000000007
CarverRichards:   18.2238852463
Nikolai dougle (9):          214.761583779
Nikolai long double (23):     10.000000206721384181558

And after:

Relative times of the various approaches:
Baldwin 1.157454 1.0
Numerical 151.098834 130.544137391
Meiboom 0.391843 0.338538723785
Carver 0.603573 0.521466079861
Nikolai 3.328743 2.87591817904
NikolaiLong 385.616089 333.158889252
Maximum error over grid (s-1):
Meiboom:          22664952.3388
Baldwin:          7.41007255556e-10
CarverRichards:   8.22388524626
Nikolai dougle (9):          204.761583779
Nikolai long double (23):     2.0672138595791449231557e-7

(file #20646)
    _______________________________________________________

Additional Item Attachment:

File name: compareTroells_w_Troels_mod_ed.py Size:19 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/support/?3154>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/




Related Messages


Powered by MHonArc, Updated Tue May 06 13:20:11 2014