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