Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write in python. Plot exact and inexact Fahrenheit-Celsius conversion formulas 2pois A simple rule to quickly compute the Celsius temperature from the Fahrenheit degrees
Please write in python.
Plot exact and inexact Fahrenheit-Celsius conversion formulas 2pois A simple rule to quickly compute the Celsius temperature from the Fahrenheit degrees is to subtract 30 and then divide by 2: F - 30 Compare this curve against the exact curve 9 in a plot. Let F vary between-20 and 120 with 101 points. You should include both the approximate and exact formulae, and the absolute value of their difference (the error). Wel,ill lose.lby: plot the data using a black dashed linefor the approximate formula; a black solid line for the accurate formula; and a black dotted line (' for the error (preserve this change the plot range to match the specification above (use the plt.xlim a,b . add axes labels to your plot, 'temperatureF and 'temperature / C function, where you provide a and b) Your submission should include a plot. Make sure to import matplotlib.pyplot as plt. Use plt.plot but not plt.show in your submission (This assignment is based on Langtangen, Exercise 5.12.)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