Home
last modified time | relevance | path

Searched refs:cos (Results 1 - 25 of 350) sorted by relevance

12345678910>>...14

/third_party/jerryscript/tests/jerry/
H A Dmath-trig.js19 assert (isNaN (Math.cos (NaN)));
20 assert ((Math.cos (+0.0)) == 1.0);
21 assert ((Math.cos (-0.0)) == 1.0);
22 assert (isNaN (Math.cos (Infinity)));
23 assert (isNaN (Math.cos (-Infinity)));
25 assert (Math.cos (Math.PI) > -1.0 * mod_p);
26 assert (Math.cos (Math.PI) < -1.0 * mod_m);
28 assert (Math.cos (Math.PI / 2) > -delta);
29 assert (Math.cos (Math.PI / 2) < +delta);
30 assert (Math.cos (
[all...]
/third_party/musl/porting/liteos_a/kernel/src/math/
H A Dsincosf.c27 void sincosf(float x, float *sin, float *cos) in sincosf() argument
45 *cos = 1.0f; in sincosf()
49 *cos = __cosdf(x); in sincosf()
58 *cos = __sindf(x + s1pio2); in sincosf()
61 *cos = __sindf(s1pio2 - x); in sincosf()
67 *cos = -__cosdf(sign ? x + s2pio2 : x - s2pio2); in sincosf()
76 *cos = -__sindf(x + s3pio2); in sincosf()
79 *cos = __sindf(x - s3pio2); in sincosf()
84 *cos = __cosdf(sign ? x + s4pio2 : x - s4pio2); in sincosf()
90 *sin = *cos in sincosf()
[all...]
H A Dsincosl.c5 void sincosl(long double x, long double *sin, long double *cos) in sincosl() argument
10 *cos = cosd; in sincosl()
13 void sincosl(long double x, long double *sin, long double *cos) in sincosl() argument
21 *sin = *cos = x - x; in sincosl()
30 *cos = 1.0 + x; in sincosl()
34 *cos = __cosl(x, 0); in sincosl()
43 *cos = c; in sincosl()
47 *cos = -s; in sincosl()
51 *cos = -c; in sincosl()
56 *cos in sincosl()
[all...]
H A Dsincos.c16 void sincos(double x, double *sin, double *cos) in sincos() argument
32 *cos = 1.0; in sincos()
36 *cos = __cos(x, 0.0); in sincos()
42 *sin = *cos = x - x; in sincos()
53 *cos = c; in sincos()
57 *cos = -s; in sincos()
61 *cos = -c; in sincos()
66 *cos = s; in sincos()
H A Djn.c77 * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) in jn()
79 * Let s=sin(x), c=cos(x), in jn()
82 * n sin(xn)*sqt2 cos(xn)*sqt2 in jn()
90 case 0: temp = -cos(x)+sin(x); break; in jn()
91 case 1: temp = -cos(x)-sin(x); break; in jn()
92 case 2: temp = cos(x)-sin(x); break; in jn()
94 case 3: temp = cos(x)+sin(x); break; in jn()
246 * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) in yn()
248 * Let s=sin(x), c=cos(x), in yn()
251 * n sin(xn)*sqt2 cos(x in yn()
[all...]
/third_party/musl/src/math/
H A Dsincosf.c27 void sincosf(float x, float *sin, float *cos) in sincosf() argument
45 *cos = 1.0f; in sincosf()
49 *cos = __cosdf(x); in sincosf()
58 *cos = __sindf(x + s1pio2); in sincosf()
61 *cos = __sindf(s1pio2 - x); in sincosf()
67 *cos = -__cosdf(sign ? x + s2pio2 : x - s2pio2); in sincosf()
76 *cos = -__sindf(x + s3pio2); in sincosf()
79 *cos = __sindf(x - s3pio2); in sincosf()
84 *cos = __cosdf(sign ? x + s4pio2 : x - s4pio2); in sincosf()
90 *sin = *cos in sincosf()
[all...]
H A Dsincosl.c5 void sincosl(long double x, long double *sin, long double *cos) in sincosl() argument
10 *cos = cosd; in sincosl()
13 void sincosl(long double x, long double *sin, long double *cos) in sincosl() argument
21 *sin = *cos = x - x; in sincosl()
30 *cos = 1.0 + x; in sincosl()
34 *cos = __cosl(x, 0); in sincosl()
43 *cos = c; in sincosl()
47 *cos = -s; in sincosl()
51 *cos = -c; in sincosl()
56 *cos in sincosl()
[all...]
H A Dsincos.c16 void sincos(double x, double *sin, double *cos) in sincos() argument
32 *cos = 1.0; in sincos()
36 *cos = __cos(x, 0.0); in sincos()
42 *sin = *cos = x - x; in sincos()
53 *cos = c; in sincos()
57 *cos = -s; in sincos()
61 *cos = -c; in sincos()
66 *cos = s; in sincos()
H A Djn.c77 * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) in jn()
79 * Let s=sin(x), c=cos(x), in jn()
82 * n sin(xn)*sqt2 cos(xn)*sqt2 in jn()
90 case 0: temp = -cos(x)+sin(x); break; in jn()
91 case 1: temp = -cos(x)-sin(x); break; in jn()
92 case 2: temp = cos(x)-sin(x); break; in jn()
94 case 3: temp = cos(x)+sin(x); break; in jn()
246 * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) in yn()
248 * Let s=sin(x), c=cos(x), in yn()
251 * n sin(xn)*sqt2 cos(x in yn()
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf.Benchmarks/
H A DWriteRawPrimitivesBenchmark.cs125 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 in WriteFixed32_CodedOutputStream()
[all...]
H A DParseRawPrimitivesBenchmark.cs377 CodedOutputStream cos = new CodedOutputStream(ms); in CreateBufferWithRandomVarints()
380 cos.WriteUInt64(RandomUnsignedVarint(random, encodedSize, false)); in CreateBufferWithRandomVarints()
382 cos.Flush(); in CreateBufferWithRandomVarints()
395 CodedOutputStream cos = new CodedOutputStream(ms); in CreateBufferWithRandomFloats()
398 cos.WriteFloat((float)random.NextDouble()); in CreateBufferWithRandomFloats()
400 cos.Flush(); in CreateBufferWithRandomFloats()
408 CodedOutputStream cos = new CodedOutputStream(ms); in CreateBufferWithRandomDoubles()
411 cos.WriteDouble(random.NextDouble()); in CreateBufferWithRandomDoubles()
413 cos.Flush(); in CreateBufferWithRandomDoubles()
477 CodedOutputStream cos in CreateBufferWithStrings()
[all...]
/third_party/ffmpeg/libavfilter/
H A Dwindow_func.h79 lut[n] = .5*(1-cos(2*M_PI*n/(N-1))); in generate_window_func()
84 lut[n] = .54-.46*cos(2*M_PI*n/(N-1)); in generate_window_func()
89 lut[n] = .42659-.49656*cos(2*M_PI*n/(N-1))+.076849*cos(4*M_PI*n/(N-1)); in generate_window_func()
99 lut[n] = 1.-1.985844164102*cos( 2*M_PI*n/(N-1))+1.791176438506*cos( 4*M_PI*n/(N-1))- in generate_window_func()
100 1.282075284005*cos( 6*M_PI*n/(N-1))+0.667777530266*cos( 8*M_PI*n/(N-1))- in generate_window_func()
101 0.240160796576*cos(10*M_PI*n/(N-1))+0.056656381764*cos(1 in generate_window_func()
[all...]
H A Daf_aexciter.c105 a1 = -2 * cos(w0); in set_params()
107 b0 = (1 + cos(w0)) / 2; in set_params()
108 b1 = -(1 + cos(w0)); in set_params()
109 b2 = (1 + cos(w0)) / 2; in set_params()
120 a1 = -2 * cos(w0); in set_params()
122 b0 = (1 - cos(w0)) / 2; in set_params()
123 b1 = 1 - cos(w0); in set_params()
124 b2 = (1 - cos(w0)) / 2; in set_params()
/third_party/glfw/examples/
H A Dgears.c74 glVertex3f(r0 * (float) cos(angle), r0 * (float) sin(angle), width * 0.5f); in gear()
75 glVertex3f(r1 * (float) cos(angle), r1 * (float) sin(angle), width * 0.5f); in gear()
77 glVertex3f(r0 * (float) cos(angle), r0 * (float) sin(angle), width * 0.5f); in gear()
78 glVertex3f(r1 * (float) cos(angle + 3 * da), r1 * (float) sin(angle + 3 * da), width * 0.5f); in gear()
89 glVertex3f(r1 * (float) cos(angle), r1 * (float) sin(angle), width * 0.5f); in gear()
90 glVertex3f(r2 * (float) cos(angle + da), r2 * (float) sin(angle + da), width * 0.5f); in gear()
91 glVertex3f(r2 * (float) cos(angle + 2 * da), r2 * (float) sin(angle + 2 * da), width * 0.5f); in gear()
92 glVertex3f(r1 * (float) cos(angle + 3 * da), r1 * (float) sin(angle + 3 * da), width * 0.5f); in gear()
102 glVertex3f(r1 * (float) cos(angle), r1 * (float) sin(angle), -width * 0.5f); in gear()
103 glVertex3f(r0 * (float) cos(angl in gear()
[all...]
/third_party/jerryscript/tools/unit-tests/
H A Dgen-test-libm.c881 /* cos tests */ in main()
882 GEN_DBL_TEST (cos (0.0)); in main()
883 GEN_DBL_TEST (cos (-0.0)); in main()
884 GEN_DBL_TEST (cos (1.0)); in main()
885 GEN_DBL_TEST (cos (-1.0)); in main()
886 GEN_DBL_TEST (cos (INFINITY)); in main()
887 GEN_DBL_TEST (cos (-INFINITY)); in main()
888 GEN_DBL_TEST (cos (NAN)); in main()
889 GEN_DBL_TEST (cos (M_PI)); in main()
890 GEN_DBL_TEST (cos ( in main()
[all...]
/third_party/skia/gm/
H A Dstrokedlines.cpp41 SkScalar cos, sin; in draw_fins() local
45 cos = SkScalarCos(angle + (SK_ScalarPI/4)); in draw_fins()
47 cos *= kRadius / 2.0f; in draw_fins()
51 p.lineTo(offset.fX + cos, offset.fY + sin); in draw_fins()
56 cos = SkScalarCos(angle - (SK_ScalarPI/4)); in draw_fins()
58 cos *= kRadius / 2.0f; in draw_fins()
62 p.lineTo(offset.fX + cos, offset.fY + sin); in draw_fins()
71 SkScalar sin, cos, angle = 0.0f; in draw_snowflake() local
74 cos = SkScalarCos(angle); in draw_snowflake()
76 cos * in draw_snowflake()
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
H A DIssuesTest.cs100 var cos = new CodedOutputStream(ms); in CodedInputStream_LimitReachedRightAfterTag()
101 cos.WriteTag(11, WireFormat.WireType.Varint); in CodedInputStream_LimitReachedRightAfterTag()
102 Assert.AreEqual(1, cos.Position); in CodedInputStream_LimitReachedRightAfterTag()
103 cos.WriteString("some extra padding"); // ensure is currentLimit distinct from the end of the buffer. in CodedInputStream_LimitReachedRightAfterTag()
104 cos.Flush(); in CodedInputStream_LimitReachedRightAfterTag()
/third_party/ffmpeg/libavcodec/ppc/
H A Dfft_init.c64 vec_f cos,sin,cos0,sin0,cos1,sin1,re,im,r0,i0,r1,i1,a,b,c,d; in imdct_half_altivec() local
70 cos = vec_perm(cos0, cos1, vcprm(o0,o1,s##o2,s##o3)); /* { cos[k], cos[k+1], cos[-k-2], cos[-k-1] } */\ in imdct_half_altivec()
72 r##p = im*cos - re*sin;\ in imdct_half_altivec()
73 i##p = re*cos + im*sin; in imdct_half_altivec()
111 vec_f cos,sin,re,im,a,b,c,d; in imdct_half_altivec() local
115 cos in imdct_half_altivec()
[all...]
/third_party/musl/src/complex/
H A Dcsinh.c31 * = sinh(x) cos(y) + i cosh(x) sin(y).
60 return CMPLX(sinh(x) * cos(y), cosh(x) * sin(y)); in csinh()
66 return CMPLX(copysign(h, x) * cos(y), h * sin(y)); in csinh()
74 return CMPLX(h * cos(y), h * h * sin(y)); in csinh()
121 * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y) in csinh()
126 return CMPLX(x * cos(y), INFINITY * sin(y)); in csinh()
H A Dccosh.c31 * = cosh(x) cos(y) + i sinh(x) sin(y).
60 return CMPLX(cosh(x) * cos(y), sinh(x) * sin(y)); in ccosh()
66 return CMPLX(h * cos(y), copysign(h, x) * sin(y)); in ccosh()
74 return CMPLX(h * h * cos(y), h * sin(y)); in ccosh()
120 * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) in ccosh()
125 return CMPLX((x * x) * cos(y), x * sin(y)); in ccosh()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DCalendarAstronomer.java447 double cosE = Math.cos(obliq); in eclipticToEquatorial()
450 double cosL = Math.cos(eclipLong); in eclipticToEquatorial()
453 double cosB = Math.cos(eclipLat); in eclipticToEquatorial()
483 double cosH = Math.cos(H); in eclipticToHorizon()
485 double cosD = Math.cos(equatorial.declination); in eclipticToHorizon()
487 double cosL = Math.cos(fLatitude); in eclipticToHorizon()
778 // double psi = Math.acos(Math.sin(fLatitude) / Math.cos(dec));
781 // double delta_t = 240 * y / Math.cos(dec) / 3600; // hours
888 // double E = M + e*(180/PI) * Math.sin(M*DEG_RAD) * ( 1.0 + e*Math.cos(M*DEG_RAD) );
894 // /* r * cos(
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DCalendarAstronomer.java449 double cosE = Math.cos(obliq); in eclipticToEquatorial()
452 double cosL = Math.cos(eclipLong); in eclipticToEquatorial()
455 double cosB = Math.cos(eclipLat); in eclipticToEquatorial()
485 double cosH = Math.cos(H); in eclipticToHorizon()
487 double cosD = Math.cos(equatorial.declination); in eclipticToHorizon()
489 double cosL = Math.cos(fLatitude); in eclipticToHorizon()
780 // double psi = Math.acos(Math.sin(fLatitude) / Math.cos(dec));
783 // double delta_t = 240 * y / Math.cos(dec) / 3600; // hours
890 // double E = M + e*(180/PI) * Math.sin(M*DEG_RAD) * ( 1.0 + e*Math.cos(M*DEG_RAD) );
896 // /* r * cos(
[all...]
/third_party/skia/third_party/externals/freetype/src/tools/
H A Dtest_trig.c29 d2 = cos( i*SPI ); in test_cos()
35 printf( "FT_Cos[%3d] = %.7f cos[%3d] = %.7f\n", in test_cos()
110 c1 = l * cos(a); in test_atan2()
144 c1 = cos(a); in test_unit()
175 v.x = (FT_Fixed)( l * cos( i*SPI ) ); in test_length()
202 cra = cos( ra ); in test_rotate()
215 c1 = l * cos(a); in test_rotate()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DParseExceptionsTest.java222 CodedOutputStream cos = CodedOutputStream.newInstance(body); in messageBuilder_mergeDelimitedFrom_InputStream_malformed()
223 cos.writeRawVarint32(90); // Greater than bytes in stream in messageBuilder_mergeDelimitedFrom_InputStream_malformed()
224 cos.writeTag(DescriptorProto.ENUM_TYPE_FIELD_NUMBER, WireFormat.WIRETYPE_LENGTH_DELIMITED); in messageBuilder_mergeDelimitedFrom_InputStream_malformed()
225 cos.writeRawVarint32(98); // Nested message with size larger than parent in messageBuilder_mergeDelimitedFrom_InputStream_malformed()
226 cos.writeTag(1000, WireFormat.WIRETYPE_LENGTH_DELIMITED); in messageBuilder_mergeDelimitedFrom_InputStream_malformed()
227 cos.writeRawVarint32(100); // Unknown field with size larger than parent in messageBuilder_mergeDelimitedFrom_InputStream_malformed()
/third_party/ffmpeg/libavutil/
H A Dtx_template.c68 *tab++ = RESCALE(cos(i*freq)); \
109 TX_TAB(ff_tx_tab_53)[0] = RESCALE(cos(2 * M_PI / 12)); in ff_tx_init_tab_53()
110 TX_TAB(ff_tx_tab_53)[1] = RESCALE(cos(2 * M_PI / 12)); in ff_tx_init_tab_53()
111 TX_TAB(ff_tx_tab_53)[2] = RESCALE(cos(2 * M_PI / 6)); in ff_tx_init_tab_53()
112 TX_TAB(ff_tx_tab_53)[3] = RESCALE(cos(2 * M_PI / 6)); in ff_tx_init_tab_53()
113 TX_TAB(ff_tx_tab_53)[4] = RESCALE(cos(2 * M_PI / 5)); in ff_tx_init_tab_53()
115 TX_TAB(ff_tx_tab_53)[6] = RESCALE(cos(2 * M_PI / 10)); in ff_tx_init_tab_53()
121 TX_TAB(ff_tx_tab_7)[0] = RESCALE(cos(2 * M_PI / 7)); in ff_tx_init_tab_7()
124 TX_TAB(ff_tx_tab_7)[3] = RESCALE(cos(2 * M_PI / 28)); in ff_tx_init_tab_7()
125 TX_TAB(ff_tx_tab_7)[4] = RESCALE(cos( in ff_tx_init_tab_7()
498 ff_tx_fft_sr_combine(TXComplex *z, const TXSample *cos, int len) ff_tx_fft_sr_combine() argument
597 const TXSample cos = TX_TAB(ff_tx_tab_8)[1]; ff_tx_fft8_ns() local
614 const TXSample *cos = TX_TAB(ff_tx_tab_16); ff_tx_fft16_ns() local
[all...]

Completed in 13 milliseconds

12345678910>>...14