1. Consider the function f(x) = cos(z) for c= and h= 100 (a) What is the approximate derivative value for f(r) at e when
Posted: Tue Jul 12, 2022 8:05 am
1. Consider the function f(x) = cos(z) for c= and h= 100 (a) What is the approximate derivative value for f(r) at e when using the forward difference scheme? (ie. f(e+h)-f(c)) Show all commands. h (b) What is the approximate derivative value for f(r) at e when using the central difference scheme? (.e. f(c+h)-f(e-h)) Show all commands. 2h (c) Now use f¹ operator on julia. What is the value? Out of the two schemes above which will produce the smallest error? (i.e compute the percent error in julia Jeract- t-estimate x 100%) Show all commands exact I 2. Using the SymPy package on julia determine the following derivatives of the following functions: (a) f(x)= e), find f'(x). Show all commands