I have been trying to code newton raphson but i am running into a problem that is probably trivial, but i can\'t seem to wrap my head around it. my code follows: