/dports/math/arb/arb-2.21.1/acb_modular/ |
H A D | theta_series.c | 15 _acb_modular_theta_series(acb_ptr theta1, acb_ptr theta2, acb_ptr theta3, acb_ptr theta4, in _acb_modular_theta_series() argument 36 if (theta2 != NULL) acb_set(theta2, t2); in _acb_modular_theta_series() 49 if (theta2 != NULL) _acb_poly_compose_series(theta2, t2, len, v, zlen, len, prec); in _acb_modular_theta_series() 60 acb_modular_theta_series(acb_poly_t theta1, acb_poly_t theta2, in acb_modular_theta_series() argument 67 if (theta2 != NULL) acb_poly_zero(theta2); in acb_modular_theta_series() 77 if (theta2 != NULL) acb_poly_fit_length(theta2, len); in acb_modular_theta_series() 86 theta2 ? theta2->coeffs : NULL, theta3 ? theta3->coeffs : NULL, in acb_modular_theta_series() 93 theta2 ? theta2->coeffs : NULL, theta3 ? theta3->coeffs : NULL, in acb_modular_theta_series() 98 if (theta2 != NULL) _acb_poly_set_length(theta2, len); in acb_modular_theta_series() 103 if (theta2 != NULL) _acb_poly_normalise(theta2); in acb_modular_theta_series()
|
H A D | theta_const_sum_basecase.c | 27 acb_set_ui(theta2, 2 * (N > 0)); in acb_modular_theta_const_sum_basecase() 55 acb_add(theta2, q2, q8, prec); in acb_modular_theta_const_sum_basecase() 57 acb_add(theta2, theta2, q16, prec); in acb_modular_theta_const_sum_basecase() 58 acb_mul(theta2, theta2, q4, prec); in acb_modular_theta_const_sum_basecase() 62 acb_mul(theta2, q2, q4, prec); in acb_modular_theta_const_sum_basecase() 64 acb_add(theta2, theta2, q2, prec); in acb_modular_theta_const_sum_basecase() 65 acb_add_ui(theta2, theta2, 1, prec); in acb_modular_theta_const_sum_basecase() 68 acb_add_ui(theta2, q2, 1, prec); in acb_modular_theta_const_sum_basecase() 70 acb_one(theta2); in acb_modular_theta_const_sum_basecase() 72 acb_mul_2exp_si(theta2, theta2, 1); in acb_modular_theta_const_sum_basecase() [all …]
|
H A D | theta_sum.c | 190 _acb_vec_zero(theta2, len); in acb_modular_theta_sum() 260 acb_add(theta2, theta2, qpow + k, prec); in acb_modular_theta_sum() 346 acb_add(theta2 + r, theta2 + r, term, prec); in acb_modular_theta_sum() 354 acb_mul_2exp_si(theta2, theta2, 1); in acb_modular_theta_sum() 365 _acb_vec_scalar_mul(theta2, theta2, len, w, prec); in acb_modular_theta_sum() 379 acb_add(theta2 + r, theta2 + r, (r % 2 == 0) ? tmp1 : tmp2, prec); in acb_modular_theta_sum() 405 acb_mul_onei(theta2 + r, theta2 + r); in acb_modular_theta_sum() 413 acb_neg(theta2 + r, theta2 + r); in acb_modular_theta_sum() 421 acb_mul_onei(theta2 + r, theta2 + r); in acb_modular_theta_sum() 425 acb_neg(theta2 + r, theta2 + r); in acb_modular_theta_sum() [all …]
|
/dports/science/simint/simint-v0.8/simint/ostei/ |
H A D | ostei_general.h | 27 SIMINT_DBLTYPE const * restrict theta2, 41 SIMINT_DBLTYPE const * restrict theta2, in ostei_general_vrr1_I() argument 45 theta1, theta2, output); in ostei_general_vrr1_I() 58 SIMINT_DBLTYPE const * restrict theta2, in ostei_general_vrr1_J() argument 62 theta1, theta2, output); in ostei_general_vrr1_J() 79 theta1, theta2, output); in ostei_general_vrr1_K() 96 theta1, theta2, output); in ostei_general_vrr1_L() 176 const double * theta2, 186 const double * theta2, 196 const double * theta2, [all …]
|
/dports/math/openturns/openturns-1.18/lib/src/Base/Algo/ |
H A D | FilonQuadrature.cxx | 94 const Scalar theta2 = theta * theta; in integrate() local 95 alpha = (2.0 / 45.0 + (-2.0 / 315.0 + 2.0 * theta2 / 4725.0) * theta2) * theta2 * theta; in integrate() 96 beta = 2.0 / 3.0 + (2.0 / 15.0 + (-4.0 / 105.0 + 2.0 * theta2 / 567.0) * theta2) * theta2; in integrate() 97 gamma = 4.0 / 3.0 + (-2.0 / 15.0 + (1.0 / 210.0 - theta2 / 11340.0) * theta2) * theta2; in integrate() 101 const Scalar theta2 = theta * theta; in integrate() local 102 … alpha = 1.0 / theta + sinTheta * cosTheta / theta2 - 2.0 * sinTheta * sinTheta / (theta2 * theta); in integrate() 103 …beta = 2.0 / theta2 + 2.0 * cosTheta * cosTheta / theta2 - 4.0 * cosTheta * sinTheta / (theta2 * t… in integrate() 104 gamma = 4.0 * sinTheta / (theta2 * theta) - 4.0 * cosTheta / theta2; in integrate()
|
/dports/science/pybrain/pybrain-0.3.3/pybrain/rl/environments/classic/ |
H A D | acrobot.py | 100 theta2 = x[1] 102 y_acrobot[2] = y_acrobot[1] - cos(theta2) 131 theta1, theta2, theta1_dot, theta2_dot = x 161 theta2 = theta2 + theta2_dot * self.delta_t 172 if theta2 < -pi: 173 theta2 += 2*pi 174 elif theta2 > pi: 175 theta2 -= 2*pi 177 xp = [theta1, theta2, theta1_dot, theta2_dot] 213 _, theta2, _, theta2_dot = self.state [all …]
|
/dports/math/stanmath/math-4.2.0/test/unit/math/rev/prob/ |
H A D | categorical2_test.cpp | 8 unsigned int n2, T_prob theta2, in expect_propto_categorical_log() argument 11 stan::math::categorical_log<false>(n2, theta2), in expect_propto_categorical_log() 13 stan::math::categorical_log<true>(n2, theta2), message); in expect_propto_categorical_log() 23 Matrix<var, Dynamic, 1> theta2(3, 1); in TEST() local 24 theta2 << 0.1, 0.2, 0.7; in TEST() 27 expect_propto_categorical_log(n, theta1, n, theta2, "var: theta"); in TEST() 30 expect_propto_categorical_log(n, theta1, n, theta2, "var: theta"); in TEST() 33 expect_propto_categorical_log(n, theta1, n, theta2, "var: theta"); in TEST()
|
H A D | multinomial_test.cpp | 10 std::vector<int>& ns2, T_prob theta2, in expect_propto_multinomial() argument 13 stan::math::multinomial_log<false>(ns2, theta2), in expect_propto_multinomial() 15 stan::math::multinomial_log<true>(ns2, theta2), message); in expect_propto_multinomial() 28 Matrix<var, Dynamic, 1> theta2(3, 1); in TEST() local 29 theta2 << 0.1, 0.2, 0.7; in TEST() 31 expect_propto_multinomial(ns, theta1, ns, theta2, "var: theta"); in TEST()
|
/dports/math/stanmath/math-4.2.0/test/unit/math/fwd/prob/ |
H A D | dirichlet_test.cpp | 23 Matrix<fvar<double>, Dynamic, 1> theta2(4, 1); in TEST() local 24 theta2 << 0.01, 0.01, 0.8, 0.18; in TEST() 28 theta2(i).d_ = 1.0; in TEST() 32 EXPECT_FLOAT_EQ(-43.40045, stan::math::dirichlet_log(theta2, alpha2).val_); in TEST() 33 EXPECT_FLOAT_EQ(2017.2858, stan::math::dirichlet_log(theta2, alpha2).d_); in TEST() 53 Matrix<fvar<fvar<double> >, Dynamic, 1> theta2(4, 1); in TEST() local 54 theta2 << 0.01, 0.01, 0.8, 0.18; in TEST() 58 theta2(i).d_ = 1.0; in TEST() 63 stan::math::dirichlet_log(theta2, alpha2).val_.val_); in TEST() 64 EXPECT_FLOAT_EQ(2017.2858, stan::math::dirichlet_log(theta2, alpha2).d_.val_); in TEST()
|
/dports/math/stan/stan-2.28.2/src/test/unit/io/ |
H A D | deserializer_free_test.cpp | 23 stan::io::serializer<double> serializer(theta2); in read_free_lb_test() 70 stan::io::serializer<double> serializer(theta2); in read_free_ub_test() 119 stan::io::serializer<double> serializer(theta2); in read_free_lub_test() 168 stan::io::serializer<double> serializer(theta2); in read_free_offset_multiplier_test() 217 stan::io::serializer<double> serializer(theta2); in read_free_unit_vector_test() 266 stan::io::serializer<double> serializer(theta2); in read_free_simplex_test() 311 stan::io::serializer<double> serializer(theta2); in read_free_ordered_test() 357 stan::io::serializer<double> serializer(theta2); in read_free_positive_ordered_test() 404 stan::io::serializer<double> serializer(theta2); in read_free_cholesky_factor_cov_test() 456 stan::io::serializer<double> serializer(theta2); in read_free_cholesky_factor_corr_test() [all …]
|
H A D | serializer_test.cpp | 308 stan::io::serializer<double> serializer(theta2); in write_free_lb_test() 344 stan::io::serializer<double> serializer(theta2); in write_free_ub_test() 382 stan::io::serializer<double> serializer(theta2); in write_free_lub_test() 420 stan::io::serializer<double> serializer(theta2); in write_free_offset_multiplier_test() 455 stan::io::serializer<double> serializer(theta2); in write_free_unit_vector_test() 493 stan::io::serializer<double> serializer(theta2); in write_free_simplex_test() 527 stan::io::serializer<double> serializer(theta2); in write_free_ordered_test() 563 stan::io::serializer<double> serializer(theta2); in write_free_positive_ordered_test() 600 stan::io::serializer<double> serializer(theta2); in write_free_cholesky_factor_cov_test() 641 stan::io::serializer<double> serializer(theta2); in write_free_cholesky_factor_corr_test() [all …]
|
/dports/math/stanmath/math-4.2.0/test/unit/math/mix/prob/ |
H A D | dirichlet_test.cpp | 58 Matrix<fvar<var>, Dynamic, 1> theta2(4, 1); in TEST() local 59 theta2 << 0.01, 0.01, 0.8, 0.18; in TEST() 63 theta2(i).d_ = 1.0; in TEST() 82 theta2 << 0.1, 0.8, 0.1; in TEST() 92 theta_vec[1] = theta2; in TEST() 102 result[1] = dirichlet_log(theta2, alpha2); in TEST() 111 result[1] = dirichlet_log(theta2, alpha1); in TEST() 150 theta2 << 0.01, 0.01, 0.8, 0.18; in TEST() 154 theta2(i).d_ = 1.0; in TEST() 173 theta2 << 0.1, 0.8, 0.1; in TEST() [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/libflac/src/test_streams/ |
H A D | main.c | 394 double theta1, theta2; in generate_sine8_1() local 400 for(i = 0, theta1 = theta2 = 0.0; i < samples; i++, theta1 += delta1, theta2 += delta2) { in generate_sine8_1() 421 double theta1, theta2; in generate_sine8_2() local 427 for(i = 0, theta1 = theta2 = 0.0; i < samples; i++, theta1 += delta1, theta2 += delta2) { in generate_sine8_2() 452 double theta1, theta2; in generate_sine16_1() local 479 double theta1, theta2; in generate_sine16_2() local 510 double theta1, theta2; in generate_sine24_1() local 537 double theta1, theta2; in generate_sine24_2() local 592 double theta1, theta2; in generate_raw() local 625 double theta1, theta2; in generate_aiff() local [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/libflac/src/test_streams/ |
H A D | main.c | 394 double theta1, theta2; in generate_sine8_1() local 400 for(i = 0, theta1 = theta2 = 0.0; i < samples; i++, theta1 += delta1, theta2 += delta2) { in generate_sine8_1() 421 double theta1, theta2; in generate_sine8_2() local 427 for(i = 0, theta1 = theta2 = 0.0; i < samples; i++, theta1 += delta1, theta2 += delta2) { in generate_sine8_2() 452 double theta1, theta2; in generate_sine16_1() local 479 double theta1, theta2; in generate_sine16_2() local 510 double theta1, theta2; in generate_sine24_1() local 537 double theta1, theta2; in generate_sine24_2() local 592 double theta1, theta2; in generate_raw() local 625 double theta1, theta2; in generate_aiff() local [all …]
|
/dports/misc/visp/visp-3.4.0/modules/tracker/mbt/src/edge/ |
H A D | vpMbtDistanceCylinder.cpp | 212 double rho2, theta2; in initMovingEdge() local 290 theta2 -= M_PI; in initMovingEdge() 293 theta2 += M_PI; in initMovingEdge() 297 theta2 = -theta2 - 3 * M_PI / 2.0; in initMovingEdge() 299 theta2 = M_PI / 2.0 - theta2; in initMovingEdge() 380 double rho2, theta2; in updateMovingEdge() local 448 theta2 -= M_PI; in updateMovingEdge() 451 theta2 += M_PI; in updateMovingEdge() 455 theta2 = -theta2 - 3 * M_PI / 2.0; in updateMovingEdge() 457 theta2 = M_PI / 2.0 - theta2; in updateMovingEdge() [all …]
|
/dports/games/libretro-yabause/yabause-ea5b118/yabause/src/libchdr/deps/flac-1.3.2/src/test_streams/ |
H A D | main.c | 411 double theta1, theta2; in generate_sine8_1() local 417 for(i = 0, theta1 = theta2 = 0.0; i < samples; i++, theta1 += delta1, theta2 += delta2) { in generate_sine8_1() 438 double theta1, theta2; in generate_sine8_2() local 469 double theta1, theta2; in generate_sine16_1() local 496 double theta1, theta2; in generate_sine16_2() local 527 double theta1, theta2; in generate_sine24_1() local 554 double theta1, theta2; in generate_sine24_2() local 609 double theta1, theta2; in generate_signed_raw() local 639 double theta1, theta2; in generate_unsigned_raw() local 672 double theta1, theta2; in generate_aiff() local [all …]
|
/dports/audio/flac/flac-1.3.4/src/test_streams/ |
H A D | main.c | 411 double theta1, theta2; in generate_sine8_1() local 417 for(i = 0, theta1 = theta2 = 0.0; i < samples; i++, theta1 += delta1, theta2 += delta2) { in generate_sine8_1() 438 double theta1, theta2; in generate_sine8_2() local 469 double theta1, theta2; in generate_sine16_1() local 496 double theta1, theta2; in generate_sine16_2() local 527 double theta1, theta2; in generate_sine24_1() local 554 double theta1, theta2; in generate_sine24_2() local 609 double theta1, theta2; in generate_signed_raw() local 639 double theta1, theta2; in generate_unsigned_raw() local 672 double theta1, theta2; in generate_aiff() local [all …]
|
/dports/audio/sdl2_mixer/SDL2_mixer-2.0.4/external/flac-1.3.2/src/test_streams/ |
H A D | main.c | 411 double theta1, theta2; 417 for(i = 0, theta1 = theta2 = 0.0; i < samples; i++, theta1 += delta1, theta2 += delta2) { 438 double theta1, theta2; 469 double theta1, theta2; 496 double theta1, theta2; 527 double theta1, theta2; 554 double theta1, theta2; 609 double theta1, theta2; 639 double theta1, theta2; 672 double theta1, theta2; [all …]
|
/dports/science/py-GPy/GPy-1.10.0/GPy/kern/src/todo/ |
H A D | odekern1.c | 3 double k_uu(t1,t2,theta1,theta2,sig1,sig2) in k_uu() argument 17 double k_yy(t1, t2, theta1,theta2,sig1,sig2) in k_yy() argument 24 kern = sig1*sig2 * ( exp(-theta1*dist)*(theta2-2*theta1+theta1*theta2*dist-theta1*theta1*dist) + in k_yy() 25 exp(-dist) ) / ((theta2-theta1)*(theta2-theta1)) in k_yy()
|
/dports/graphics/processing/processing-1.5.1/modes/android/examples/OpenGL/Planets/ |
H A D | Sphere.pde | 12 float theta1, theta2; 28 theta2 = (startLat + (row + 1) * latInc) * DEG_TO_RAD; 34 p1.x = cos(phi1) * cos(theta2); 35 p1.y = sin(theta2); 36 p1.z = sin(phi1) * cos(theta2); 38 p2.x = cos(phi2) * cos(theta2); 39 p2.y = sin(theta2); 40 p2.z = sin(phi2) * cos(theta2); 49 v = map(theta2, -HALF_PI, HALF_PI, 0, 1); 54 v = map(theta2, -HALF_PI, HALF_PI, 0, 1); [all …]
|
/dports/misc/openmvg/openMVG-2.0/src/openMVG/cameras/ |
H A D | Camera_Pinhole_Fisheye.hpp | 93 theta2 = theta * theta, in add_disto() local 94 theta3 = theta2 * theta, in add_disto() 95 theta4 = theta2 * theta2, in add_disto() 123 theta2 = theta * theta, in remove_disto() local 124 theta4 = theta2 * theta2, in remove_disto() 125 theta6 = theta4 * theta2, in remove_disto() 126 theta8 = theta6 * theta2; in remove_disto() 128 ( 1 + params_[0] * theta2 in remove_disto()
|
/dports/science/healpix/Healpix_3.50/src/idl/toolkit/ |
H A D | query_strip.pro | 35 ; query_strip, Nside, theta1, theta2, Listpix, Nlist, HELP=, NESTED=, INCLUSIVE= 38 ; theta1,theta2 = colatitude in Rad in [0,Pi] 39 ; if theta1<theta2 then returns pixels with 40 ; theta1<colat<theta2 41 ; if theta2<theta1 then returns 42 ; 0<= colatitude < theta2 or theta1 < colatitude < Pi 81 if (theta1 lt 0.d0 or theta1 gt !PI or theta2 lt 0.d0 or theta2 gt !PI) then begin 84 message,/info," current value = ", theta1, theta2 88 if (theta1 lt theta2) then begin 90 colrange = [ theta1, theta2 ] [all …]
|
/dports/math/paritwine/paritwine-0.1/src/ |
H A D | cmh.c | 41 mpc_t t [3], theta2 [10], h [4], I [4]; in pari_cmh_I2I4I6I10() local 54 pari_mpc_init2 (theta2 [i], p); in pari_cmh_I2I4I6I10() 61 eval_10theta2_naive (theta2, t); in pari_cmh_I2I4I6I10() 62 h4h10h12h16_from_th2 (h, theta2); in pari_cmh_I2I4I6I10() 125 mpc_t t [3], theta2 [10]; in pari_cmh_10theta2() local 138 pari_mpc_init2 (theta2 [i], p); in pari_cmh_10theta2() 141 eval_10theta2_naive (theta2, t); in pari_cmh_10theta2() 146 gel (res, i+1) = mpc_get_GEN (theta2 [i]); in pari_cmh_10theta2()
|
/dports/misc/visp/visp-3.4.0/modules/core/include/visp3/core/ |
H A D | vpPixelMeterConversion.h | 297 …double theta2 = theta*theta, theta4 = theta2*theta2, theta6 = theta4*theta2, theta8 = theta6*theta… in convertPointWithKannalaBrandtDistortion() local 298 …double k0_theta2 = k[0] * theta2, k1_theta4 = k[1] * theta4, k2_theta6 = k[2] * theta6, k3_theta8 … in convertPointWithKannalaBrandtDistortion() 353 …double theta2 = theta*theta, theta4 = theta2*theta2, theta6 = theta4*theta2, theta8 = theta6*theta… in convertPointWithKannalaBrandtDistortion() local 354 …double k0_theta2 = k[0] * theta2, k1_theta4 = k[1] * theta4, k2_theta6 = k[2] * theta6, k3_theta8 … in convertPointWithKannalaBrandtDistortion()
|
/dports/science/elmerfem/elmerfem-release-9.0/post/src/tk/ |
H A D | shapes.c | 264 float theta1, phi1, theta2, phi2, rings, sides; in tkWireTorus() local 274 theta2 = (float)(i + 1) * 2.0 * PI / rings; in tkWireTorus() 299 n1[0] = cos(theta2) * (cos(phi1)); in tkWireTorus() 300 n1[1] = -sin(theta2) * (cos(phi1)); in tkWireTorus() 303 n2[0] = cos(theta2) * (cos(phi2)); in tkWireTorus() 304 n2[1] = -sin(theta2) * (cos(phi2)); in tkWireTorus() 341 theta2 = (float)(i + 1) * 2.0 * PI / rings; in tkSolidTorus() 366 n1[0] = cos(theta2) * (cos(phi1)); in tkSolidTorus() 367 n1[1] = -sin(theta2) * (cos(phi1)); in tkSolidTorus() 370 n2[0] = cos(theta2) * (cos(phi2)); in tkSolidTorus() [all …]
|