Математическая формула - C# (205351)
Формулировка задачи:
помогите пожалуйста написать формулу в C#:
O = arccos * [ cos B * cos (B-W) * cos A + sin B * sin (B-W)]
Заранее спасибо!!!!!
Решение задачи: «Математическая формула»
textual
Листинг программы
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
double A = double.Parse(Console.ReadLine());
double B = double.Parse(Console.ReadLine());
double W = double.Parse(Console.ReadLine());
double O = Math.Acos( (int)(Math.Cos(B)*Math.Cos(B-W)*Math.Cos(A)+Math.Sin(B)*Math.Sin(B-W)) );
Console.WriteLine(O);
Console.ReadKey();
}
}
}