Re: ComplexExpand confusion
- To: mathgroup at smc.vnet.net
- Subject: [mg60148] Re: ComplexExpand confusion
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Sun, 4 Sep 2005 03:02:15 -0400 (EDT)
- Organization: The Open University, Milton Keynes, U.K.
- References: <email@example.com>
- Sender: owner-wri-mathgroup at wolfram.com
mike_in_england2000 at yahoo.co.uk wrote:
> The Mathematica help system says that
> "ComplexExpand[expr] expands expr assuming that all variables are
> which is fine and explains why expressions such as
> ComplexExpand[Conjugate[x +I y]] work.All seems obvious so far.
> What is confusing me though is why does
> give the result
> (1 + I)/Sqrt
> I know this the correct result but in the expression (-1)^(1/4) there
> are no variables. The numbers involved are real so what on earth is
> ComplexExpand doing? Is this a stupid question? Should I have drank
> more coffee before posting this.
I guess that the problem is about what the term ?variables? means. In
Mathematica, the notion of variable is broader than in mathematics and
in computer sciences: a variable can hold a value (x = 12 for example,
CS meaning), can be a variable within a function (f(x):=12, a constant
function), but it can be any expression that return a value (similar
concept in LISP/Scheme family of languages) (f(g(x)) for instance, g(x)
is a ?variable?, as well as x and f). So here you can think of
(-1)^(1/4) as a ?constant? variable/function that returns its own value.
Prev by Date:
Re: Please explain this weird Integrate result
Next by Date:
Re: Timing loop For !!
Previous by thread:
Re: Re: ComplexExpand confusion
Next by thread:
scaling of ndsolve to large systems