aelael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. part ii,...
TRANSCRIPT
![Page 1: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/1.jpg)
![Page 2: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/2.jpg)
![Page 3: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/3.jpg)
![Page 4: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/4.jpg)
![Page 5: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/5.jpg)
![Page 6: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/6.jpg)
![Page 7: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/7.jpg)
![Page 8: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/8.jpg)
![Page 9: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/9.jpg)
![Page 10: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/10.jpg)
![Page 11: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/11.jpg)
![Page 12: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/12.jpg)
![Page 13: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/13.jpg)
![Page 14: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/14.jpg)
![Page 15: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/15.jpg)
![Page 16: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/16.jpg)
![Page 17: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/17.jpg)
![Page 18: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/18.jpg)
![Page 19: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/19.jpg)
![Page 20: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/20.jpg)
![Page 21: AELael.chungbuk.ac.kr/.../ch4-electrostatics-2-lecture-note.pdf · 2018. 6. 1. · 4장. Part II, Python coding에 필요한 syntax while True: a=float(input('\nLoop radius: a(m)='))](https://reader036.vdocuments.net/reader036/viewer/2022071419/6117582193ad925ec34f1242/html5/thumbnails/21.jpg)
4 장 Part II, Python coding 에 필요한 syntax
while True: a=float(input('\nLoop radius: a(m)=')) x,y,z=map(float,input('Field point: x,y,z(m)=').split()) if z==0 and math.sqrt(x**2+y**2)==a: print('Field point is on the loop. Re-enter the field point.') x,y,z=map(float,input('Field point: x,y,z(m)=').split()) .... .... while True: n=int(input('No. of loop segmentation: n(>0, 0 to restart)=')) if n==0: break ... ... for i in range(1,n+1): ... ... print(' V(x,y,z)(volt)={0:.6e}'.format(v)) print(' V(0,0,R0)(volt)={0:.6e}'.format(v0))
15