Professional Documents
Culture Documents
Lagrange Codigo
Lagrange Codigo
Dim i, j, n As Integer
n = Cells(3, 4)
xb = Cells(4, 4)
xvert = 7
For i = 1 To n
x(i) = Cells(xvert, 2)
y(i) = Cells(xvert, 3)
xvert = xvert + 1
Next i
xb = 7
For i = 1 To n
l(i) = 1
For j = 1 To n
If i <> j Then
End If
Next j
l (i)
PT = PT + y(i) * l(i)
Next i
PT
Cells(12, 9).velue = PT
End Sub