Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

b 15/T] Plot exact ane ine c I https://relate.cs.illino.s.e cs101-sp18/flow-session/3914214/ 2 points formulas A simple rule to quickly compute the Celsius temperature from the Fahrenheit

image text in transcribed

b 15/T] Plot exact ane ine c I https://relate.cs.illino.s.e cs101-sp18/flow-session/3914214/ 2 points formulas 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 C (F-32) 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) 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 order!) 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 F' and 'temperature C" 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.) 2018-03-10

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions