[racket] weirdness with complex numbers

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Wed Aug 8 03:47:12 EDT 2012

2012/8/8 Matthias Felleisen <matthias at ccs.neu.edu>:
> If it weren't against math conventions, I wouldn't mind seeing 1-i1 or 1/2+i2/3. But I am sure the people who produce Racket or Scheme or Lisp readers would hate me for that one, too. I think your students will need to cope, like all people who study sophisticated concepts (such as complex).
> Anyone know how Mathematica copes?

I believe it parses 1+2i as (+ 1 (* 2 i)).

The section on number syntax:


/Jens Axel

Posted on the users mailing list.