Advertisement
Guest User

var7

a guest
Apr 9th, 2020
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace var7
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double z1, z2, a, b;
  14.             Console.Write("a = ");
  15.             a = Convert.ToDouble(Console.ReadLine());
  16.  
  17.             z1 = Math.Pow(Math.Cos(3.0 * Math.PI / 8 - a / 4), 2) - Math.Pow(Math.Cos(11.0 * Math.PI / 8 + a / 4), 2);
  18.             z2 = (Math.Sqrt(2) / 2) * Math.Sin(a / 2);
  19.             Console.WriteLine("z1 = {0}\nz2 = {1}", z1, z2);
  20.  
  21.             Console.ReadKey();
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement