I am trying to use this code in Octave to evaluate the derivative of function f, df, at specific x values:
pkg load symbolic;
syms x;
f = @(x) sqrt(2*x+1) - sqrt(x+4);
disp(f);
df = diff(f,x);
I tried df(4) for example, and eval(df,4),
but neither of them worked giving a syntax or another errors.
The main function of this code is to then use those values to find the function f root using the Newton-Raphson method.