3 implementations of Pi
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1209static decimal IFloatingPointConstants<decimal>.Pi => 3.1415926535897932384626433833m;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
800static double IFloatingPointConstants<double>.Pi => Pi;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
795static float IFloatingPointConstants<float>.Pi => Pi;
43 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)
50Vector128<T> xpi = x * Vector128.Create(T.Pi); 73Vector256<T> xpi = x * Vector256.Create(T.Pi); 96Vector512<T> xpi = x * Vector512.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (3)
50Vector128<T> xpi = x * Vector128.Create(T.Pi); 73Vector256<T> xpi = x * Vector256.Create(T.Pi); 96Vector512<T> xpi = x * Vector512.Create(T.Pi);
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1208/// <inheritdoc cref="IFloatingPointConstants{TSelf}.Pi" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
799/// <inheritdoc cref="IFloatingPointConstants{TSelf}.Pi" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1462/// <inheritdoc cref="IFloatingPointConstants{TSelf}.Pi" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
1081/// <inheritdoc cref="IFloatingPointConstants{TSelf}.Pi" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\ITrigonometricFunctions.cs (2)
124return (degrees * TSelf.Pi) / TSelf.CreateChecked(180); 135return (radians * TSelf.CreateChecked(180)) / TSelf.Pi;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (1)
42get => Create(T.Pi);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1070/// <inheritdoc cref="IFloatingPointConstants{TSelf}.Pi" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (2)
65/// <summary>Gets a new vector with all elements initialized to <see cref="IFloatingPointConstants{TSelf}.Pi" />.</summary> 70get => Create(T.Pi);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (1)
71get => Create(T.Pi);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (1)
71get => Create(T.Pi);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (1)
44get => Create(T.Pi);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
794/// <inheritdoc cref="IFloatingPointConstants{TSelf}.Pi" />
System.Runtime.Numerics (11)
System\Numerics\Complex.Generic.cs (11)
556im = T.IsInfinity(absB) ? T.Pi / T.CreateChecked(4) : 573im = T.IsInfinity(absB) ? T.Pi / T.CreateChecked(2) : T.NaN; 660u = T.Pi - u; 683re = T.IsInfinity(absY) ? T.Pi * T.CreateChecked(0.75) : T.IsNaN(absY) ? T.NaN : T.Pi; 688re = T.IsInfinity(absY) ? T.Pi / T.CreateChecked(4) : T.IsNaN(absY) ? T.NaN : T.Zero; 704re = T.Pi / T.CreateChecked(2); 709re = (x == T.Zero) ? T.Pi / T.CreateChecked(2) : T.NaN; 819im = T.IsNaN(absB) ? T.NaN : T.Pi / T.CreateChecked(2); 825im = T.IsInfinity(absB) ? T.Pi / T.CreateChecked(2) : T.NaN; 834im = T.Pi / T.CreateChecked(2);