Re: [Rd] print(big+small*1i) - big + 0i

2010-03-25 Thread Prof Brian Ripley
On Wed, 24 Mar 2010, William Dunlap wrote: Should both parts of a complex number be printed to the same precision? The imaginary part of 0 looks a bit odd when log10(real/imag) =~ getOption(digits), but I'm not sure it is awful. Some people might expect the same number of significant digits

Re: [Rd] print(big+small*1i) - big + 0i

2010-03-25 Thread Patrick Burns
I'm not sure it's awful either, but it is surprising -- at least to my eye. In particular, it is using the same amount of real estate as it would to print the right value. Pat On 25/03/2010 01:14, William Dunlap wrote: Should both parts of a complex number be printed to the same precision?

[Rd] print(big+small*1i) - big + 0i

2010-03-24 Thread William Dunlap
Should both parts of a complex number be printed to the same precision? The imaginary part of 0 looks a bit odd when log10(real/imag) =~ getOption(digits), but I'm not sure it is awful. Some people might expect the same number of significant digits in the two parts. 1e7+4i [1] 1000+0i