From 5ea5d0af481f11ad823e737d4b430fe414a47860 Mon Sep 17 00:00:00 2001 From: Martin Delcourt <martin.delcourt@uclouvain.be> Date: Mon, 18 Nov 2019 18:25:24 +0100 Subject: [PATCH] fixing typo --- Chapter_9/capacitor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Chapter_9/capacitor.py b/Chapter_9/capacitor.py index 4751ed8..8372cec 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))) -- GitLab