-
Notifications
You must be signed in to change notification settings - Fork 23
Anastasija zajtseva #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: Anastasija_Zajtseva
Are you sure you want to change the base?
Changes from 2 commits
2a2c270
5e51ad0
57c8d90
04a2809
ee71a4c
9969670
c4a7f5d
fab3925
35c11ae
bc60700
292a21d
31b0eab
a06bf51
d794ab5
7ac8860
9974217
cd1209f
bb0b2a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| # Course of c# | ||
|
|
||
| Please write your name and surname here | ||
| ��������� ������� | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| using System; | ||
|
|
||
| namespace CourseApp3 | ||
| { | ||
| class Program4 | ||
| { | ||
|
|
||
| static void Main(string[] args) | ||
| { | ||
| double xn = 0.15; | ||
| double xk = 1.37; | ||
| double dx = 0.25; | ||
| double[] xx = { 0.2, 0.3, 0.44, 0.6, 0.56 }; | ||
|
|
||
| Console.WriteLine("под А"); | ||
|
|
||
| for (double x = xn; x < xk; x += dx) | ||
| { | ||
| Console.WriteLine(Fan(x)); | ||
|
|
||
| } | ||
| Console.WriteLine("под B"); | ||
| foreach (double x in xx) | ||
| { | ||
| Console.WriteLine(Fan(x)); | ||
| } | ||
| } | ||
| static double Fan(double x) | ||
| { | ||
| double a = 0.1; | ||
|
||
| double b = 0.5; | ||
| double y; | ||
| y = ((a + (Math.Tan(b * x)) * (Math.Tan(b * x))) / (b + (1 / (Math.Tan(a * x))) * (1 / (Math.Tan(a * x))))); | ||
|
||
| return y; | ||
| } | ||
|
|
||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можо каким-то другим редактором поддреживающим кодировку?