42 references to Pi
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTests.SpecialTypes.cs (1)
181["double", "double.Pi", double.Pi, true],
System.Numerics.Tensors (6)
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (6)
270Vector128<double> dn = MultiplyAddEstimateOperator<double>.Invoke(uxMasked, Vector128.Create(2 / double.Pi), Vector128.Create(AlmHuge)); 276f = MultiplyAddEstimateOperator<double>.Invoke(dn, Vector128.Create(-double.Pi / 2), f); 317Vector256<double> dn = MultiplyAddEstimateOperator<double>.Invoke(uxMasked, Vector256.Create(2 / double.Pi), Vector256.Create(AlmHuge)); 323f = MultiplyAddEstimateOperator<double>.Invoke(dn, Vector256.Create(-double.Pi / 2), f); 364Vector512<double> dn = MultiplyAddEstimateOperator<double>.Invoke(uxMasked, Vector512.Create(2 / double.Pi), Vector512.Create(AlmHuge)); 370f = MultiplyAddEstimateOperator<double>.Invoke(dn, Vector512.Create(-double.Pi / 2), f);
System.Private.CoreLib (35)
src\libraries\System.Private.CoreLib\src\System\Double.cs (34)
782static double IFloatingPointConstants<double>.Pi => Pi; 811public static double Atan2Pi(double y, double x) => Atan2(y, x) / Pi; 1810return Acos(x) / Pi; 1820return Asin(x) / Pi; 1830return Atan(x) / Pi; 1865result = sign * CosForIntervalPiBy4(fractional * Pi, 0.0); 1876result = sign * SinForIntervalPiBy4((0.5 - fractional) * Pi, 0.0); 1885result = -sign * SinForIntervalPiBy4((fractional - 0.5) * Pi, 0.0); 1889result = -sign * CosForIntervalPiBy4((1.0 - fractional) * Pi, 0.0); 1894result = CosForIntervalPiBy4(x * Pi, 0.0); 1898double value = x * Pi; 1932return (degrees * Pi) / 180.0; 1941return (radians * 180.0) / Pi; 1983double value = fractional * Pi; 1998double value = (0.5 - fractional) * Pi; 2011double value = (fractional - 0.5) * Pi; 2018double value = (1.0 - fractional) * Pi; 2026double value = x * Pi; 2033double value = x * Pi; 2041sinPi = x * Pi; 2097result = sign * SinForIntervalPiBy4(fractional * Pi, 0.0); 2108result = sign * CosForIntervalPiBy4((0.5 - fractional) * Pi, 0.0); 2117result = sign * CosForIntervalPiBy4((fractional - 0.5) * Pi, 0.0); 2121result = sign * SinForIntervalPiBy4((1.0 - fractional) * Pi, 0.0); 2126result = SinForIntervalPiBy4(x * Pi, 0.0); 2130double value = x * Pi; 2135result = x * Pi; 2183result = sign * TanForIntervalPiBy4(fractional * Pi, 0.0, isReciprocal: false); 2194result = -sign * TanForIntervalPiBy4((0.5 - fractional) * Pi, 0.0, isReciprocal: true); 2203result = +sign * TanForIntervalPiBy4((fractional - 0.5) * Pi, 0.0, isReciprocal: true); 2207result = -sign * TanForIntervalPiBy4((1.0 - fractional) * Pi, 0.0, isReciprocal: false); 2212result = TanForIntervalPiBy4(x * Pi, 0.0, isReciprocal: false); 2216double value = x * Pi; 2221result = x * Pi;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1144public static NFloat Pi => new NFloat(NativeType.Pi);