 |
|
List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] Re: 0.*I in maple 6
| [MUG] Re: 0.*I in maple 6 |
|
Author: Maple Group
Posted: 23/10/2000 13:55:04 GDT
|
>> From: Maple Group
| >> From: Theodore Kolokolnikov
|
| > evalf(0.*I);
|
| 0. I
| It would be better if Maple would produce "0." instead.
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Thu, 19 Oct 2000 11:45:12 -0500 (CDT)
From: Andrzej Pindor
To:
Subject: 0.*I in maple 6
This is another bizzare consequence of the new way chosen to represent
complex numbers. Note that:
|\^/| Maple 6 (SUN SPARC SOLARIS)
._|\| |/|_. Copyright (c) 2000 by Waterloo Maple Inc.
\ MAPLE / All rights reserved. Maple is a registered trademark of
<____ ____> Waterloo Maple Inc.
| Type ? for help.
> op(0.*I);
0.
> whattype(0.*I);
complex
# To retain the complex type Maple insist on keeping "I" in the expression.
# Interestingly
> op(2+3*I);
2, 3
> op(0+3*I);
3
# Would it be not more consistent if the result of op(0+3*I) was 0,3 ?
# In particular, that
> op(0. + 0.*I);
0., 0.
> op(0.+0*I);
0, 0
# Why then:
> op(0+0*I);
0
> op(0+0.*I);
0.
???
Andrzej
--
Dr. Andrzej Pindor The foolish reject what they see and not what
University of Toronto think; the wise reject what they think and not
Information Commons what they see. Huang Po
Phone: (416) 978-5045 Fax: (416) 978-7705
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Thu, 19 Oct 2000 09:53:36 -0700
To:
From: David Harrington
Subject: 0.*I in maple 6
The help under fnormal suggests that this is deliberate, and gives a remedy:
"fnormal preserves numeric type and sign information as much as possible.
Thus, for example, fnormal(1e-20*I, 10) = 0.*I not 0. . This ensures that
branching behaviour is generally not affected by fnormal. Use simplify(expr,
zero) to remove 0 real or imaginary parts of complex floating point numbers."
|
[View Complete Thread]
Previous by date: [MUG] Re: Translate PC Maple files to Mac, Maple Group
Next by date: [MUG] Re: FFT, Maple Group
Previous thread: [MUG] Curiosity, Jim Gunson
Next thread: [MUG] FFT, Bastero De Eleizalde, Carlos
|
|
|