Recent content by JesseJC
-
Determining electric field at origin from semicircle charge
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...- JesseJC
- Thread
- Charge Electric Electric field Field Origin
- Replies: 1
- Forum: Introductory Physics Homework Help
-
Counting floating point operations in an algorithm
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- JesseJC
- Post #16
- Forum: Engineering and Comp Sci Homework Help
-
Counting floating point operations in an algorithm
Yes, I did a few small nxn matrices and came up with n + 1 flops, hopefully your link confirms it. Edit: Great, I was wrong haha- JesseJC
- Post #14
- Forum: Engineering and Comp Sci Homework Help
-
Counting floating point operations in an algorithm
This assignment is a real doozy- JesseJC
- Post #12
- Forum: Engineering and Comp Sci Homework Help
-
Counting floating point operations in an algorithm
How would you suppose I go about counting the number of flops for a 1000x1000 matrix multiplication?- JesseJC
- Post #11
- Forum: Engineering and Comp Sci Homework Help
-
Counting floating point operations in an algorithm
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- JesseJC
- Post #9
- Forum: Engineering and Comp Sci Homework Help
-
Counting floating point operations in an algorithm
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...- JesseJC
- Post #7
- Forum: Engineering and Comp Sci Homework Help
-
Counting floating point operations in an algorithm
Any advice on avoiding the subroutines?- JesseJC
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
Counting floating point operations in an algorithm
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...- JesseJC
- Post #4
- Forum: Engineering and Comp Sci Homework Help
-
Counting floating point operations in an algorithm
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 =...- JesseJC
- Thread
- Algorithm Counting Floating Operations Point
- Replies: 17
- Forum: Engineering and Comp Sci Homework Help
-
Matlab Extrapolation: Find Approximate Size of Matrix n∗
I got it, looks similar to mine. Thanks.- JesseJC
- Post #4
- Forum: Engineering and Comp Sci Homework Help
-
Matlab Extrapolation: Find Approximate Size of Matrix n∗
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.- JesseJC
- Post #2
- Forum: Engineering and Comp Sci Homework Help
-
Matlab Extrapolation: Find Approximate Size of Matrix n∗
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|...- JesseJC
- Thread
- Extrapolation Matlab
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
How Do You Analyze an Electromagnetic Wave Given Its Electric Field Equation?
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...- JesseJC
- Thread
- Electromagnetic Electromagnetic wave Wave
- Replies: 2
- Forum: Introductory Physics Homework Help
-
3 loop circuit, 5 resistors, 2 batteries
Potential: LL: -3 + I1R1 + I2R2 = 0 -> I1 + 2I2 = 3 ML: -12R2 + 13R3 -I4R4 = 0 -> -2I2 + 2I3 -2I4 = 0 RL: I5R5 - 13R3 + 6 = 0 -> I5 -2I3 = -6 After the matrix: I1 = 2I4 - I5 - 3 I2 = 3 - I4 + 1/2I5 I3 = 3 + 1/2I5 I5 = 2I3 - 6 Junctions: I1 = I2 + I4 I4 = 13 + I5- JesseJC
- Post #18
- Forum: Introductory Physics Homework Help