Quantcast
Channel: Forum Pasja Informatyki - Najnowsze pytania bez odpowiedzi
Viewing all articles
Browse latest Browse all 21942

error cs 1502

$
0
0

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


Viewing all articles
Browse latest Browse all 21942

Trending Articles


TRX Antek AVT - 2310 ver 2,0


Автовишка HAULOTTE HA 16 SPX


POTANIACZ


Zrób Sam - rocznik 1985 [PDF] [PL]


Maxgear opinie


BMW E61 2.5d błąd 43E2 - klapa gasząca a DPF


Eveline ➤ Matowe pomadki Velvet Matt Lipstick 500, 506, 5007


Auta / Cars (2006) PLDUB.BRRip.480p.XviD.AC3-LTN / DUBBING PL


Peugeot 508 problem z elektroniką


AŚ Jelenia Góra