diff options
Diffstat (limited to 'Fundamental_Of_Physics_by_D_Haliday/23-Electric_Fields.ipynb')
-rw-r--r-- | Fundamental_Of_Physics_by_D_Haliday/23-Electric_Fields.ipynb | 169 |
1 files changed, 169 insertions, 0 deletions
diff --git a/Fundamental_Of_Physics_by_D_Haliday/23-Electric_Fields.ipynb b/Fundamental_Of_Physics_by_D_Haliday/23-Electric_Fields.ipynb new file mode 100644 index 0000000..dfb1f7e --- /dev/null +++ b/Fundamental_Of_Physics_by_D_Haliday/23-Electric_Fields.ipynb @@ -0,0 +1,169 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 23: Electric Fields" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 23.2: Sample_Problem_2.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"exec('electrostatics.sci', -1)\n", +"exec('degree_rad.sci', -1)\n", +"\n", +"//Given that\n", +"Q = 1 //(say)\n", +"q1 = +2*Q\n", +"q2 = -2*Q\n", +"q3 = -4*Q\n", +"d = 1 //(say)\n", +"theta = dtor(30)\n", +"\n", +"//Sample Problem 23-2\n", +"printf('**Sample Problem 23-2**\n')\n", +"E1 = coulomb(q1, 1, d)*[cos(theta), sin(theta)]\n", +"E2 = coulomb(q2, 1, d)*[-cos(theta), sin(theta)]\n", +"E3 = coulomb(q3, 1, d)*[-cos(theta), -sin(theta)]\n", +"E = E1 + E2 + E3\n", +"printf('The net electric field at origin is equal to %eQ/d^2 N/C', norm(E))" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 23.3: Sample_Problem_3.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"exec('electrostatics.sci', -1)\n", +"exec('degree_rad.sci', -1)\n", +"\n", +"//Given that\n", +"Q = 1 //(say)\n", +"A = dtor(120)\n", +"r = 1 //(say)\n", +"\n", +"//Sample Problem 23-3\n", +"printf('**Sample Problem 23-3**\n')\n", +"Eunit_angle = coulomb(Q/A, 1, r)\n", +"//overall only x-component will survive\n", +"E = integrate('Eunit_angle*cos(theta)', 'theta', -A/2, A/2)\n", +"printf('The electric field due to arc at point P is equal to %eQ/r^2 N/C', E)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 23.4: Sample_Problem_4.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Given that\n", +"m = 1.3*10^-10 //in kg\n", +"Q = 1.5*10^-13 //in C\n", +"Vx = 18 //in m/s\n", +"L = 1.6*10^-2 //in meter\n", +"E = 1.4*10^6 //in N/C\n", +"\n", +"//Sample Problem 23-4\n", +"printf('**Sample Problem 23-4**\n')\n", +"a = E*Q/m\n", +"t = L/Vx\n", +"dv = 0.5*a*t^2 //vertical drop\n", +"printf('The vertical drop of the drop is equal to %fmm', dv*10^3)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 23.5: Sample_Problem_5.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"exec('degree_rad.sci', -1)\n", +"\n", +"//Given that\n", +"P = 6.2*10^-30 //in C.m\n", +"\n", +"//Sample Problem 23-5a\n", +"printf('**Sample Problem 23-5a**\n')\n", +"q = 10*e\n", +"l = P/q\n", +"printf('The effective ditance between the positive & negative center is %em\n', l)\n", +"\n", +"//Sample Problem 23-5b\n", +"printf('\n**Sample Problem 23-5b**\n')\n", +"E = 1.5*10^4 //in N/C\n", +"T = 2*E*q*l/2\n", +"printf('The net torque on the dipole is %eN.m\n', T)\n", +"\n", +"//Sample Problem 23-5c\n", +"printf('\n**Sample Problem 23-5c**\n')\n", +"W = -(P*E*(cos(dtor(180)) - cos(0)))\n", +"printf('The work done by the external agent is equal to %eJ', W)" + ] + } +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} |