I think most experienced posters here would've used it in some capacity.
This search will give you what you need.
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).
The easiest version of Newton's Method I know is
.
You need to define your function and your starting value .
You will also need to tell the computer when you have reached your level of tolerance. So a while loop is probably better than a for loop, because then you don't need to choose a number of iterations, instead you will tell the computer a condition which will tell it when it can stop.
i just used the first link given to me by pickslides's google link. it worked but what is the "while f(x-0.5*0.1^n)*f(x+0.5*0.1^n)>0" part in
Newt:=proc (f,x0,n) local x; x:=x0; while f(x-0.5*0.1^n)*f(x+0.5*0.1^n)>0 do x:=x-f(x)/D(f)(x) od end:
i didn't see how the .5 and .1 numbers showed up in the equation/formula.
Yes, but don't use to represent both the iterations and the number of iterations. Use some other letter for that.
So to start with, if you round the values of and to say 5 decimal places, you can stop the loop when they're equal.
Maple has a rounding command, it's round(x). Unfortunately it only rounds to the nearest whole number. You can get around this though. Say you wanted 5 decimal places - if you multiplied each number by , it will put all the necessary digits before the decimal point, and do the rounding you want.
Therefore, your while statement would be something like
while(round(10^5*x[n+1]) <> round(10^5*x[n]))
commands...
Does that make sense? Of course, in your procedure, you'd define another variable to represent the number of decimal places you want to be accurate.