-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
27 lines (22 loc) · 766 Bytes
/
Program.cs
File metadata and controls
27 lines (22 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
namespace Newton {
class Program {
static void OutputVec(double[] x) {
for (int i = 0; i < x.Length; i++)
System.Console.Out.Write(Math.Round(x[i], 5) + " ");
System.Console.Out.Write("\n" + "\n");
}
static void Main(string[] args) {
Newton newton = new Newton();
double[] result;
result = newton.Method();
OutputVec(result);
result = newton.ModifiedMethod();
OutputVec(result);
result = newton.TransitionToModMeth();
OutputVec(result);
result = newton.MethodWithRewriteRevMat();
OutputVec(result);
}
}
}