Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
variables, que tiene n-nmero de ecuaciones, con pivoteo parcial. Asignatura: Mtodos de
anlisis numrico
Declaraciones
REM PLACE A COMMAND_BUTTON ON THE FORM
' Programmed by Dipankar Bose on November 30, 2006. Updated : February 2007.
Option Explicit
Dim i As Integer
Dim j As Integer
mBound = NoOfVariableEquations - 1
sSum = 0
For j = i + 1 To mBound
Next j
Next i
For i = 0 To mBound
msgStr = msgStr + vbNewLine & "X" & i + 1 & vbTab & reslt(i)
Next i
End Sub
Dim i As Integer
Dim j As Integer
mBound = NoOfVariableEquations - 1
For i = 0 To mBound
For j = 0 To mBound
mat(i, j) = InputBox("Enter Element co-eff value" & vbNewLine & "Element [" & i & "," & j & "]",
"Input Data Element")
Next j
mat(i, mBound + 1) = InputBox("Enter Element Value" & vbNewLine & "Value [" & i & "," &
mBound + 1 & "]", "Input Equation Value")
Next i
DisplayMatrixData
UpperTriangular
DisplayMatrixData
BkSubst
End If
End Sub
Dim i As Integer
Dim j As Integer
For i = 0 To NoOfVariableEquations - 1
For j = 0 To NoOfVariableEquations
Next j
Next i
MsgBox res
End Sub
ByVal r2 As Integer)
Dim i As Integer
Dim mB As Integer
mB = NoOfVariableEquations
For i = 0 To mB
dVal = mat(r1, i)
mat(r1, i) = mat(r2, i)
mat(r2, i) = dVal
Next i
End Sub
Private Sub UpperTriangular() ' Matrix to Echelon form
Dim i As Integer
Dim j As Integer
Dim k As Integer
Dim df As Single
mBound = NoOfVariableEquations - 1
For k = 0 To mBound - 1
For i = k + 1 To mBound
swapRowMat pTerms, k
End If
Next pTerms
df = mat(i, k) / mat(k, k)
For j = k To 3
Next j
Next i
Next k
End Sub