Question: Plot exact and inexact Fahrenheit- Celsius conversion formulas A simple rule to quickly compute the Celsius temperature from the Fahrenheit degrees 2 points is to
Plot exact and inexact Fahrenheit- Celsius conversion formulas A simple rule to quickly compute the Celsius temperature from the Fahrenheit degrees 2 points is to subtract 30 and then divide by 2 F -30 Compare this curve against the exact curve C (F-32) n 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) You will need to plot the data using a black dashed line ( '--' ) for the approximate formula: a black solid line for the accurate formula; and a black dotted line ) for the error (preserve this orderl) change the plot range to match the specification above (use the plt.xlim( a,b) function, where you provide a and b) add axes labels to your plot, 'temperature / and temperature/c . Your submission should include a plot. Make sure to inport matplotlib.pyplot as p plt.plot but not plt.show in your submission. (This assignment is based on Langtangen. Exercise 5,12) 0 Type here to search len
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
