Jan-18-2021, 08:09 PM
Or, are you looking at successive iterations?
One challenge in translating math expressions to programs is that math expressions commonly use 1 letter for functions, variables, etc. Programs are hard to read that way.
So, if ft actually f(t)? That would explain why you are passing t.
And is what you are returning supposed to be f_prime?
And is line 19 supposed to reflect f(i+1) = f(i) + derived_f(f(t[i]),t[i]) * h
?
One challenge in translating math expressions to programs is that math expressions commonly use 1 letter for functions, variables, etc. Programs are hard to read that way.
So, if ft actually f(t)? That would explain why you are passing t.
And is what you are returning supposed to be f_prime?
And is line 19 supposed to reflect f(i+1) = f(i) + derived_f(f(t[i]),t[i]) * h
?