Math.Acosの読み方

Math.Acosの読み方

C#で利用されるメソッドの1つである「Math.Acos」の読み方を掲載してます。

読み⽅

マス・アークコサイン」と読みます。

Math.Acosとは

C#で、指定した値のアークサインを計算するメソッドとなります。

using System;

namespace sebeeapp
{
    class Program
    {
        static void Main(string[] args)
        {

            double a, b, c;
            
            a = 1; // 底辺
            b = 2; // 斜辺

            // 角度を求める
            c = Math.Acos(a / b) * 180.0 / Math.PI;
            Console.WriteLine((int)c); // 60

        }
    }
}