/aosp_15_r20/libcore/luni/src/test/resources/ |
H A D | math_tests.csv | 3137 cos,0x1.c1a27ae836f13p-1,0x1.feb1f7920e248p-2 3138 cos,0x1.c1a27ae836f13p-1,-0x1.feb1f7920e248p-2 3139 cos,0x1.78daf01036d0dp-1,0x1.7cb7648526f99p-1 3140 cos,0x1.78daf01036d0dp-1,-0x1.7cb7648526f99p-1 3141 cos,0x1.ff8eb6a91ecbp-1,0x1.549ec0c0c5afap-5 3142 cos,0x1.ff8eb6a91ecbp-1,-0x1.549ec0c0c5afap-5 3143 cos,0x1.fed0476fc75cap-1,0x1.16e534ee3658p-4 3144 cos,0x1.fed0476fc75cap-1,-0x1.16e534ee3658p-4 3145 cos,0x1.f10fc61e2c78fp-1,0x1.efeef61d39ac2p-3 3146 cos,0x1.f10fc61e2c78fp-1,-0x1.efeef61d39ac2p-3 [all …]
|
H A D | math_important_numbers.csv | 142 cos,-0x1.d2cec9a554007p-1,0x1.5bf0a8b145769p1,2.718281828459045 143 cos,-0x1.d2cec9a554007p-1,-0x1.5bf0a8b145769p1,-2.718281828459045 144 cos,0x1.0p0,0x0.0p0,0.0 145 cos,0x1.0p0,-0x0.0p0,-0.0 146 cos,0x1.14a280fb5068cp-1,0x1.0p0,1.0 147 cos,0x1.14a280fb5068cp-1,-0x1.0p0,-1.0 148 cos,0x1.c1528065b7d5p-1,-0x1.0p-1,-0.5 149 cos,0x1.c1528065b7d5p-1,0x1.0p-1,0.5 150 cos,0x1.0p0,-0x1.921fb54442d18p2,-6.283185307179586 151 cos,0x1.ee8dd4748bf13p-1,-0x1.815e630c155e1p2,-6.021385919380436 [all …]
|
/aosp_15_r20/external/mesa3d/src/amd/vpelib/src/core/ |
H A D | color_cs.c | 240 /* COEF_1_1 = GrphCont * (LumaR + GrphSat * (Cos(GrphHue) * K1 +*/ in calculate_rgb_matrix_legacy() 242 /* (Cos(GrphHue) * K1 + Sin(GrphHue) * K2)*/ in calculate_rgb_matrix_legacy() 244 /* GrphSat * (Cos(GrphHue) * K1 + Sin(GrphHue) * K2 */ in calculate_rgb_matrix_legacy() 246 /* (LumaR + GrphSat * (Cos(GrphHue) * K1 + Sin(GrphHue) * K2))*/ in calculate_rgb_matrix_legacy() 248 /* GrphCont * (LumaR + GrphSat * (Cos(GrphHue) * K1 + Sin(GrphHue)**/ in calculate_rgb_matrix_legacy() 252 /* COEF_1_2 = GrphCont * (LumaG + GrphSat * (Cos(GrphHue) * K3 +*/ in calculate_rgb_matrix_legacy() 254 /* (Cos(GrphHue) * K3 + Sin(GrphHue) * K4)*/ in calculate_rgb_matrix_legacy() 256 /* GrphSat * (Cos(GrphHue) * K3 + Sin(GrphHue) * K4)*/ in calculate_rgb_matrix_legacy() 258 /* (LumaG + GrphSat * (Cos(GrphHue) * K3 + Sin(GrphHue) * K4))*/ in calculate_rgb_matrix_legacy() 260 /* GrphCont * (LumaG + GrphSat * (Cos(GrphHue) * K3 + Sin(GrphHue)**/ in calculate_rgb_matrix_legacy() [all …]
|
/aosp_15_r20/external/apache-commons-math/src/main/java/org/apache/commons/math3/geometry/euclidean/threed/ |
H A D | Rotation.java | 187 q0 = FastMath.cos (halfAngle); in Rotation() 632 // sin (theta), -cos (theta) sin (phi), cos (theta) cos (phi) in getAngles() 634 // cos (psi) cos (theta), -sin (psi) cos (theta), sin (theta) in getAngles() 650 // -sin (psi), cos (psi) cos (phi), cos (psi) sin (phi) in getAngles() 652 // cos (theta) cos (psi), -sin (psi), sin (theta) cos (psi) in getAngles() 668 // cos (phi) sin (theta), -sin (phi), cos (phi) cos (theta) in getAngles() 670 // sin (psi) cos (phi), cos (psi) cos (phi), -sin (phi) in getAngles() 686 // cos (psi) cos (theta), sin (psi), -cos (psi) sin (theta) in getAngles() 688 // sin (psi), cos (phi) cos (psi), -sin (phi) cos (psi) in getAngles() 704 // -cos (phi) sin (psi), cos (phi) cos (psi), sin (phi) in getAngles() [all …]
|
H A D | FieldRotation.java | 103 * rotation build from quaternion components { cos(-θ/2), 132 * rotation build from quaternion components { cos(-θ/2), 157 q0 = halfAngle.cos(); in FieldRotation() 625 // sin (theta), -cos (theta) sin (phi), cos (theta) cos (phi) in getAngles() 627 // cos (psi) cos (theta), -sin (psi) cos (theta), sin (theta) in getAngles() 641 // -sin (psi), cos (psi) cos (phi), cos (psi) sin (phi) in getAngles() 643 // cos (theta) cos (psi), -sin (psi), sin (theta) cos (psi) in getAngles() 657 // cos (phi) sin (theta), -sin (phi), cos (phi) cos (theta) in getAngles() 659 // sin (psi) cos (phi), cos (psi) cos (phi), -sin (phi) in getAngles() 673 // cos (psi) cos (theta), sin (psi), -cos (psi) sin (theta) in getAngles() [all …]
|
/aosp_15_r20/external/oboe/samples/RhythmGame/third_party/glm/gtx/ |
H A D | rotate_vector.inl | 36 T const Cos(cos(angle)); local 39 Result.x = v.x * Cos - v.y * Sin; 40 Result.y = v.x * Sin + v.y * Cos; 61 const T Cos = cos(radians(angle)); 63 return x * Cos + ((x * normal) * (T(1) - Cos)) * normal + cross(x, normal) * Sin; 85 T const Cos(cos(angle)); local 88 Result.y = v.y * Cos - v.z * Sin; 89 Result.z = v.y * Sin + v.z * Cos; 101 T const Cos(cos(angle)); local 104 Result.x = v.x * Cos + v.z * Sin; [all …]
|
/aosp_15_r20/hardware/google/gfxstream/third-party/glm/include/glm/gtx/ |
D | rotate_vector.inl | 36 T const Cos(cos(angle)); local 39 Result.x = v.x * Cos - v.y * Sin; 40 Result.y = v.x * Sin + v.y * Cos; 61 const T Cos = cos(radians(angle)); 63 return x * Cos + ((x * normal) * (T(1) - Cos)) * normal + cross(x, normal) * Sin; 85 T const Cos(cos(angle)); local 88 Result.y = v.y * Cos - v.z * Sin; 89 Result.z = v.y * Sin + v.z * Cos; 101 T const Cos(cos(angle)); local 104 Result.x = v.x * Cos + v.z * Sin; [all …]
|
/aosp_15_r20/external/apache-xml/test/tests/exslt/math/ |
H A D | math7.xsl | 7 <!-- Test math:cos() --> 25 Cos value of zero is: 26 <xsl:value-of select="math:cos($zero)"/><br/> 27 Cos value of nzero is: 28 <xsl:value-of select="math:cos($nzero)"/><br/> 29 Cos value of num1 is: 30 <xsl:value-of select="math:cos($num1)"/><br/> 31 Cos value of num2 is: 32 <xsl:value-of select="math:cos($num2)"/><br/> 33 Cos value of temp1 is: [all …]
|
/aosp_15_r20/external/protobuf/csharp/src/Google.Protobuf.Benchmarks/ |
H A D | WriteRawPrimitivesBenchmark.cs | 125 var cos = new CodedOutputStream(outputBuffer); in WriteRawVarint32_CodedOutputStream() 128 cos.WriteRawVarint32(values[i]); in WriteRawVarint32_CodedOutputStream() 130 cos.Flush(); in WriteRawVarint32_CodedOutputStream() 131 cos.CheckNoSpaceLeft(); in WriteRawVarint32_CodedOutputStream() 167 var cos = new CodedOutputStream(outputBuffer); in WriteRawVarint64_CodedOutputStream() 170 cos.WriteRawVarint64(values[i]); in WriteRawVarint64_CodedOutputStream() 172 cos.Flush(); in WriteRawVarint64_CodedOutputStream() 173 cos.CheckNoSpaceLeft(); in WriteRawVarint64_CodedOutputStream() 204 var cos = new CodedOutputStream(outputBuffer); in WriteFixed32_CodedOutputStream() 207 cos.WriteFixed32(12345); in WriteFixed32_CodedOutputStream() [all …]
|
/aosp_15_r20/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Benchmarks/ |
H A D | WriteRawPrimitivesBenchmark.cs | 125 var cos = new CodedOutputStream(outputBuffer); in WriteRawVarint32_CodedOutputStream() 128 cos.WriteRawVarint32(values[i]); in WriteRawVarint32_CodedOutputStream() 130 cos.Flush(); in WriteRawVarint32_CodedOutputStream() 131 cos.CheckNoSpaceLeft(); in WriteRawVarint32_CodedOutputStream() 167 var cos = new CodedOutputStream(outputBuffer); in WriteRawVarint64_CodedOutputStream() 170 cos.WriteRawVarint64(values[i]); in WriteRawVarint64_CodedOutputStream() 172 cos.Flush(); in WriteRawVarint64_CodedOutputStream() 173 cos.CheckNoSpaceLeft(); in WriteRawVarint64_CodedOutputStream() 204 var cos = new CodedOutputStream(outputBuffer); in WriteFixed32_CodedOutputStream() 207 cos.WriteFixed32(12345); in WriteFixed32_CodedOutputStream() [all …]
|
/aosp_15_r20/external/apache-commons-math/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/ |
H A D | Line.java | 72 private double cos; field in Line 111 * @param cos cosine of the angle 117 private Line(final double angle, final double cos, final double sin, in Line() argument 120 this.cos = cos; in Line() 155 cos = line.cos; in Line() 179 cos = 1.0; in reset() 184 cos = dx / d; in reset() 197 cos = FastMath.cos(this.angle); in reset() 199 originOffset = MathArrays.linearCombination(cos, p.getY(), -sin, p.getX()); in reset() 211 cos = -cos; in revertSelf() [all …]
|
/aosp_15_r20/external/llvm-libc/src/math/generic/ |
H A D | sincosf.cpp | 44 {0xbf70090b, 0, 1, 0}, // x = 0x1.33333p13, cos(x) = -0x1.e01216p-1 (RZ) 45 {0x3f4ea5d2, 1, 0, 0}, // x = 0x1.64a032p43, cos(x) = 0x1.9d4ba4p-1 (RZ) 46 {0x3f08aebe, 1, 0, 1}, // x = 0x1.4555p51, cos(x) = 0x1.115d7cp-1 (RZ) 47 {0x3f7f14bb, 1, 0, 0}, // x = 0x1.3170fp63, cos(x) = 0x1.fe2976p-1 (RZ) 48 {0x3f78142e, 1, 0, 1}, // x = 0x1.2b9622p67, cos(x) = 0x1.f0285cp-1 (RZ) 49 {0x3f08a21c, 1, 0, 0}, // x = 0x1.ddebdep120, cos(x) = 0x1.114438p-1 (RZ) 73 // cos((k + y + 64*i) * pi/32) = cos(x + i * 2pi) = cos(x). 92 // = sin(y*pi/32) * cos(k*pi/32) + cos(y*pi/32) * sin(k*pi/32) 93 // cos(x) = cos((k + y)*pi/32) 94 // = cos(y*pi/32) * cos(k*pi/32) - sin(y*pi/32) * sin(k*pi/32) [all …]
|
H A D | cosf.cpp | 1 //===-- Single-precision cos function -------------------------------------===// 28 // x = 0x1.64a032p43, cos(x) = 0x1.9d4ba4p-1 (RZ) 30 // x = 0x1.4555p51, cos(x) = 0x1.115d7cp-1 (RZ) 32 // x = 0x1.48a858p54, cos(x) = 0x1.f48148p-2 (RZ) 34 // x = 0x1.3170fp63, cos(x) = 0x1.fe2976p-1 (RZ) 36 // x = 0x1.2b9622p67, cos(x) = 0x1.f0285cp-1 (RZ) 38 // x = 0x1.ddebdep120, cos(x) = 0x1.114438p-1 (RZ) 63 // since cos((k + y + 64*i) * pi/32) = cos(x + i * 2pi) = cos(x). 81 // cos(x) = cos((k + y)*pi/32) 82 // = cos(y*pi/32) * cos(k*pi/32) - sin(y*pi/32) * sin(k*pi/32) [all …]
|
/aosp_15_r20/external/llvm-libc/test/src/math/ |
H A D | sincosf_test.cpp | 28 float sin, cos; in TEST_F() local 30 LIBC_NAMESPACE::sincosf(aNaN, &sin, &cos); in TEST_F() 31 EXPECT_FP_EQ(aNaN, cos); in TEST_F() 35 LIBC_NAMESPACE::sincosf(0.0f, &sin, &cos); in TEST_F() 36 EXPECT_FP_EQ(1.0f, cos); in TEST_F() 40 LIBC_NAMESPACE::sincosf(-0.0f, &sin, &cos); in TEST_F() 41 EXPECT_FP_EQ(1.0f, cos); in TEST_F() 45 LIBC_NAMESPACE::sincosf(inf, &sin, &cos); in TEST_F() 46 EXPECT_FP_EQ(aNaN, cos); in TEST_F() 50 LIBC_NAMESPACE::sincosf(neg_inf, &sin, &cos); in TEST_F() [all …]
|
/aosp_15_r20/external/apache-commons-math/src/main/java/org/apache/commons/math/geometry/ |
H A D | Rotation.java | 161 * rotation build from quaternion components { cos(-θ/2), 183 q0 = FastMath.cos (halfAngle); in Rotation() 617 // sin (theta), -cos (theta) sin (phi), cos (theta) cos (phi) in getAngles() 619 // cos (psi) cos (theta), -sin (psi) cos (theta), sin (theta) in getAngles() 635 // -sin (psi), cos (psi) cos (phi), cos (psi) sin (phi) in getAngles() 637 // cos (theta) cos (psi), -sin (psi), sin (theta) cos (psi) in getAngles() 653 // cos (phi) sin (theta), -sin (phi), cos (phi) cos (theta) in getAngles() 655 // sin (psi) cos (phi), cos (psi) cos (phi), -sin (phi) in getAngles() 671 // cos (psi) cos (theta), sin (psi), -cos (psi) sin (theta) in getAngles() 673 // sin (psi), cos (phi) cos (psi), -sin (phi) cos (psi) in getAngles() [all …]
|
/aosp_15_r20/cts/tests/location/location_gnss/src/android/location/cts/gnss/pseudorange/ |
H A D | SatellitePositionCalculator.java | 114 Math.cos(eccentricAnomalyRadians) - ephemerisProto.e); in calculateSatellitePositionAndVelocity() 121 * (1.0 - ephemerisProto.e * Math.cos(eccentricAnomalyRadians)); in calculateSatellitePositionAndVelocity() 125 * Math.cos(2.0 * argumentOfLatitudeRadians) + ephemerisProto.crs in calculateSatellitePositionAndVelocity() 129 * Math.cos(2.0 * argumentOfLatitudeRadians) + ephemerisProto.cus in calculateSatellitePositionAndVelocity() 133 * Math.cos(2.0 * argumentOfLatitudeRadians) + ephemerisProto.cis in calculateSatellitePositionAndVelocity() 145 double xPositionMeters = radiusOfSatelliteOrbitMeters * Math.cos(argumentOfLatitudeRadians); in calculateSatellitePositionAndVelocity() 156 double satPosXMeters = xPositionMeters * Math.cos(omegaKRadians) - yPositionMeters in calculateSatellitePositionAndVelocity() 157 * Math.cos(inclinationRadians) * Math.sin(omegaKRadians); in calculateSatellitePositionAndVelocity() 159 * Math.cos(inclinationRadians) * Math.cos(omegaKRadians); in calculateSatellitePositionAndVelocity() 175 meanAnomalyDotRadPerSec / (1.0 - ephemerisProto.e * Math.cos(eccentricAnomalyRadians)); in calculateSatellitePositionAndVelocity() [all …]
|
/aosp_15_r20/packages/modules/Bluetooth/system/embdrv/sbc/encoder/srce/ |
D | sbc_dct.c | 44 (0x00005a82) /* ((0x8000) * 0.7071) = cos(pi/4) \ 46 #define SBC_COS_PI_SUR_8 (0x00007641) /* ((0x8000) * 0.9239) = (cos(pi/8)) */ 47 #define SBC_COS_3PI_SUR_8 (0x000030fb) /* ((0x8000) * 0.3827) = (cos(3*pi/8)) */ 48 #define SBC_COS_PI_SUR_16 (0x00007d8a) /* ((0x8000) * 0.9808)) = (cos(pi/16)) */ 49 #define SBC_COS_3PI_SUR_16 (0x00006a6d) /* ((0x8000) * 0.8315)) = (cos(3*pi/16)) */ 50 #define SBC_COS_5PI_SUR_16 (0x0000471c) /* ((0x8000) * 0.5556)) = (cos(5*pi/16)) */ 51 #define SBC_COS_7PI_SUR_16 (0x000018f8) /* ((0x8000) * 0.1951)) = (cos(7*pi/16)) */ 54 #define SBC_COS_PI_SUR_4 (0x5A827999) /* ((0x80000000) * 0.707106781) = (cos(pi/4) ) */ 55 #define SBC_COS_PI_SUR_8 (0x7641AF3C) /* ((0x80000000) * 0.923879533) = (cos(pi/8) ) */ 56 #define SBC_COS_3PI_SUR_8 (0x30FBC54D) /* ((0x80000000) * 0.382683432) = (cos(3*pi/8) ) */ [all …]
|
/aosp_15_r20/external/llvm-libc/test/src/math/smoke/ |
H A D | cos_test.cpp | 1 //===-- Unittests for cos -------------------------------------------------===// 9 #include "src/math/cos.h" 18 EXPECT_FP_EQ_ALL_ROUNDING(aNaN, LIBC_NAMESPACE::cos(aNaN)); in TEST_F() 19 EXPECT_FP_EQ_ALL_ROUNDING(aNaN, LIBC_NAMESPACE::cos(inf)); in TEST_F() 20 EXPECT_FP_EQ_ALL_ROUNDING(aNaN, LIBC_NAMESPACE::cos(neg_inf)); in TEST_F() 21 EXPECT_FP_EQ_ALL_ROUNDING(1.0, LIBC_NAMESPACE::cos(zero)); in TEST_F() 22 EXPECT_FP_EQ_ALL_ROUNDING(1.0, LIBC_NAMESPACE::cos(neg_zero)); in TEST_F() 23 EXPECT_FP_EQ(1.0, LIBC_NAMESPACE::cos(0x1.0p-50)); in TEST_F() 24 EXPECT_FP_EQ(1.0, LIBC_NAMESPACE::cos(min_normal)); in TEST_F() 25 EXPECT_FP_EQ(1.0, LIBC_NAMESPACE::cos(min_denormal)); in TEST_F() [all …]
|
/aosp_15_r20/external/apache-commons-io/src/test/java/org/apache/commons/io/output/ |
H A D | CountingOutputStreamTest.java | 43 try (CountingOutputStream cos = new CountingOutputStream(baos)) { in testCounting() argument 46 cos.write(i); in testCounting() 49 assertEquals(cos.getCount(), 20, "CountingOutputStream.getCount()"); in testCounting() 55 cos.write(array); in testCounting() 57 assertEquals(cos.getCount(), 30, "CountingOutputStream.getCount()"); in testCounting() 62 cos.write(array, 5, 5); in testCounting() 64 assertEquals(cos.getCount(), 35, "CountingOutputStream.getCount()"); in testCounting() 66 final int count = cos.resetCount(); in testCounting() 70 cos.write(i); in testCounting() 73 assertEquals(cos.getCount(), 10, "CountingOutputStream.getCount()"); in testCounting() [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/math/ |
D | j1.go | 34 // j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x1)-q1(x)*sin(x1)) 35 // y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x1)+q1(x)*cos(x1)) 36 // where x1 = x-3*pi/4. It is better to compute sin(x1),cos(x1) 38 // cos(x1) = cos(x)cos(3pi/4)+sin(x)sin(3pi/4) 39 // = 1/sqrt(2) * (sin(x) - cos(x)) 40 // sin(x1) = sin(x)cos(3pi/4)-cos(x)sin(3pi/4) 41 // = -1/sqrt(2) * (sin(x) + cos(x)) 43 // sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) 65 // y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x1)+q1(x)*cos(x1)) 66 // where x1 = x-3*pi/4. It is better to compute sin(x1),cos(x1) [all …]
|
D | j0.go | 34 // j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x0)-q0(x)*sin(x0)) 35 // where x0 = x-pi/4. It is better to compute sin(x0),cos(x0) 37 // cos(x0) = cos(x)cos(pi/4)+sin(x)sin(pi/4) 38 // = 1/sqrt(2) * (cos(x) + sin(x)) 39 // sin(x0) = sin(x)cos(pi/4)-cos(x)sin(pi/4) 40 // = 1/sqrt(2) * (sin(x) - cos(x)) 42 // sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) 64 // y0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x0)+q0(x)*sin(x0)) 65 // where x0 = x-pi/4. It is better to compute sin(x0),cos(x0) 111 z := -Cos(x + x) [all …]
|
/aosp_15_r20/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | CipherOutputStream1Test.java | 74 CipherOutputStream cos = new CipherOutputStream(tos){}; in testCipherOutputStream() local 75 cos.write(data); in testCipherOutputStream() 76 cos.flush(); in testCipherOutputStream() 90 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher()); in testWrite1() local 92 cos.write(data[i]); in testWrite1() 94 cos.flush(); in testWrite1() 108 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher()); in testWrite2() local 109 cos.write(data); in testWrite2() 110 cos.flush(); in testWrite2() 117 cos.write(null); in testWrite2() [all …]
|
/aosp_15_r20/external/llvm/test/Transforms/InstCombine/ |
H A D | cos-1.ll | 1 ; Test that the cos library call simplifier works correctly. 8 declare double @cos(double) 10 ; Check cos(-x) -> cos(x); 15 %cos = call double @cos(double %neg) 16 ; NO-FLOAT-SHRINK: call double @cos(double %d) 17 ret double %cos 24 %cos = call double @cos(double %neg) 25 %conv2 = fptrunc double %cos to float 34 %cos = call double @cos(double %neg) 35 ; NO-FLOAT-SHRINK: call double @cos(double %conv1) [all …]
|
/aosp_15_r20/external/llvm/test/CodeGen/AMDGPU/ |
H A D | llvm.cos.ll | 9 ;EG: COS * T{{[0-9]+\.[XYZW], PV\.[XYZW]}} 10 ;EG-NOT: COS 15 %cos = call float @llvm.cos.f32(float %x) 16 store float %cos, float addrspace(1)* %out 21 ;EG: COS * T{{[0-9]+\.[XYZW], PV\.[XYZW]}} 22 ;EG: COS * T{{[0-9]+\.[XYZW], PV\.[XYZW]}} 23 ;EG: COS * T{{[0-9]+\.[XYZW], PV\.[XYZW]}} 24 ;EG: COS * T{{[0-9]+\.[XYZW], PV\.[XYZW]}} 25 ;EG-NOT: COS 33 %cos = call <4 x float> @llvm.cos.v4f32(<4 x float> %vx) [all …]
|
/aosp_15_r20/bionic/libm/upstream-freebsd/lib/msun/src/ |
H A D | e_j1.c | 21 * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x1)-q1(x)*sin(x1)) 22 * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x1)+q1(x)*cos(x1)) 23 * where x1 = x-3*pi/4. It is better to compute sin(x1),cos(x1) 25 * cos(x1) = cos(x)cos(3pi/4)+sin(x)sin(3pi/4) 26 * = 1/sqrt(2) * (sin(x) - cos(x)) 27 * sin(x1) = sin(x)cos(3pi/4)-cos(x)sin(3pi/4) 28 * = -1/sqrt(2) * (sin(x) + cos(x)) 30 * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) 52 * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x1)+q1(x)*cos(x1)) 53 * where x1 = x-3*pi/4. It is better to compute sin(x1),cos(x1) [all …]
|