From 21858fb83393785ec4a51e6282d534abde65a00d Mon Sep 17 00:00:00 2001 From: User of DK12 Date: Fri, 28 Sep 2018 14:45:15 +0400 Subject: [PATCH 1/2] =?UTF-8?q?=D0=AF=20=D0=B2=D1=8B=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D0=BD=D0=B8=D0=BB=20=D0=BB=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D1=83=D1=8E=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CourseApp/CourseApp.csproj | 2 +- CourseApp/Program.cs | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CourseApp/CourseApp.csproj b/CourseApp/CourseApp.csproj index 23df604..ce1697a 100644 --- a/CourseApp/CourseApp.csproj +++ b/CourseApp/CourseApp.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp2.1 + netcoreapp2.0 diff --git a/CourseApp/Program.cs b/CourseApp/Program.cs index 3f81738..6684fd1 100644 --- a/CourseApp/Program.cs +++ b/CourseApp/Program.cs @@ -6,7 +6,7 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Hello World!"); + Console.WriteLine("Anton Naumov!"); } } } diff --git a/README.md b/README.md index ee1aa8c..ce86971 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Course of c# -Please write your name and surname here \ No newline at end of file +Anton_Naumov \ No newline at end of file From 766b8c47e72725a31dd4e9fa93905c91244d1a67 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 30 Oct 2018 14:06:56 +0400 Subject: [PATCH 2/2] second lab --- CourseApp/Program.cs | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/CourseApp/Program.cs b/CourseApp/Program.cs index 6684fd1..78095ef 100644 --- a/CourseApp/Program.cs +++ b/CourseApp/Program.cs @@ -1,12 +1,37 @@ using System; -namespace CourseApp +namespace Matan { class Program { + public static double y(double x, double a, double b) + { + return (Math.Asin(Math.Pow(x, a) + Math.Acos(Math.Pow(x, b)))); + } + static void Main(string[] args) { - Console.WriteLine("Anton Naumov!"); + double a = 2; + double b = 3; + double xn = 0.11; + double xk = 0.36; + double dx = 0.05; + + double[] x = new double[5] { 0.08, 0.26, 0.35, 0.41, 0.53 }; + + Console.WriteLine("Задача A:"); + + for (double xl = xn; xl < xk; xl += dx) + { + Console.WriteLine($"Для x = {xl}\t y = {y(xl, a, b)}"); + } + + Console.WriteLine("Задача B:"); + + foreach (double i in x) + { + Console.WriteLine($"Для x = {i}\t y = {y(i, a, b)}"); + } } } -} +} \ No newline at end of file