From 7706b5233ea2f5030e55f5c87e72c68f4d0d8631 Mon Sep 17 00:00:00 2001 From: Sudo-Raheel <73022850+Sudo-Raheel@users.noreply.github.com> Date: Mon, 8 Jul 2024 18:42:32 +0530 Subject: [PATCH] Update 2024-06-28-Charge_Density_Difference.ipynb --- notebooks/2024-06-28-Charge_Density_Difference.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebooks/2024-06-28-Charge_Density_Difference.ipynb b/notebooks/2024-06-28-Charge_Density_Difference.ipynb index 8efac9a..e0d93be 100644 --- a/notebooks/2024-06-28-Charge_Density_Difference.ipynb +++ b/notebooks/2024-06-28-Charge_Density_Difference.ipynb @@ -224,7 +224,7 @@ "ax.set_xlim([0,35])\n", "\n", "#cumulative integral \n", - "integ_elec = cumtrapz(planar_avg, c_arr, initial=0)\n", + "integ_elec = cumulative_trapezoid(planar_avg, c_arr, initial=0)\n", "\n", "ax.plot(c_arr,planar_avg,lw=2,color='purple',label='density')\n", "ax.plot(c_arr, integ_elec, lw=2, color='black', ls='--',label='cumulative integral')\n",