Description
( ) ( )
( ) ( ) ( ) ( )
2
0 0 00
Calculate the first derivative of the function
= sin
1 as accurately as you can at radians using the five-point 10
midpoint formula,
1 28 8
12
fx x
x
f x fx h fx h fx h h
=
′ = − − −+ +
( ) ( )
( )
5
5
0
0 0
2, 5
where lies between 2 and 2 .
Compare your result with the “exact” result you get using the
math routine(s) in numpy.
h fx h f
xh xh
ξ
ξ
− ++
− +
2
The City College of New York
CSc 30100 – Scientific Programming
Fall 2020 – Erik K. Grimmelmann, Ph.D.
3
Discuss your results. Include all of your analysis and discussion
in an .ipynb file and submit the file thorugh Blackboard.
The name of the file you submit should be
lastname_firstname_AS05.ipynb.
Include your name in the first cell in your .ipynb notebook.
Do not clear your results after your last run so that I will be
able to see your results without rerunning your file.
If you collaborate with anyone on this assignment, be sure to
follow the collaboration guidelines in the syllabus including
listing with whom you collaborated in your ipynb file.