Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- subsb2 <- function(A){
- n<-ncol(A)-1
- x<-rep(0,n)
- for(i in n:1){
- if(i<n){
- temp <- A[i,1:n]%*%x
- x[i] <- (A[i,n+1]-temp)/A[i,i]
- }
- else{
- x[i] <- A[i,n+1]/A[i,n]
- }
- }
- x
- }
- subsb2(hasil)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement