Advertisement
Guest User

var10

a guest
Apr 10th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.73 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 var10
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double z1, z2, a;
  14.             Console.Write("a = ");
  15.             a = Convert.ToDouble(Console.ReadLine());
  16.             if (1-Math.Sin(3*a - Math.PI) == 0) Console.WriteLine("Error!");
  17.             else
  18.             {
  19.                 z1 = Math.Sin(Math.PI/2.0 + 3*a) / (1 - Math.Sin(3 * a - Math.PI));
  20.                 z2 = Math.Pow(Math.Tan(5*Math.PI/4.0 + 3*a/2), -1);
  21.                 Console.WriteLine("z1 = {0}\nz2 = {1}", z1, z2);
  22.             }
  23.  
  24.             Console.ReadKey();
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement