Question: Exercise 2. Computing the electric field due to a dlicrete charge distribution The goal of this exercise in to learn how to compute the a-and

 Exercise 2. Computing the electric field due to a dlicrete charge

Exercise 2. Computing the electric field due to a dlicrete charge distribution The goal of this exercise in to learn how to compute the a-and y-components of the electric field due to an arbitrary callection of point charges. - Create a new Python program - Import relevant pockages import numpy as in import matplatib pyplot at pht import moth Define chargos and their positions. The data structure shewn below is a list. You an add any mumber of new charges to this liat, of remove some of the charges. The inatructor will eiplain how to the eiements of the liat are indesed: chargei =(1,0,11.0,00)(1.0,[1.0,00014,f2,0,0,10.0] Define a function to calculate the x - and y componenti of the f feld. Tryand undentand what each ine does and how the principle of juperposition is coded. Ask the instructor for clarification if needed. - Now you are ready to call this function. print (tecma(r.o) boes the ovtput make senae? - Nov let us make some plots - Set up a double charge ryitem en the yaxis i charge quo. at y-1. 0 and charce q-70.5 at y10 - Plot the electric field on the xawis by saing the code below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!