My objective is to do some complex algebra manipulations on the point p, and therefore I want to present it as a complex number in the first place. I know I can do the algebra on p[[1]] + I p[[2]] but I would like to check for the option of assigning to p a complex number.
It seems to me there ought to be a built-in function, say ToComplex, that does what Complex[Sequence @@ #]& does. This would be an inverse to the built-in function ReIm.
This just seems such a basic thing to have. Something that even beginners could make sense of, as opposed to Sequence @@ p, that is, Apply[Sequence, p], which involve two non-elementary programming constructs, Apply and Sequence.
So is it correct to say that one should avoid complex numers inside Dynamic? Because that the Locator acts on a point on the canvas (which is not the nature of a complex number represented as a point)?
And yes, your answer for my previous question was great. Please forgive me for not answering or replying.
I looked up the net and the documentation and couldn’t find a built in function to this type of conversion. I would be glad to get to know a simple way for doing it.
Ehud,
Alas, the Mathematica developers, including Stephen Wolfram, have never really come to grips with complex numbers as basic objects to use in Graphics — even though Complex is not only a built-in type and even though by default many functions assume their arguments are complex rather than real.