Changes between Version 8 and Version 9 of FlonumsCowan
 Timestamp:
 11/28/12 15:49:57 (5 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

FlonumsCowan
v8 v9 103 103 == Compnum procedures from <complex.h> == 104 104 105 A ''compnum'' is a general complex number whose `realpart` and `imagpart` are both flonums. The following procedures should be in a different modulefrom the flonum procedures, since they will only be relevant to Schemes that support general complex numbers, and since there are conflicting names.105 A ''compnum'' is a general complex number whose `realpart` and `imagpart` 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. 106 106 107 107 Scheme nameC signatureComments … … 129 129 `tan``double complex ctan(double complex)` 130 130 `tanh``double complex ctanh(double complex)` 131 132 == Derived procedures == 133 134 TODO: what library do these go in? 135 136 `(cis `''z''`)` 137 138 Returns e^i''z''^, a complex number whose real part is cos ''z'' and whose imaginary part is sin ''z''. 139 140 `(signum `''z''`)` 141 142 Returns 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 `(decodefloat `''z''`)` and friends 145 146 See [http://www.lispworks.com/documentation/lw50/CLHS/Body/f_dec_fl.htm CL DECODEFLOAT and friends]. 147