hello y'all
i was wondering if anyone came accross a C/C++ code for kirchoff's kaws of electrical circuits?
thx in advance
Printable View
hello y'all
i was wondering if anyone came accross a C/C++ code for kirchoff's kaws of electrical circuits?
thx in advance
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++??
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!
So, what about this assignment?:D
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.
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