Maple is really confusing and I need some help with writing some procedures. I don't know if anyone has ever used it, but if you did and know how to write some procedures then please help me with writing the Newton's Method as a procedure on Maple. I am attempting to use loop and and the first line will be Newton:=proc(f,x1,N).

Second is the procedure for computing area/net area. I will use the riemumm sum and same method byt not using loop this time. riemunn=proc(f,b,a).