# Complex numbers question

1. May 30, 2012

### Horv

Hello all!
I'm new in the forum, and in complex numbers so I sorry for my mistakes. I have some questions about complex numbers.

So can I store two values in complex number for e.g. a particle position and velocity, like $xe^{i\dot{x}}$? And if this works, after I get the complex number how can I get back the information of I stored in it? In the e.g. I want back the position of the particle?

2. May 30, 2012

### I like Serena

Welcome to PF, Horv! :)

You can store 2 real numbers x and y in a complex number by setting z=x+iy.
Or in your example $z=x+i\dot x$.

The exponential form won't work for you, since the imaginary part of the exponent only has the range [0,2pi).

Position and velocity are usually vectors however.
And that won't fit in a complex number.
Then you would need an quaternion number.

3. May 31, 2012

### Horv

Thank you! :)