Changeset 59 for trunk/tools

Show
Ignore:
Timestamp:
03/14/06 05:24:55 (3 years ago)
Author:
Don Clugston
Message:

Added Elliptic Integrals of the first and second kind, both complete and incomplete. The ddocs are not done, and the unit tests are inadequate.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tools/hexcephes.d

    r34 r59  
    22// Paste the raw data into sval, and pipe the result to a file. 
    33 
    4 static ushort sval[] = [ 
    5 0x0000,0x0000,0x0000,0x8000,0x3fff,   
    6 0xdfc1,0x8a57,0x357f,0x91ce,0x4000,  
    7 0xcc4f,0x9e03,0x346e,0xf029,0x3ffc,  
    8 0x38b1,0x9788,0x8f42,0xe2a5,0xbff7,  
    9 0xb281,0x2117,0x53da,0xcf51,0xbff4,  
    10 0xf2ab,0x1d42,0x3760,0xe8cf,0xbfee,  
    11 0x741b,0xf14f,0x06b0,0x965b,0xbfe7,  
    12 0x37c2,0xa91f,0x16ea,0xba01,0xbfdd,  
     4static ushort [] sval = [ 
     50x96a4,0x8474,0xba33,0xe990,0x3ff0, 
     60xe5a7,0xa50e,0x1854,0x87ce,0x3ff5, 
     70x8999,0x72e3,0x3205,0xb43d,0x3ff7, 
     80x3255,0x13eb,0xb438,0xdb1b,0x3ff8, 
     90xb717,0x497f,0x4691,0xa68d,0x3ff9, 
     100x30be,0x8c6b,0x624b,0xceac,0x3ff9, 
     110xa858,0x2a0d,0x5014,0xf7f4,0x3ff9, 
     120x8615,0xbfa6,0xa6df,0x991f,0x3ffa, 
     130x103c,0xa076,0xff37,0xc7ff,0x3ffa, 
     140xf508,0xc515,0xffff,0x8fff,0x3ffb, 
     150x1af5,0xfffb,0xffff,0xffff,0x3ffb, 
     160x0000,0x0000,0x0000,0x8000,0x3ffe, 
    1317]; 
    1418 
     
    1721int main() 
    1822{ 
    19 writefln("const real aaa[] = ["); 
     23writefln("const real [] aaa = ["); 
    2024 for (int j=sval.length; j>0; j-=5) { 
    2125  real *r = cast(real *)(&sval[j-5]);