Re: [racket] weirdness with complex numbers

2012-08-08 Thread Todd O'Bryan
Wolfram Alpha parses 1/2+2/3i as 1/2 + 2/(3i) and 1/2+(2/3)i as the complex number with real part 1/2 and imaginary part 2/3. On Wed, Aug 8, 2012 at 3:47 AM, Jens Axel Søgaard wrote: > 2012/8/8 Matthias Felleisen : >> >> If it weren't against math conventions, I wouldn't mind seeing 1-i1 or >> 1

Re: [racket] weirdness with complex numbers

2012-08-08 Thread Jens Axel Søgaard
2012/8/8 Matthias Felleisen : > > 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 sophi

Re: [racket] weirdness with complex numbers

2012-08-08 Thread Jens Axel Søgaard
2012/8/7 Todd O'Bryan : > I just discovered that the way you enter (and display) a number like > > 1/2 + (2/3)i > > in Racket (and Scheme, presumably) is 1/2+2/3i. > > I understand why that is, and can't think of what else to do, but has > anyone had students get confused because the form looks lik

Re: [racket] weirdness with complex numbers

2012-08-07 Thread Matthias Felleisen
That doesn't answer Todd's question. But this does: http://www.wolframalpha.com/share/clip?f=d41d8cd98f00b204e9800998ecf8427efsfdt6pkjg On Aug 7, 2012, at 6:45 PM, Ray Racine wrote: > Wolfram > > http://www.wolframalpha.com/input/?i=roots+x%5E2+%2B+2*x+%2B+10 > > > On Tue, Aug 7, 2012 at

Re: [racket] weirdness with complex numbers

2012-08-07 Thread Ray Racine
More apropos http://www.wolframalpha.com/input/?i=+1%2F2+%2B+i2%2F3+*+1%2F2%2B2i%2F3 On Tue, Aug 7, 2012 at 6:45 PM, Ray Racine wrote: > Wolfram > > http://www.wolframalpha.com/input/?i=roots+x%5E2+%2B+2*x+%2B+10 > > > On Tue, Aug 7, 2012 at 6:28 PM, Matthias Felleisen > wrote: > >> >> If it w

Re: [racket] weirdness with complex numbers

2012-08-07 Thread Ray Racine
Wolfram http://www.wolframalpha.com/input/?i=roots+x%5E2+%2B+2*x+%2B+10 On Tue, Aug 7, 2012 at 6:28 PM, Matthias Felleisen wrote: > > 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

Re: [racket] weirdness with complex numbers

2012-08-07 Thread Matthias Felleisen
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).

Re: [racket] weirdness with complex numbers

2012-08-06 Thread Todd O'Bryan
mag]. > -Ian > - Original Message - > From: "Todd O'Bryan" > To: "PLT-Scheme Mailing List" > Sent: Monday, August 6, 2012 6:05:31 PM GMT -05:00 US/Canada Eastern > Subject: [racket] weirdness with complex numbers > > I just discovered that th

Re: [racket] weirdness with complex numbers

2012-08-06 Thread J. Ian Johnson
: "Todd O'Bryan" To: "PLT-Scheme Mailing List" Sent: Monday, August 6, 2012 6:05:31 PM GMT -05:00 US/Canada Eastern Subject: [racket] weirdness with complex numbers I just discovered that the way you enter (and display) a number like 1/2 + (2/3)i in Racket (and Scheme, pr

[racket] weirdness with complex numbers

2012-08-06 Thread Todd O'Bryan
I just discovered that the way you enter (and display) a number like 1/2 + (2/3)i in Racket (and Scheme, presumably) is 1/2+2/3i. I understand why that is, and can't think of what else to do, but has anyone had students get confused because the form looks like the i is in the denominator of the