Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

part c&d A. Use the definition of derivative to write a python function that calculate the slope at 4 for cosx using different values of

part c&d 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

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions