Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace var10
- {
- class Program
- {
- static void Main(string[] args)
- {
- double z1, z2, a;
- Console.Write("a = ");
- a = Convert.ToDouble(Console.ReadLine());
- if (1-Math.Sin(3*a - Math.PI) == 0) Console.WriteLine("Error!");
- else
- {
- z1 = Math.Sin(Math.PI/2.0 + 3*a) / (1 - Math.Sin(3 * a - Math.PI));
- z2 = Math.Pow(Math.Tan(5*Math.PI/4.0 + 3*a/2), -1);
- Console.WriteLine("z1 = {0}\nz2 = {1}", z1, z2);
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement