Doolitle
function [x]=doolitle(a,b)
n=size(a,1)
l=eye(n,n)
u=zeros(n,n)
for k=1:n
u(1,k)=a(1,k)
end
for j=2:n
l(j,1)=a(j,1)/u(1,1)
end
for j=2:n-1
for k=j:n
for s=1:j-1
p=l(j,s)*u(s,k)
end
u(j,k)=a(j,k)-p
for t=j:n-1
for r=t+1:n
q=l(r,s)*u(s,t)
end
l(r,t)=(1/u(t,t))*(a(r,t)-q)
end
end
end
v=0
for s=1:n-1
v=v+l(n,s)*u(s,n)
end
u(n,n)=a(n,n)-v
y=l\b
x=u\y
endfunction
Crout
function [x]=crout(a,b)
n=size(a,1)
l=zeros(n,n)
u=eye(n,n)
for j=1:n
l(j,1)=a(j,1)
end
for k=2:n
u(1,k)=a(1,k)/l(1,1)
end
for k=2:n-1
for j=k:n
for s=1:k-1
p=l(j,s)*u(s,k)
end
l(j,k)=a(j,k)-p
for r=k:n-1
for t=r+1:n
q=l(r,s)*u(s,t)
end
u(r,t)=(1/l(r,r))*(a(r,t)-q)
end
end
end
v=0
for s=1:n-1
v=v+l(n,s)*u(s,n)
end
l(n,n)=a(n,n)-v
y=l\b
x=u\y
endfunction
Liffee
Tuesday, May 15, 2018
algoritma crout dan doolittle v2
Doolitle
function[x]=doolitle(a,b)
n=size(a,1)
u=zeros(n,n)
l=eye(n,n)
for k=1:n
u(1,k)=a(1,k)
end
for j=2:n
l(j,1)=a(j,1)/u(1,1)
end
for j=2:n-1
for k=j:n
for s=1:j-1
p=l(j,s)*u(s,k)
end
u(j,k)=a(j,k)-p
for t=j:n-1
for r=t+1:n
q=l(r,s)*u(s,t)
l(r,t)=1/u(t,t)*(a(r,t)-q)
end
end
end
end
w=0;
for s=1:n-1,
w=w+l(n,s)*u(s,n);
end
u(n,n)=a(n,n)-w;
y=l\b
x=u\y
endfunction
function[x]=doolitle(a,b)
n=size(a,1)
u=zeros(n,n)
l=eye(n,n)
for k=1:n
u(1,k)=a(1,k)
end
for j=2:n
l(j,1)=a(j,1)/u(1,1)
end
for j=2:n-1
for k=j:n
for s=1:j-1
p=l(j,s)*u(s,k)
end
u(j,k)=a(j,k)-p
for t=j:n-1
for r=t+1:n
q=l(r,s)*u(s,t)
l(r,t)=1/u(t,t)*(a(r,t)-q)
end
end
end
end
w=0;
for s=1:n-1,
w=w+l(n,s)*u(s,n);
end
u(n,n)=a(n,n)-w;
y=l\b
x=u\y
endfunction
Crout
function [x]=crout(a,b)
n=size(a,1)
l=zeros(n,n)
u=eye(n,n)
for j=1:n
l(j,1)=a(j,1)
end
for k=2:n
u(1,k)=a(1,k)/l(1,1)
end
for k=2:n-1
for j=k:n
for s=1:k-1
p=l(j,s)*u(s,k)
end
l(j,k)=a(j,k)-p
for r=k:n-1
for t=r+1:n
q=l(r,s)*u(s,t)
u(r,t)=1/l(r,r)*(a(r,t)-q)
end
end
end
end
w=0
for s=1:n-1
w=w+l(n,s)*u(s,n)
end
l(n,n)=a(n,n)-w
y=l\b
x=u\y
endfunction
Sunday, May 13, 2018
Crout
function [l, u, x]=crout(a, b)
n=size(a,1)
a(1,2:n)=a(1,2:n)/a(1,1)
for m=2:n,
for k=2:m,
v=a(m,1:k-1)
w=a(1:k-1,k)
a(m,k)=a(m,k)-v*w
end,
v=a(m,1:m-1)
for k=m+1:n,
w=a(1:m-1,k)
a(m,k)=(a(m,k)-v*w)/a(m,m)
end,
end,
l=tril(a)
u=triu(a,1)+eye(n,n)
y=l\b
x=u\y
endfunction
function [l, u, x]=crout(a, b)
n=size(a,1)
a(1,2:n)=a(1,2:n)/a(1,1)
for k=2:n,
for j=2:k
v=a(k,1:j-1)
w=a(1:j-1,j)
a(k,j)=a(k,j)-v*w
end
v=a(k,1:k-1)
for j=k+1:n,
w=a(1:k-1,j)
a(k,j)=(a(k,j)-v*w)/a(k,k)
end
end
l=tril(a)
u=triu(a,1)+eye(n,n)
y=l\b
x=u\y
endfunction
Doolitle Algorithm
Hello, di postingan kali ini akan dibahas mengenai algoritma doolitle. Algoritma ini digunakan untuk mencari nilai x dari Ax=b.
function [l, u, x]=doolitle(a, b)
n=size(a,1)
a(2:n,1)=a(2:n,1)/a(1,1)
for k=2:n-1,
v=a(k,1:k-1)
for j=k:n,
w=a(1:k-1,j)
a(k,j)=a(k,j)-v*w
end
w=a(1:k-1,k)
for j=k+1:n,
v=a(j,1:k-1)
a(j,k)=(a(j,k)-v*w)/a(k,k)
end
end
a(n,n)=a(n,n)-a(n,1:n-1)*a(1:n-1,n)
l=tril(a,-1)+eye(n,n)
u=triu(a)
y=l\b
x=u\y
endfunction
Tuesday, April 8, 2014
How to Install Flashtool
1. You can download it, here
Note, if you're using Windows 8, you need to follow these step first
2. After that, double click the program. You'll see the pop up window, like this
3. Click "Next" button. You'll see like this.
10. Thick the "Fastboot Drivers" and Flashmode Drivers". Like this. Then click "Install"
Note, if you're using Windows 8, you need to follow these step first
2. After that, double click the program. You'll see the pop up window, like this
4. You can change the destination folder. Then click "Next".
5. Then, wait until the installation is finished
6. You need to go to the destination folder of Flashtool, that you have extracted.
7. Then double click the flashtool folder. Then go to "drivers" folder
8. You'll see like this
Double click on it.
9. You'll see the pop out window like this
Then click "Next"10. Thick the "Fastboot Drivers" and Flashmode Drivers". Like this. Then click "Install"
11. Then a couple seconds, you'll see like this. Just click "Next"
12. Wait untill it Finished. If you see the pop out window, that has a red banner. Just click the second option.
13. Done ! You're Flashtool is installed :)
================================================================================================================================================
If you find any difficulties, you can post a comment
Flashtool
Flashtool is a S1 flashing software that works for all Sony phones from X10 to Xperia Z Ultra. They all use the S1 protocol for flashing firmwares (.ftf).
Flashtool can also easily unlock the bootloader of the phone using the BLU icon as far as the bootloader of your phone is unlockable
The flashing feature as well as bootloader unlock feature are available whatever the phone is recognized or not by the application. What is only mandatory for flashing is to own the FTF file according to the device you want to flash it on.
Why should I use flashtool ?
- Once bootloader unlocked, official sony tools do not work anymore.
- Using official sony tools, you can only upgrade. No downgrade possible.
- Using flashtool, you can choose what to flash and what not to flash. This said, many rooting scenarios are available implying kernel only downgrade to retrieve a patched rooting exploit and then flash back the right kernel.
Many other features have been built-in so that Flashtool can also be used to (as far as the phone is recognized by Flashtool) :
- Root your phone
- Install recovery, busybox, custom kernels
- Rebrand your device
OK.. If you want to download the Flashtool, you can download it here
Subscribe to:
Posts (Atom)







