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