3 implementations of Pi
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1238
static decimal IFloatingPointConstants<decimal>.
Pi
=> 3.1415926535897932384626433833m;
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
782
static double IFloatingPointConstants<double>.
Pi
=> Pi;
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
779
static float IFloatingPointConstants<float>.
Pi
=> Pi;
27 references to Pi
System.Numerics.Tensors (18)
System\Numerics\Tensors\netcore\TensorPrimitives.AcosPi.cs (3)
34
public static Vector128<T> Invoke(Vector128<T> x) => AcosOperator<T>.Invoke(x) / Vector128.Create(T.
Pi
);
35
public static Vector256<T> Invoke(Vector256<T> x) => AcosOperator<T>.Invoke(x) / Vector256.Create(T.
Pi
);
36
public static Vector512<T> Invoke(Vector512<T> x) => AcosOperator<T>.Invoke(x) / Vector512.Create(T.
Pi
);
System\Numerics\Tensors\netcore\TensorPrimitives.AsinPi.cs (3)
34
public static Vector128<T> Invoke(Vector128<T> x) => AsinOperator<T>.Invoke(x) / Vector128.Create(T.
Pi
);
35
public static Vector256<T> Invoke(Vector256<T> x) => AsinOperator<T>.Invoke(x) / Vector256.Create(T.
Pi
);
36
public static Vector512<T> Invoke(Vector512<T> x) => AsinOperator<T>.Invoke(x) / Vector512.Create(T.
Pi
);
System\Numerics\Tensors\netcore\TensorPrimitives.Atan2Pi.cs (3)
75
public static Vector128<T> Invoke(Vector128<T> y, Vector128<T> x) => Atan2Operator<T>.Invoke(y, x) / Vector128.Create(T.
Pi
);
76
public static Vector256<T> Invoke(Vector256<T> y, Vector256<T> x) => Atan2Operator<T>.Invoke(y, x) / Vector256.Create(T.
Pi
);
77
public 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)
34
public static Vector128<T> Invoke(Vector128<T> x) => AtanOperator<T>.Invoke(x) / Vector128.Create(T.
Pi
);
35
public static Vector256<T> Invoke(Vector256<T> x) => AtanOperator<T>.Invoke(x) / Vector256.Create(T.
Pi
);
36
public static Vector512<T> Invoke(Vector512<T> x) => AtanOperator<T>.Invoke(x) / Vector512.Create(T.
Pi
);
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (3)
43
Vector128<T> xpi = x * Vector128.Create(T.
Pi
);
66
Vector256<T> xpi = x * Vector256.Create(T.
Pi
);
89
Vector512<T> xpi = x * Vector512.Create(T.
Pi
);
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (3)
43
Vector128<T> xpi = x * Vector128.Create(T.
Pi
);
66
Vector256<T> xpi = x * Vector256.Create(T.
Pi
);
89
Vector512<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)
113
return (degrees * TSelf.
Pi
) / TSelf.CreateChecked(180);
124
return (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)
348
return (degrees * TVector.Create(T.
Pi
)) / TVector.Create(T.CreateTruncating(180));
1690
return (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
" />