Question: Problem 1: Make a code by performing following steps Define a radius r with r = 2 Define a row vector x whose first element
Problem 1:
Make a code by performing following steps
- Define a radius r with r = 2
- Define a row vector x whose first element is -4, and the increment size is 0.05 and last element is 3. So, the first element will be -4, second element will be -3.9500 so on and so forth.
- Make a for loop that calculates and saves it in a variable with name , using array indexing i and then calculates and saves it in another variable with name using the array indexing i.
- Make a plot with values of on x-axis and values of on y-axis
Note: You will use only one for loop
Note: There is multiplication happening between r and that is and multiplication happening between r and that is .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
