Here are some methods to compute the square root of a positive number . Nothing innovative; but classic.
Method 1: Taylor expansion
If , then
If , then
Convergence: linear.
Method 2: Fixed point iteration
Convergence: quadratic.
Method 3: Fixed point iteration
Convergence: cubic.
thank you for this post.. this helps me a lot.. really.. thanks..!
Hi,
I want to plot a implicit function on matlab, would you please let me know the commands?
Here is the function:
k=[x-k]x/[3x-2k]+[2x-3k][1-x]/[1-x-k]
x in (0,1)
Thanks a lot.
Frank, you can do this:
xm = 0:0.01:1;
km = 0:0.01:4;
[x,k] = meshgrid(xm,km);
f = (x-k).*x./(3*x-2*k)+(2*x-3*k).*(1-x)./(1-x-k) – k;
contour(x,k,f,[0,0]);
Btw, your question should be posted here instead..
http://chenfuture.wordpress.com/2007/07/12/implicit-function-plot/