Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A. Use the definition of derivative to write a python function that calculate the slope at 4 for cosx using different values of h. h=[0.5,0.3,0.2,0.1,0.01,0.001].

image text in transcribed
A. Use the definition of derivative to write a python function that calculate the slope at 4 for cosx using different values of h. h=[0.5,0.3,0.2,0.1,0.01,0.001]. For each value of h calculate the true error, the relative true error, the approximate error and the relative approximate error. B. with the smallest value of h calculate the derivate for cosx at different points, points =[0,8,6,4,2,]. C. Using matplotlib to plot the derivatives in part B. D. Prove through the plot that the derivate of cosx is sinx by ploting sinx in the plot of part C and show that sinx passes through all derivate points in part C

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

Recommended Textbook for

Oracle9i Database Administrator Implementation And Administration

Authors: Carol McCullough-Dieter

1st Edition

0619159006, 978-0619159009

More Books

Students also viewed these Databases questions

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago