Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- static void Main(string[] args)
- {
- double a = 10, b = 0.01;
- double c = Math.Pow(a - b, 4);
- double d = Math.Pow(a, 4) - 6 * Math.Pow(a, 2) * Math.Pow(b, 2) + Math.Pow(b, 4);
- double e = -4 * a * Math.Pow(b, 3);
- double f = 4 * Math.Pow(a, 3) * b;
- double s = e - f;
- if (s == 0)
- {
- Console.WriteLine("Деление на ноль невозможно");
- }
- else
- {
- double result = (c - d) / s;
- Console.WriteLine("Вычислим данное выражение при помощи вещественного типа данных Double");
- //Console.WriteLine("a={0}, b={1}", a, b);
- Console.WriteLine($"a={a}, b={b}");
- //Console.WriteLine("Результат={0}", result);
- Console.WriteLine($"Результат={result}");
- }
- Console.ReadKey();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment