PROBLEM1: Finding maxima and minima of a function using numerical differentiation Plot both the function, f(x) = 5 cos(1
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
PROBLEM1: Finding maxima and minima of a function using numerical differentiation Plot both the function, f(x) = 5 cos(1
PROBLEM1: Finding maxima and minima of a function using numerical differentiation Plot both the function, f(x) = 5 cos(10x) + x3 – 2x2 - 6x + 10 and its 1st derivative on different plots for the range 0 < x < 4. Also show the maxima and minima of the functionf (x). Use backward/forward/central difference formula. For maxima or minima, df(x) = 0. dx Output in Figure window: 20 10 f(x) 아 r C -10 0 0.5 1 1.5 2 2.5 3 3.5 4 х 100 50 xp/(x)p mm n n 0 -50 r -100 0 0.5 1 1.5 2.5 3 3.5 4 2 х