diff --git a/Chapter_9/capacitor.py b/Chapter_9/capacitor.py index 4751ed859b7af45dbd60a6d289d2ab0ff8a9d33b..8372cecaa0466f9cba6f5d0aab4a14d7525a270c 100644 --- a/Chapter_9/capacitor.py +++ b/Chapter_9/capacitor.py @@ -31,11 +31,11 @@ def V(x,y, z0 = 1, Q = 1, L = 10): return integral(vz,0,2*z0,precision = 1e-2,silent = False) -distance = 0.2 +distance = 0.1 -potential = V(0,0,distance/2) -theory = distance*4*math.pi +potential = V(0,0,distance) +theory = distance*8*math.pi print("In the center : potential = {} - theory = {}; diff = {:.2f}%".format(potential,theory, 200*(potential-theory)/(potential + theory)))