Results 1 to 7 of 7

Thread: Wierd complex number question.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    This is a bit of a wierd one,

    I'm looking for a function that will convert a complex number to its real and imaginary parts, using only complex number operations.


    So if you imagine I had a calculator that could do all the complex number calculations, even eqponents and natrual logs etc. But it didn't have functions to get the real part imaginary part, nor the modulus and argument.

    What function should I use to get the real part of a complex number?


    I hope that makes sense, (I don't actually have the crazy calculator, so don't just tell me to get a new calculator.)
    If it wasn't for this sentence I wouldn't have a signature at all.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    can the calculator get the conjugate of a complex value?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    nope, that'd be too easy.
    If it wasn't for this sentence I wouldn't have a signature at all.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    hmm ok
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Frenzied Member
    Join Date
    Jul 1999
    Location
    Huntingdon Valley, PA 19006
    Posts
    1,151

    Format?

    In thinking about this, I started to wonder about the format your proposed calculator would use for complex numbers.

    If using VB, for example, I would define a complex data type consisting of two Doubles (one for real part and one for imaginary part). With this format, the real and imaginary parts of each complex number would be explicitly known.

    How would any program or calculator not use some similar format? My HP calculator represents complex numbers as 2D vectors in either cartesian or polar format. It will do roots, exponentials, trig functions, et cetera with complex arguments, returning complex results. The real & imaginary parts of a complex number are explictly available when using this calculator.
    Live long & prosper.

    The Dinosaur from prehistoric era prior to computers.

    Eschew obfuscation!
    If a billion people believe a foolish idea, it is still a foolish idea!
    VB.net 2010 Express
    64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.

  6. #6
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    793

    Lightbulb perhaps...

    If such a calculator could grasp a complex number as a single entity (and do operations on it thereof) you would need a systematic way of breaking it down into it's real and imaginary parts, would you not?

    But how could a calculator ever be programmed as such?

  7. #7
    Aragorn
    Guest
    i get the feeling that it's not possible.
    I can't say for sure, but if the calculator takes the complex number as a plain entity and, say, it represents it on a plane. You can do all kinds of operations on that plane without knowing where the axis are, so it would actually be able to do all this computing. Though, i don't know how. I never used vectors in planes without axis
    It seems to me that this calculator can do anything on that plane as long as it doesn't require to know where the axis actually are, so there's no point in asking what the components are...
    i hope i'm making sense.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width