But actually I didn't code the program to be set at 5cm. That is the result I am getting from every type of wire. The coding the length, volts, resist, and current, and the output is .005 every time. I never set the
The reason I set a (area) to .25 is because the equation I got from school...
Hmmm. Okay. Thanks for answering these questions. As you can tell, I am brand new at this, and not good at physics or math all. ;) So maybe tonight I will plug in the equation for the current to be calculated without me coding it in. That wasn't my assignment, but it's good to learn this...
I still don't understand though how the required diameters all are the same size. I was expecting for each to be different since there are different variables& I'm using the same equation for every wire type. How is this?
Hello. The resistivity was given. In my code, rather than writing 1.72×10^-8 ohm/m, I wrote .0000000172. Also, the current (i) was calculated for these inputs in a previous code we did in class. I know in my first post I said that the user would input the length, volts, and type of metal. I...
Hello again,
I haven't been to class yet, but I have worked on this a lot. I know this code looks like a lot, but I do think the answer was .005 for the copper. I just got confused when I withdrew that statement before. Now though, ALL of my answers are rounding to .005. Can this be true? I used...
Hey. I'm so frustrated with this and I've been working on it for days and my brain is completely boggled and I can't even think straight about it anymore. I used your equation and I'm getting a different answer than you. It's probably somewhere in my code, and then I don't understand physics at...
Thanks so much for this! I'm not at home right now, but when I get there I'll use your equation on all of my wires and let you know. I appreciate it so much! :)
I'm trying to write a program where the user can input any length, voltage, or wire current. I know that V=IR, R=(ρL)/A, and that A=π(0.5d)^2. In a previous program that I wrote, I found the current (I) and that is where I got 12.5575 (for copper). The length was 10000m and the voltage was 110...
Mentor node: Added code tags
From=menu('select:','c', 'g', 'a', 's:'); This is part of my code and I'm not coming up with anything close
l=input('input wire length') %current copper=12.5572...