Question: please help me understand how to do this and what the code means. please and thank you very much appreciated. Write a Python script with
Write a Python script with 1. Create array x using numpy.linsspace() 2. Create array y1 with n random numbers 3. Create array y2 with n zeros 4. Perform "for all ii's in the interval 1in1 :" where ii is the index position of the arrays y1 and y2 yi(new)=2(yi1(old)+yi+1(old)) 5. Create if the norm of the array y 2 minus the array y1 is less than .001, plot y2 vs. x. However, if otherwise, assign y 2 to y1 and repeat iteration. The norm of a vector z array is defined as z=i=0n1zi2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
