MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Bug Report - Two numerical values for a same variable


On Tue, 15 Feb 2005 03:06:52 +0000 (UTC), Carl K. Woll  
<carlw at u.washington.edu> wrote:

>
> Objects with head Rational are atoms, so you don't have access to the
> integers inside a rational object. It's the samething as complex numbers.
> For example,
>
> Complex[6,7] /. 7->1
> 6 + 7 I
>
> Carl Woll
>

However, if I construct something like Complex[E, E] manually, it won't be  
an atom, and some functions will have problems with it:

In[1]:=
Complex[E, E] // Re // N
Complex[E, E] // Re // ComplexExpand // N

Out[1]=
2.7182818

Out[2]=
2.7182818 + 2.7182818 I

Perhaps this is an unallowed construct, but how am I supposed to know that  
it's unallowed?

Maxim Rytin
m.r at inbox.ru


  • Prev by Date: Re: Re: Missing Graphics
  • Next by Date: Re: solve doesn't solve
  • Previous by thread: Re: Bug Report - Two numerical values for a same variable
  • Next by thread: Re: Re: Bug Report - Two numerical values for a same variable