Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are to create a Python code that will plot contours and line plots of the following function. ( ) = Acos ( + )
You are to create a Python code that will plot contours and line plots of the following function.
Acos cos
Your code should:
Have a header that describes the code and liberally documents every aspect.
Interact with the user by printing to the screen a description of what the code can do
Request input of ABn mPhi and Psi to define the function, it should then report out what was
entered and ask for confirmation or reentry.
Continually ask whether you want a contour plot or a line plot or want to end.
o When a contour plot is demanded by the user, your code should request the x and y
range of the desired contour plot, and the plot should be generated to both the screen
and a file.
o When a line plot is demanded, your code should ask whether a vertical or horizontal
plot is required and once told, should ask for the value of the fixed variable and the
range of the other. It should generate the plot to both the screen and a file.
When the code is told to stop, it should let the user know what files the resulting plots can be
found in
The code should employ at a minimum:
o Numpy arrays
o One or more functions
o A while or for loop
o And be well documented
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started