NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
Practica 5 simu cholesky
1. Public Class Form1
Dim x(6) As Single
Dim y(6) As Single
Dim z(6) As Single
Dim s, s1, s2, s3, s4, s5, s6, s7 As Double
Dim l(3, 3) As Single
Private Sub btndatos_Click(sender As Object, e As EventArgs) Handles
btndatos.Click
a.Rows(0).Cells(0).Value = "i"
For i = 1 To 6
a.Rows(i).Cells(0).Value = i - 1
Next
a.Rows(0).Cells(1).Value = "x"
a.Rows(1).Cells(1).Value = 0
a.Rows(2).Cells(1).Value = 2
a.Rows(3).Cells(1).Value = 2.5
a.Rows(4).Cells(1).Value = 1
a.Rows(5).Cells(1).Value = 4
a.Rows(6).Cells(1).Value = 7
a.Rows(0).Cells(2).Value = "y"
a.Rows(1).Cells(2).Value = 0
a.Rows(2).Cells(2).Value = 1
a.Rows(3).Cells(2).Value = 2
a.Rows(4).Cells(2).Value = 3
a.Rows(5).Cells(2).Value = 6
a.Rows(6).Cells(2).Value = 2
a.Rows(0).Cells(3).Value = "z"
a.Rows(1).Cells(3).Value = 5
a.Rows(2).Cells(3).Value = 10
a.Rows(3).Cells(3).Value = 9
a.Rows(4).Cells(3).Value = 0
a.Rows(5).Cells(3).Value = 3
a.Rows(6).Cells(3).Value = 27
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
a.Rows.Add(6)
b.Rows.Add(6)
End Sub
Private Sub btngenerar_Click(sender As Object, e As EventArgs) Handles
btngenerar.Click
x(0) = a.Rows(1).Cells(1).Value
x(1) = a.Rows(2).Cells(1).Value
x(2) = a.Rows(3).Cells(1).Value
x(3) = a.Rows(4).Cells(1).Value
x(4) = a.Rows(5).Cells(1).Value
x(5) = a.Rows(6).Cells(1).Value
y(0) = a.Rows(1).Cells(2).Value
y(1) = a.Rows(2).Cells(2).Value
y(2) = a.Rows(3).Cells(2).Value
y(3) = a.Rows(4).Cells(2).Value
y(4) = a.Rows(5).Cells(2).Value
y(5) = a.Rows(6).Cells(2).Value
z(0) = a.Rows(1).Cells(3).Value