how can I perform ohms law in a circuit and show its output voltage by supplying current and resistance.
V=I/R
Printable View
how can I perform ohms law in a circuit and show its output voltage by supplying current and resistance.
V=I/R
i think you answered your own question. v=i/r
set i to a value, set r to a value, say v=i/r and do whatever you want with that value.
Like I said from your question in the actionscript forum:
V = I * R - gotta start with the correct equation!
Do you want the values of I and R to be inputted by the user, and then display the resultant V? Or do you want to have a range of values of I, with a constant R?
swills
I want the values of I and R to be selected by the user by dragging a bar.The values will appear in text boxes.To get the value of V=I/R in another text box, I have to perform calculation.Can I do it with Math?Quote:
Originally posted by swills
Like I said from your question in the actionscript forum:
V = I * R - gotta start with the correct equation!
Do you want the values of I and R to be inputted by the user, and then display the resultant V? Or do you want to have a range of values of I, with a constant R?
swills
Yes you can.
make two "input" text boxes, where the user types in two values for the variables _root.I, _root.R, then a third text box can display the variable _root.V
And the equation _root.V = _root.I * _root.R can be placed anywhere - but start by putting it on frame 1.