How to solve a three-element equation set?

Discussion in 'Python' started by purple, Mar 19, 2008.

  1. purple

    purple Guest

    Could you guys do me a favor for solving a equation set?

    Z=d/4*(1-SIN(X)/X)
    X=8q/(D^2*Y)+SIN(X)
    Y=1/n*Z^(2/3)*i^(1/2)

    In this equation set, X,Y&Z are the unkown parameters, the others say,
    d, q, n&i are known. SO in python, how to program it to represent X, Y
    and Z in the form of d, q, n and i?

    Thanks very much.
     
    purple, Mar 19, 2008
    #1
    1. Advertising

  2. purple wrote:
    > Could you guys do me a favor for solving a equation set?
    >
    > Z=d/4*(1-SIN(X)/X)
    > X=8q/(D^2*Y)+SIN(X)
    > Y=1/n*Z^(2/3)*i^(1/2)
    >
    > In this equation set, X,Y&Z are the unkown parameters, the others say,
    > d, q, n&i are known. SO in python, how to program it to represent X, Y
    > and Z in the form of d, q, n and i?


    Will you do your homework yourself, please?

    Hint: make X, Y and Z Python functions.

    -- Gerhard
     
    Gerhard Häring, Mar 19, 2008
    #2
    1. Advertising

  3. En Wed, 19 Mar 2008 04:05:50 -0300, purple <> escribió:

    > Could you guys do me a favor for solving a equation set?
    >
    > Z=d/4*(1-SIN(X)/X)
    > X=8q/(D^2*Y)+SIN(X)
    > Y=1/n*Z^(2/3)*i^(1/2)
    >
    > In this equation set, X,Y&Z are the unkown parameters, the others say,
    > d, q, n&i are known. SO in python, how to program it to represent X, Y
    > and Z in the form of d, q, n and i?


    You want a numeric result, I presume. SciPy www.scipy.org has several
    minimization functions.

    --
    Gabriel Genellina
     
    Gabriel Genellina, Mar 19, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. micky
    Replies:
    12
    Views:
    626
    Damien
    Dec 16, 2005
  2. David Zimmerman
    Replies:
    0
    Views:
    940
    David Zimmerman
    Jun 27, 2003
  3. pete kirkham
    Replies:
    0
    Views:
    2,033
    pete kirkham
    Jun 27, 2003
  4. Chris Smith
    Replies:
    1
    Views:
    5,540
    Dale King
    Jun 30, 2003
  5. Usama Khan

    how to solve complex equation?

    Usama Khan, Jan 1, 2013, in forum: Python
    Replies:
    6
    Views:
    180
    someone
    Jan 2, 2013
Loading...

Share This Page