Changes between Version 8 and Version 9 of FlonumsCowan


Ignore:
Timestamp:
11/28/12 15:49:57 (5 years ago)
Author:
cowan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FlonumsCowan

    v8 v9  
    103103== Compnum procedures from <complex.h> == 
    104104 
    105 A ''compnum'' is a general complex number whose `real-part` and `imag-part` are both flonums.  The following procedures should be in a different module from the flonum procedures, since they will only be relevant to Schemes that support general complex numbers, and since there are conflicting names. 
     105A ''compnum'' is a general complex number whose `real-part` and `imag-part` are both flonums.  The following procedures should be in a different library from the flonum procedures, since they will only be relevant to Schemes that support general complex numbers, and since there are conflicting names. 
    106106 
    107107||Scheme name||C signature||Comments|| 
     
    129129||`tan`||`double complex ctan(double complex)`||-|| 
    130130||`tanh`||`double complex ctanh(double complex)`||-|| 
     131 
     132== Derived procedures == 
     133 
     134TODO: what library do these go in? 
     135 
     136`(cis `''z''`)` 
     137 
     138Returns e^i''z''^, a complex number whose real part is cos ''z'' and whose imaginary part is sin ''z''. 
     139 
     140`(signum `''z''`)` 
     141 
     142Returns a complex number whose phase is the same as ''z'' but whose magnitude is 1, unless ''z'' is zero, in which case it returns ''z''.  As a consequence of this definition, negative real numbers return -1, positive real numbers return 1, and zero returns zero. 
     143 
     144`(decode-float `''z''`)` and friends 
     145 
     146See [http://www.lispworks.com/documentation/lw50/CLHS/Body/f_dec_fl.htm CL DECODE-FLOAT and friends]. 
     147