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
46 changes: 0 additions & 46 deletions CourseApp/Program.cs

This file was deleted.

36 changes: 36 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@


namespace Rextester
{
public class Program
Copy link
Collaborator

Choose a reason for hiding this comment

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

Верните файл обратно в каталог :)

{
public static void Problem(double a, double b, double x_begin, double x_end, double x_delta)
Copy link
Collaborator

Choose a reason for hiding this comment

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

не используйте snake_case для переменных (это не питон)- используйте camelCase

{
double yA;
for (double x = x_begin; x < x_end; x = (x + x_delta))
{
yA = ((Math.Pow(a, x) - Math.Pow(b, x)) * (Math.Pow(a, (1 / 3)) * (Math.Pow(b, (1 / 3))))) /(Math.Log10(a/b));
Console.WriteLine(yA + " ");
}
}
public static void Arr(double a, double b)
{
double yB;
double[] arr = { 4.48, 3.56, 2.78, 5.28,3.21 };
for (int i = 0; i < 5; i++)
{
yB = ((Math.Pow(a, arr[i]) - Math.Pow(b, arr[i])) * (Math.Pow(a, (1 / 3)) * (Math.Pow(b, (1 / 3))))) / (Math.Log10(a / b));
Console.WriteLine(yB + " ");
}

}
public static void Main(string[] args)
{
Console.WriteLine("A ");
Rextester.Program.Problem(0.4, 0.8, 3.2, 6.2, 0.6);
Console.WriteLine("B ");
Rextester.Program.Arr(0.4, 0.8);

}
}
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Tprogramming_42_2019
# Tprogramming_42_2019

Elizaveta_Kalashnikova