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 var13
- {
- class Program
- {
- static void Main(string[] args)
- {
- double z1, z2, a, b;
- Console.Write("a = ");
- a = Convert.ToDouble(Console.ReadLine());
- Console.Write("b = ");
- b = Convert.ToDouble(Console.ReadLine());
- if ((Math.Cos(a) - Math.Sin(2*b - a) == 0) || (Math.Cos(2*b) == 0)) Console.WriteLine("Error!");
- else
- {
- z1 = (Math.Sin(a) + Math.Cos(2*b - a)) / (Math.Cos(a) - Math.Sin(2 * b - a));
- z2 = (1 + Math.Sin(2*b)) / (Math.Cos(2*b));
- Console.WriteLine("z1 = {0}\nz2 = {1}", z1, z2);
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement