Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CourseApp/CourseApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>

</Project>
31 changes: 28 additions & 3 deletions CourseApp/Program.cs
Original file line number Diff line number Diff line change
@@ -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))));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Напишите, какой у вас варинат? почему во всех точках NaN?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Напишите, какой у вас варинат? почему во всех точках NaN?

}

static void Main(string[] args)
{
Console.WriteLine("Hello World!");
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)}");
}
}
}
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Course of c#

Please write your name and surname here
Anton_Naumov