istomina_sofia

с# расчет формул

Sep 21st, 2021
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Лаба_1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             Console.WriteLine("Введите значение угла");
  10.             double x = Convert.ToDouble (Console.ReadLine());
  11.  
  12.             double z1 = 1 - (Math.Pow(Math.Sin(2 * x), 2)) / 4 + Math.Cos(2 * x);
  13.             Console.WriteLine("z1 = "  + z1);
  14.  
  15.             double z2 = Math.Pow(Math.Cos(x), 2) + Math.Pow(Math.Cos(x), 4);
  16.             Console.WriteLine("z2 = " + z2);
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment