Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7 5 p Write a code ( python or java or MS excel or any other language ) to calculate the following: In this problem

75p Write a code (python or java or MS excel or any other language) to calculate the following: In this problem we will
calculate the electric potential of a point charge at various points. The charge will be located at the bottom left of the
matrix. Each cell is 0.1m long. The charge is the last digit of your ID number in nC(nanocoulomb). If you id no is
20??????13, your charge is 3nC, if 20????????01 your charge is 1nC...etc.
a) Create a matrix 1010(10 rows, 10 columns), the point charge is at i,j=[0,0] point.
b) Calculate the potential at each point in the matrix, (you will calculate 1010-1=99 values) Save this data.
c) Plot 2 dimensional image of the matrix by appropriate graphing tools.
d) Plot V for i=[1,9] and j=0x direction, V vs x
e) Plot V for diagonal direction i;j=[1;1] to [9,9],V vs r(r is in diagonal direction)
f) On this data, which points have the same V potential value? Can you draw equipotential lines on the data? How
would you change this problem, so that you can draw equipotential lines?
25p Use your programming skills to demonstrate / solve another problem from Physics II topics.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions