Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace vova_task1
- {
- class Program
- {
- static double GradToRad(double val)
- {
- return Math.PI * val / 180.0;
- }
- static void Main(string[] args)
- {
- double z1, z2, alpha;
- Console.Write("enter alpha: ");
- alpha = double.Parse(Console.ReadLine());
- alpha = GradToRad(alpha);
- z1 = (1 - 2*Math.Pow(Math.Sin(alpha),2)) / (1 + Math.Sin(2*alpha));
- z2 = (1 - Math.Tan(alpha)) / (1 + Math.Tan(alpha));
- Console.WriteLine($"{z1:F5} {z2:F5}");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement