Homework Statement
A line of charge of uniform density ρl occupies a semicircle of radius b as shown in Fig. P4.10. Use the material presented in Example 4-4 to determine the electric field at the origin. Homework Equations
dE = kdQ/r^2
The Attempt at a Solution
I'm trying to understand the...
I jumped to conclusions too quickly, that's interesting that it's n^3, I don't think I could have ever gotten that through trying with pen and paper. You guys have been a great help
A is a thousand-by-thousand matrix that was provided to us by our instructor for download. What you just told me, I think, confirmed what I was going to try and do. Thank you
Here is an excerpt from the assignment:
"Run your algorithm for k = 10, 20, 30, . . . , 150 and use the tic and toc commands (recall the in-class demo TicToc.m) to plot the computational time versus k. How does the computational time appear to depend on k? Does this agree with what you would...
I believe MATLAB is evaluating it that way, so it may be pretty simple. I'm intrigued with the shortcuts for both A^k and k!, I'm entirely new to MatLab so I'm unsure of how to find these. It would be really nice to find out what they were, since running my program now takes around 10 minutes...
Hey guys, another question regarding MatLab here. In this assignment, I need to create a function of 'k' to count the number of floating point operations in the algorithm that I've made.
Here is my code so far:
expAk = zeros(1000, 1000);
load('CA3matrix.mat');
times = zeros(15, 1);
for j =...
I've found the curve fitting tool, and I've managed to fit it into a third degree polynomial, but I cannot seem to save the file/call the function correctly to open it in my code...Fantastic. There must be an easier way to do this.
Let A be a random n×n matrix, x = (1,1,...,1)⊤ be an n-vector of ones and b = Ax be the right-hand side vector. As in class, let z = (zj) ∈ Rn be the result of solving the system Ax = b in finite precision using the backslash command. To measure the error between x and z, we let
δ= max |xj−zj|...
Homework Statement
⃑E = Eo cos(4.0y−1.2 × 109 t) ̂ (N/C)
where y is in meters and t is in seconds. The intensity of the wave is 200 mW/cm2 .
(a) In what direction is the wave propagating? (b) What are the wavelength and frequency of the wave? (c) What is the peak value of the electric field...