hell o.
i have to resolve a DC circuit composed of only resistors and voltage sources. and by that i mean find the values of the currents flowing through each branch. the grapical modelling and calculations must be done with the aid of a C code programme. the only difficult part is that i haven't the slightest idea how to do it!
does anyone here have an idea? i mean writing a C/C++ programme that would allow me to graphically insert - with the aid of a keyboard and mouse - resistors and voltage sources in a circuit and then by using the circuit created, the programme itself would then calculate the values of the current in the branches? without me having to provide any data at all, just by using the graphical model of the circuit.
for example, if i have drawn two resistors in parallel and a voltage source connected to them, the programme would already know what happens there and would return the values of the current, without me having to tell it what i have in the sketch.
well...ideas, anyone? or at least an example on-line? because i couldn't find ANY. ohm and borland pascal is accepted also. i just need a starting point, an example that's already been solved or something..anything.
i have to resolve a DC circuit composed of only resistors and voltage sources. and by that i mean find the values of the currents flowing through each branch. the grapical modelling and calculations must be done with the aid of a C code programme. the only difficult part is that i haven't the slightest idea how to do it!
does anyone here have an idea? i mean writing a C/C++ programme that would allow me to graphically insert - with the aid of a keyboard and mouse - resistors and voltage sources in a circuit and then by using the circuit created, the programme itself would then calculate the values of the current in the branches? without me having to provide any data at all, just by using the graphical model of the circuit.
for example, if i have drawn two resistors in parallel and a voltage source connected to them, the programme would already know what happens there and would return the values of the current, without me having to tell it what i have in the sketch.
well...ideas, anyone? or at least an example on-line? because i couldn't find ANY. ohm and borland pascal is accepted also. i just need a starting point, an example that's already been solved or something..anything.