Witam,
Próbuję zapisać w C# następujacy wzór: https://postimg.org/image/3p4knsyp9/
Mój kod:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication4 { class Program { static void Main(string[] args) { double x, y; Console.Write("X= "); x = Convert.ToDouble(Console.ReadLine()); y = (Math.Pow(Math.Cos(x), 2) + Math.Pow(x, 2)) / Math.Pow(Math.Pow(Math.Sin(x),2)+Math.Pow(Math.Exp,Math.Pow(-x,2))+2 ,1/3); //(Math.Pow(Math.Pow(Math.Sin(x),2 + Math.Pow(Math.Exp, Math.Pow(x,2)))),1/3)+2; Console.WriteLine ("y= "+y); Console.ReadKey(); } } }
Otrzymane błedy:
1. error CS1502: The best overloaded method match for 'System.Math.Pow(double, double)' has some invalid arguments
2. error CS1503: Argument 1: cannot convert from 'method group' to 'double'
Jeśli ktoś wie o co chodzi to prosze o pomoc i naprowadzenie.
Pozdrawiam