1
1. .
2. C# .
1.
( ). y
(
- ).
2. , True False .
3. .
1. .
2. .
3. .
,
,
(. 1.1):
![]() |
. 1.1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
double x, y, x1, y1;
bool w;
Console.WriteLine(" x");
x = Convert.ToDouble(Console.ReadLine());
y=Math.Pow(2,-x)*Math.Sqrt(x+Math.Pow(Math.Abs(x),1/3));
Console.WriteLine(" x {0}, y ={1}", x, y);
Console.WriteLine(" x = {0}, y y11 = {1}", x, Math.Truncate(y));
Console.WriteLine(" x = {0}, y y22 = {1}", x, Math.Round(y));
Console.WriteLine(" x1");
x1 = Convert.ToDouble(Console.ReadLine());
Console.WriteLine(" y1");
y1 = Convert.ToDouble(Console.ReadLine());
Console.WriteLine(", (x1,y1) ");
w = Math.Pow(x1, 2) + Math.Pow(y1, 2) <= 1 & (x1 <= 0 || y1 <= -x1);
Console.WriteLine(" {0}, x1= {1}; y1 = {2}.",w,x1,y1);
Console.ReadLine();
FileStream s = new FileStream("a.txt", FileMode.Create);
StreamWriter Wr = new StreamWriter(s);
Wr.WriteLine(" x {0}, y ={1}", x, y);
Wr.WriteLine(" x = {0}, y y11 = {1}", x, Math.Truncate(y));
Wr.WriteLine(" x = {0}, y y22 = {1}", x, Math.Round(y));
Wr.WriteLine(", (x1,y1) ");
Wr.WriteLine(" {0}, x1= {1}; y1 = {2}.", w, x1, y1);
Wr.Close();
s.Close();
}
}
}
:
:
a.txt:
x 1,5, y =0,559016994374947
x = 1,5, y y11 = 0
x = 1,5, y y22 = 1
|
|
, (x1,y1)
True, x1= -0,5; y1 = 0,1.
.
1.1
![]() ![]() |
![]() ![]() |
![]() ![]() ![]() |
![]() ![]() |
![]() ![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
1.2
![]() ![]() | ![]() | |||
![]() | 4 ![]() | |||
![]() ![]() | ||||
1.2 | ||||
![]() | ![]() ![]()
| |||
![]() | ![]() ![]() ![]()
| |||
![]() ![]() | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |