This document contains the code for a Visual Studio program that uses an iterative method to find the fixed point of a multivariate function. The code defines variables to hold the initial guess values, iterates the function, calculates the difference between iterations, and stops iterating when the difference is below a threshold. It outputs the results and initializes colors on labels that change over time. The program allows the user to input starting values and find the fixed point of the system of equations.
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Visual Studio point fixed multi-variant
1. INGENIERÍAQUIMICA-UNSCH
REMIGIOMUNNER PÉREZPALOMINO
PUNTO FIJO MULTIVARIANTE EN VISUAL STUDIO - 2008
Public Class Form1
Dim X0 As Double
Dim Y0 As Double
Dim X As Double
Dim Y As Double
Dim EPS As Double
Dim ITER As Byte
Dim DV As Double
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
TextBox1.Focus()
X0 = Val(TextBox1.Text)
Y0 = Val(TextBox2.Text)
EPS = Val(TextBox3.Text)
ITER = 0
X = (8 + X0 ^ 2 + Y0 ^ 2) / 10
Y = (X0 * Y0 ^ 2 + 8 + X) / 10
DV = ((X - X0) ^ 2 + (Y - Y0) ^ 2) ^ 0.5
ListBox1.Items.Add(Format(ITER, "00") & Space(5) & Format(X0,
"0.0000") & Space(5) & Format(Y0, "0.0000") & Space(5) & Format(X,
2. INGENIERÍAQUIMICA-UNSCH
REMIGIOMUNNER PÉREZPALOMINO
"0.0000") & Space(5) & Format(Y, "0.0000") & Space(5) & Format(DV,
"0.0000"))
Do While System.Math.Abs(DV) > EPS
X = (8 + X0 ^ 2 + Y0 ^ 2) / 10
Y = (X0 * Y0 ^ 2 + 8 + X) / 10
DV = ((X - X0) ^ 2 + (Y - Y0) ^ 2) ^ 0.5
X0 = X
Y0 = Y
ListBox1.Items.Add(Format(ITER, "00") & Space(5) &
Format(X0, "0.0000") & Space(5) & Format(Y0, "0.0000") & Space(5) &
Format(X, "0.0000") & Space(5) & Format(Y, "0.0000") & Space(5) &
Format(DV, "0.0000"))
ITER = ITER + 1
Loop
TextBox4.Text = X
TextBox5.Text = Y
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button2.Click
End
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button3.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
ListBox1.Text = ""
ListBox1.Items.Clear()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
Static C As Integer
C = C + 1 'INICIALIZANDO
If C = 1 Then
Label4.ForeColor = Color.Red
ElseIf C = 2 Then
Label4.ForeColor = Color.Yellow
ElseIf C = 3 Then
Label4.ForeColor = Color.Green
ElseIf C = 4 Then
Label4.ForeColor = Color.Black
Else : C = 5
C = 0
End If
End Sub
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer2.Tick
Static D As Integer
D = D + 1 'INICIALIZANDO
If D = 1 Then
Label13.ForeColor = Color.Red
ElseIf D = 2 Then
Label13.ForeColor = Color.Yellow
ElseIf D = 3 Then