|
-
Nov 6th, 2001, 06:02 PM
#1
Thread Starter
Addicted Member
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 
-
Nov 6th, 2001, 06:27 PM
#2
PowerPoster
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++??
-
Nov 6th, 2001, 06:35 PM
#3
Thread Starter
Addicted Member
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 
-
Nov 6th, 2001, 07:13 PM
#4
PowerPoster
So, what about this assignment?
-
Nov 6th, 2001, 09:06 PM
#5
Hyperactive Member
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.
-
Nov 7th, 2001, 10:06 AM
#6
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|