Changes between Version 11 and Version 12 of ComplexRepresentations


Ignore:
Timestamp:
11/03/13 14:23:30 (4 years ago)
Author:
cowan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ComplexRepresentations

    v11 v12  
    1717== The imaginary part of an inexact real number == 
    1818 
    19 The value of `(imag-part 2.0)` is exact 0:  Racket, MIT, Gambit, Guile, Kawa, Chez, Vicare, Larceny, Ypsilon, Mosh, !IronScheme, STklos, RScheme, Sizzle, Spark. 
     19The value of `(imag-part 2.0)` is exact 0:  Racket, MIT, Gambit, Guile, Kawa, Chez, Vicare, Larceny, Ypsilon, Mosh, !IronScheme, STklos, RScheme (but see below), Sizzle, Spark. 
    2020 
    2121The value of `(imag-part 2.0)` is inexact 0.0:  Gauche, Chicken with the numbers egg, Scheme48/scsh, SISC, Chibi, SCM, KSi, S7, UMB, SXM. 
    2222 
    23 No `imag-part` procedure:  plain Chicken, Bigloo, NexJ, Shoe, !TinyScheme, Scheme 9, BDC, XLisp, Rep, Schemik, Elk, VX, Llava, !FemtoLisp, Dfsch, Inlab. 
     23No `imag-part` procedure:  Bigloo, NexJ, Shoe, !TinyScheme, Scheme 9, BDC, XLisp, Rep, Schemik, Elk, VX, Llava, !FemtoLisp, Dfsch, Inlab. 
    2424 
    2525No inexact numbers:  !SigScheme, Dream, Oaklisp, Owl Lisp. 
     
    2727Integrating both sets of results, this means that Racket, Guile, Chez, Vicare, Larceny, Ypsilon, !IronScheme, Spark behave ''as if'' they supported mixed-exactness complex numbers in the case where the real part is inexact and the imaginary part is exact 0, even though they do not support mixed-exactness complex numbers otherwise. 
    2828 
     29== Fake complex number support == 
     30 
     31Schemes that don't support non-real numbers can still fake support for `real-part` and `imag-part` by having the former return its argument and the latter return zero.  As usual, some do and some don't: 
     32 
     33Fake support: plain Chicken, RScheme 
     34 
     35No support: Shoe, !TinyScheme, BDC, XLisp, Sizzle, Bigloo, Scheme 9, Elk, Rep, Owl Lisp 
     36 
     37== See also == 
     38 
    2939See also NumericTower.