Results 1 to 6 of 6

Thread: Kirchoff's laws

  1. #1

    Thread Starter
    Addicted Member Ester's Avatar
    Join Date
    Feb 2001
    Posts
    148

    Kirchoff's laws

    hello y'all
    i was wondering if anyone came accross a C/C++ code for kirchoff's kaws of electrical circuits?
    thx in advance
    Tell whoever has sorrow,
    Grief shall never last
    Just as joy has no tommorow,
    Woe is bound not to last
    Estrelitta

  2. #2
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    I kinda forgot that...can you repeat that again?

    Is that about voltage and current in a series and parallel circuit?


    Current in a series circuit is the same
    For the voltage in series circuit:
    total_voltage = v1 + v2+v3+...

    Voltage in a parallel circuit is the same


    What do you want to do with that in C++??
    Baaaaaaaaah

  3. #3

    Thread Starter
    Addicted Member Ester's Avatar
    Join Date
    Feb 2001
    Posts
    148
    kirchoff's laws state that net flow if current through each junction of a circuit is zero and that the net volatge drop around each closed loop of the circuit is zero
    its an assignment!
    Tell whoever has sorrow,
    Grief shall never last
    Just as joy has no tommorow,
    Woe is bound not to last
    Estrelitta

  4. #4
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    So, what about this assignment?
    Baaaaaaaaah

  5. #5
    Hyperactive Member
    Join Date
    Sep 2001
    Posts
    396
    code for kirchoff's laws?

    I thought you have to come up with your equations yourself.

    To solve the equations, you need gauss elimination code or code to find determinant for use in cramer's rule.

    For gauss elimination discussion, go and search Maths forum here.

    It is not easy writning gauss elimination code, you have to take care of no solution cases, infinite solutions cases.

    I vaguely remember my electronic assignment to write kirckoff laws for one circuit. not portable to another circuit but the determinant part is. We are basically using C as an calculator only.

    Stupid assignment.
    I'm a VB6 beginner.

  6. #6

    Thread Starter
    Addicted Member Ester's Avatar
    Join Date
    Feb 2001
    Posts
    148
    Hello y'all sorry here are the equations i need the code to solve

    110x - 50y - 20z = -4
    -50x +140y - 30z = -13
    -20x - 30y + 60z = -4

    the code should take x, y, z as inputs then find their values according to the above equations..
    thx y'all
    Last edited by Ester; Nov 7th, 2001 at 11:45 AM.
    Tell whoever has sorrow,
    Grief shall never last
    Just as joy has no tommorow,
    Woe is bound not to last
    Estrelitta

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