blob: 405317efcff1e83dfd1e2efbd881cff2c2a34dae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Example 15.1//
V=432*10^-3;//V //Voltage
I=10;//A //current
R=V/I //Ohm's Law
mprintf("R = %e ohm",R)
A=0.5*10^-3;//m//Area
l=1;//m //length
p=(R*(%pi*(A)^2))/l
mprintf("\np = %e ohm m",p)
s=1/p
mprintf("\ns = %e ohm^-1 m^-1",s)
|