Dec-01-2017, 09:23 PM
I got this home assignment where i need to use the Newton-Raphson method to find a root of a given function.
this time I needed to search for a common meeting point of two given functions - f1() and f2(), both are lambda functions.
So i thought about doing this:
[inline]def equal(f1, f2):
root = NR(f1()-f2(),diff_param(f1()-f2(),h=0.001))
return root[/inline]
But got error message because functions are
Error:unsupported operand type(s) for -:
How could I apply my idea? or should i go for another way?
Thanks