I wrote a function in octave and got an error like this:
parse error near line 6 of file D:\Evan\Kuliah\Smt 4\METNUM\newton_method.m
syntax error
y = @3*x^2 - 4*x;e
code:
function y = df(x)
y = @3*x^2 - 4*x;
end
I've changed the function to something like this
function y = df
y = @3*x^2 - 4*x;
end
but the result remains the same