3 implementations of Pi
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1238static decimal IFloatingPointConstants<decimal>.Pi => 3.1415926535897932384626433833m;
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
782static double IFloatingPointConstants<double>.Pi => Pi;
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
779static float IFloatingPointConstants<float>.Pi => Pi;
27 references to Pi
System.Numerics.Tensors (18)
System\Numerics\Tensors\netcore\TensorPrimitives.AcosPi.cs (3)
34public static Vector128<T> Invoke(Vector128<T> x) => AcosOperator<T>.Invoke(x) / Vector128.Create(T.Pi); 35public static Vector256<T> Invoke(Vector256<T> x) => AcosOperator<T>.Invoke(x) / Vector256.Create(T.Pi); 36public static Vector512<T> Invoke(Vector512<T> x) => AcosOperator<T>.Invoke(x) / Vector512.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.AsinPi.cs (3)
34public static Vector128<T> Invoke(Vector128<T> x) => AsinOperator<T>.Invoke(x) / Vector128.Create(T.Pi); 35public static Vector256<T> Invoke(Vector256<T> x) => AsinOperator<T>.Invoke(x) / Vector256.Create(T.Pi); 36public static Vector512<T> Invoke(Vector512<T> x) => AsinOperator<T>.Invoke(x) / Vector512.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.Atan2Pi.cs (3)
75public static Vector128<T> Invoke(Vector128<T> y, Vector128<T> x) => Atan2Operator<T>.Invoke(y, x) / Vector128.Create(T.Pi); 76public static Vector256<T> Invoke(Vector256<T> y, Vector256<T> x) => Atan2Operator<T>.Invoke(y, x) / Vector256.Create(T.Pi); 77public static Vector512<T> Invoke(Vector512<T> y, Vector512<T> x) => Atan2Operator<T>.Invoke(y, x) / Vector512.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.AtanPi.cs (3)
34public static Vector128<T> Invoke(Vector128<T> x) => AtanOperator<T>.Invoke(x) / Vector128.Create(T.Pi); 35public static Vector256<T> Invoke(Vector256<T> x) => AtanOperator<T>.Invoke(x) / Vector256.Create(T.Pi); 36public static Vector512<T> Invoke(Vector512<T> x) => AtanOperator<T>.Invoke(x) / Vector512.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (3)
43Vector128<T> xpi = x * Vector128.Create(T.Pi); 66Vector256<T> xpi = x * Vector256.Create(T.Pi); 89Vector512<T> xpi = x * Vector512.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (3)
43Vector128<T> xpi = x * Vector128.Create(T.Pi); 66Vector256<T> xpi = x * Vector256.Create(T.Pi); 89Vector512<T> xpi = x * Vector512.Create(T.Pi);
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1237/// <inheritdoc cref="IFloatingPointConstants{TSelf}.Pi" />
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
781/// <inheritdoc cref="IFloatingPointConstants{TSelf}.Pi" />
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1426/// <inheritdoc cref="IFloatingPointConstants{TSelf}.Pi" />
src\libraries\System.Private.CoreLib\src\System\Numerics\ITrigonometricFunctions.cs (2)
113return (degrees * TSelf.Pi) / TSelf.CreateChecked(180); 124return (radians * TSelf.CreateChecked(180)) / TSelf.Pi;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1143/// <inheritdoc cref="IFloatingPointConstants{TSelf}.Pi" />
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (2)
348return (degrees * TVector.Create(T.Pi)) / TVector.Create(T.CreateTruncating(180)); 1690return (radians * TVector.Create(T.CreateTruncating(180))) / TVector.Create(T.Pi);
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
778/// <inheritdoc cref="IFloatingPointConstants{TSelf}.Pi" />