Задание на C#

chsv

Флудер
Забанен
Дней с нами
2.639
Розыгрыши
0
Сообщения
242
Репутация
11
Реакции
177
Помогите,я новичок в этом деле и пока-что ,мало понимаю.
p4iQS-lZtUU.jpg
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)
{
Console.Write("введите a= ");
double a = Convert.ToDouble(Console.ReadLine());
double y = 2*(Math.Pow(sin,2))*(3*PI-2*a)*(Math.Pow(cos,2))*(5*PI+2*a);
double z = 1/4-1/4*Math.Sin(5/2*PI-8*a);
Console.WriteLine("При a = {a} y = {y} z = {z}");
Console.ReadKey();
}


}


}
Выдает такие ошибки:
main.cs(22,32): error CS0103: The name `sin' does not exist in the current context
main.cs(23,41): error CS0103: The name `PI' does not exist in the current context
Помогите,умоляю!
 
Math.PI eto raz
Math.sin eto dva
 
Math.PI eto raz
Math.sin eto dva
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)
{
Console.Write("введите a= ");
double a = Convert.ToDouble(Console.ReadLine());
double y = 2*(Math.Pow(Math.sin,2))*(3*Math.PI-2*a)*(Math.Pow(cos,2))*(5*Math.PI+2*a);
double z = 1/4-1/4*Math.Sin(5/2*Math.PI-8*a);
Console.WriteLine("При a = {a} y = {y} z = {z}");
Console.ReadKey();
}


}


}
main.cs(22,29): error CS0117: `System.Math' does not contain a definition for `sin'
/usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
 
Помогите,я новичок в этом деле и пока-что ,мало понимаю.
p4iQS-lZtUU.jpg
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)
{
Console.Write("введите a= ");
double a = Convert.ToDouble(Console.ReadLine());
double y = 2*(Math.Pow(sin,2))*(3*PI-2*a)*(Math.Pow(cos,2))*(5*PI+2*a);
double z = 1/4-1/4*Math.Sin(5/2*PI-8*a);
Console.WriteLine("При a = {a} y = {y} z = {z}");
Console.ReadKey();
}


}


}
Выдает такие ошибки:
main.cs(22,32): error CS0103: The name `sin' does not exist in the current context
main.cs(23,41): error CS0103: The name `PI' does not exist in the current context
Помогите,умоляю!
Ты знаешь, тебе пора к офтальмологу.
 
double y = 2*Math.Pow(Math.Sin(3*Math.PI-2*a),2)*Math.Pow(Math.Cos(5*Math.PI+2*a),2);
double z = (1/4)-(1/4)*Math.Sin((5/2)*Math.PI-8*a);
 
  • Like
Реакции: dilho, borodatyu и chsv
  • Like
Реакции: ThreeDog
Не пиши синус через pow, если не нужно больших степеней , то лучше умножение используй
 
О! некрофилы набежали