Advertisement
Alex_Fomin

Untitled

Dec 27th, 2015
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApplication14
  4. {
  5.     class Program
  6.     {
  7.         static void Main()
  8.         {
  9.             Console.Write("Введите число A: ");
  10.             Double a = Convert.ToDouble(Console.ReadLine());
  11.             Double z1 = (1 + Math.Cos(2 * ((3.0f / 8.0f) * Math.PI - (a / 4.0f)))) / 2.0f - (1 + Math.Cos(2 * ((11.0f / 8.0f) * Math.PI + (a / 4.0f)))) / 2.0f;
  12.             Double z2 = Math.Sqrt(2) / 2.0f * Math.Sin(a / 2.0f);
  13.             Console.WriteLine("Результат: z1={0:f5}  z2={1:f5}", z1, z2);
  14.             Console.ReadKey();
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement