Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Help with Complex Polynomial equation in mathematica

  1. Mar 24, 2010 #1
    Hi everybody:
    i'm trying to analyse equations of analogue electronic filters, but i can't get the "norm" of the complex polynom if i use variables (or symbols? what's the difference?), here's the simplest exemple (RC low pass filter, a represents R*C*w, reals variables > 0):

    Assuming[ a \[Element] Reals && a > 0, Norm[1/(1 + a \[ImaginaryJ])]]

    Norm[1/(1 + I a)]

    The answer :

    Norm[1/(1 + I a)] ----- the same thing!!!!

    Re[] and Im[] doesn't work either!!
    I will like to uses to find the argument (Arg[] doesn't work)

    and after all, make my bode plots!!!
    please help me, i'm new in mathematica!
    Thanks
     
  2. jcsd
  3. Mar 27, 2010 #2
    up?? somebody?? help!
     
  4. Mar 27, 2010 #3

    Hurkyl

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Norm? Do you mean Abs?

    If you want it to try and simplify things, or expand a function, or other stuff, you should invoke the appropriate functions....

    And if you want to plot something, just plot it. If it evaluates to a real number, it doesn't matter what the symbolic form is.
     
  5. Mar 27, 2010 #4
    Hi Hurkyl, and thanks for the answer:

    My problem is that i can't get the "modulus" or "norm" of the Complex number, once i get the norm (norm = abs) i would like to plot it as a fonction of "w", how can i get the Norm of à complex number without fixed values??
    exemple:
    Norm[1/(1 + 3 \[ImaginaryJ])]
    then i get :
    1/Sqrt[10]

    with Norm[(1/(1 + a \[ImaginaryJ]))
    i get Norm[(1/(1 + a \[ImaginaryJ])), the same thing!

    i should get : 1/(\[Sqrt]1 + a^2)
    ..... what ca i do?
     
  6. Mar 27, 2010 #5

    Hurkyl

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    What part of my response didn't you understand?
     
  7. Mar 27, 2010 #6
    Yeah, it's a drag…
    For your particular example, this gives the appropriate result :

    http://img185.imageshack.us/img185/319/picture1qs.jpg [Broken]

    I suggest you define a function which does the above :biggrin:
     
    Last edited by a moderator: May 4, 2017
  8. Mar 27, 2010 #7
    GREAT GREAT!!!! i'm going to try this!!! Thanks so much gueromm00!!! you are great!!
    I'm going to put my results with à more complex filter!
    :):):)!!!! thanks!!
     
  9. Mar 28, 2010 #8
    Voila Voila!!!!!
    RLC Low pass filter in the attachement!
    thanks a lot!!!
     

    Attached Files:

  10. Mar 28, 2010 #9

    Hurkyl

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Why are you bothering trying to coerce Mathematica to express it in a particular symbolic form when all you really want to do is plot it?
     
  11. Mar 28, 2010 #10
    Well, in my case at least, when simply using the Abs[] function Mathematica hangs when trying to plot…
    So, it does make sense to help him a little :smile:
    I think it is because of the Manipulate[]… (otherwise, I agree with you : since all plots functions have an HoldAll attribute, it doesn't matter what symbolic form its argument evaluates to)
     
    Last edited: Mar 28, 2010
  12. Mar 28, 2010 #11
    This was just un exemple, what i really want to do it's to manipulate the complex expressions in a theorycal way, i'm learning about filters ok?, i don't want to just plot something without understanding the original relation. my problem was just about the manipulation of complex equations and now it's OK.
    Thanks guerom00, you're really nice! :biggrin:
    :cool:
     
  13. Mar 28, 2010 #12

    Hurkyl

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    That's fair. It's hard for me to tell, since you didn't really respond to any of my earlier comments. :frown:

    I am mildly surprised that you cannot just FullSimplify your original expression (with an assuming clause), or possibly ComplexExpand it. Or... was that just not tried? Ah well, I forgot to play with it earlier when I had a chance.
     
  14. Apr 2, 2010 #13
    Sorry Hurkyl, but i'm new in mathematica, i didn't know about "complexexpand"... i think that you didn't realize that i'm a newbie, i don't understant everything about mathematica, thanks for yours comments ;)
     
  15. Apr 2, 2010 #14
    Hi!
    Now i have one new problem, i can't run this Laplace equation (see attachement)

    I dont know what to do, sorry... please help me!!!!
    Thanks!!

    See the "InverseLaplaceTransform" dont show me the answer... why???
     

    Attached Files:

  16. Apr 2, 2010 #15

    Hurkyl

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    When I made my reply, I was keying in on your desire to plot, which doesn't require manipulating things into a "nice" form. I was hoping that if you were less interested in plotting and more interested in "simplifying things" or "expand a function"... or that it would prompt you to look up the keywords "simplify" or "expand" in the help.

    Have you looked through Mathematica's documentation center? (e.g. under the "help" menu, or by hitting F1 after highlighting a word) It's pretty good. I didn't know about ComplexExpand myself, but I expect it's not hard to find if you started with the page for Expand or Simplify. I think there's even an article on "simplifying functions" but it's been a while since I looked at it.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook