/dports/graphics/gegl/gegl-0.4.34/operations/common-gpl3+/ |
H A D | lens-distortion.c | 68 #define SQR(x) ((x)*(x)) 109 lens.norm = 4.0 / (SQR (boundary.width) + SQR (boundary.height)); 133 radius_sq = SQR (off_x) + SQR (off_y); 137 radius_mult = radius_sq * lens->mult_sq + SQR (radius_sq) * lens->mult_qd; 417 src_buf = g_new0 (gfloat, SQR (MAX_WH) * 4); 418 dst_buf = g_new0 (gfloat, SQR (CHUNK_SIZE) * 4);
|
/dports/audio/aubio/aubio-0.4.9/src/spectral/ |
H A D | statistics.c | 134 desc->data[0] /= SQR (spread); in aubio_specdesc_kurtosis() 150 norm -= SQR( (spec->length) * (spec->length - 1.) / 2. ); in aubio_specdesc_slope() 191 cumsum += SQR (spec->norm[j]); in aubio_specdesc_rolloff() 199 rollsum += SQR (spec->norm[j]); in aubio_specdesc_rolloff()
|
/dports/audio/py-aubio/aubio-0.4.9/src/spectral/ |
H A D | statistics.c | 134 desc->data[0] /= SQR (spread); in aubio_specdesc_kurtosis() 150 norm -= SQR( (spec->length) * (spec->length - 1.) / 2. ); in aubio_specdesc_slope() 191 cumsum += SQR (spec->norm[j]); in aubio_specdesc_rolloff() 199 rollsum += SQR (spec->norm[j]); in aubio_specdesc_rolloff()
|
/dports/x11-wm/skippy-xd/skippy-xd-397216c/src/ |
H A D | focus.c | 52 #define SQR(x) pow(x, 2) macro 56 { return sqrt(SQR(d_x) + SQR(d_y)); }
|
/dports/games/iortcw/iortcw-1.51c/MP/code/renderer/ |
H A D | tr_sky.c | 828 #define SQR( a ) ( ( a ) * ( a ) ) macro 857 2 * sqrt( SQR( skyVec[2] ) * SQR( radiusWorld ) + in R_InitSkyTexCoords() 858 2 * SQR( skyVec[0] ) * radiusWorld * heightCloud + in R_InitSkyTexCoords() 859 SQR( skyVec[0] ) * SQR( heightCloud ) + in R_InitSkyTexCoords() 860 2 * SQR( skyVec[1] ) * radiusWorld * heightCloud + in R_InitSkyTexCoords() 861 SQR( skyVec[1] ) * SQR( heightCloud ) + in R_InitSkyTexCoords() 862 2 * SQR( skyVec[2] ) * radiusWorld * heightCloud + in R_InitSkyTexCoords() 863 SQR( skyVec[2] ) * SQR( heightCloud ) ) ); in R_InitSkyTexCoords()
|
/dports/games/iortcw/iortcw-1.51c/SP/code/renderer/ |
H A D | tr_sky.c | 825 #define SQR( a ) ( ( a ) * ( a ) ) macro 854 2 * sqrt( SQR( skyVec[2] ) * SQR( radiusWorld ) + in R_InitSkyTexCoords() 855 2 * SQR( skyVec[0] ) * radiusWorld * heightCloud + in R_InitSkyTexCoords() 856 SQR( skyVec[0] ) * SQR( heightCloud ) + in R_InitSkyTexCoords() 857 2 * SQR( skyVec[1] ) * radiusWorld * heightCloud + in R_InitSkyTexCoords() 858 SQR( skyVec[1] ) * SQR( heightCloud ) + in R_InitSkyTexCoords() 859 2 * SQR( skyVec[2] ) * radiusWorld * heightCloud + in R_InitSkyTexCoords() 860 SQR( skyVec[2] ) * SQR( heightCloud ) ) ); in R_InitSkyTexCoords()
|
/dports/science/afni/afni-AFNI_21.3.16/src/ |
H A D | thd_center.c | 166 … vsum = SQR(xx-xcm) + SQR(yy-ycm) + SQR(zz-zcm); /* use dist^2 here for a bit of speed*/ in THD_Icent() 299 … vsum += SQR(xx-xcm) + SQR(yy-ycm) + SQR(zz-zcm) ; /* use dist^2 here for a bit of speed*/ in THD_xyz_distance()
|
/dports/graphics/pfstools/pfstools-2.1.0/src/tmo/fattal02/ |
H A D | pde_fft.cpp | 54 #ifndef SQR 55 #define SQR(x) (x)*(x) macro 139 v[i]=-4.0*SQR(sin((double)i/(2*(n-1))*M_PI)); in get_lambda() 302 res += SQR( laplace-(*F)(x,y) ); in residual_pde() 367 var+= SQR( (*U)(i)-(*Uexact)(i)-mean ); in error_estim_pde_fft_d() 405 var+= SQR( (double) (*U)(i)-(*Uexact)(i)-mean ); in error_estim_pde_fft()
|
/dports/science/simbody/simbody-Simbody-3.7/SimTKmath/Integrators/src/CPodes/sundials/include/sundials/ |
H A D | sundials_math.h | 49 #ifndef SQR 50 #define SQR(A) ((A)*(A)) macro
|
/dports/astro/py-ephem/ephem-4.1.3/libastro/ |
H A D | satmoon.c | 190 #define SQR sqrt macro 288 VE = 2 * ATN(SQR((1 + EE) / (1 - EE)) * TAN(VE / 2)); in bruton_saturn() 290 VP = 2 * ATN(SQR((1 + EP) / (1 - EP)) * TAN(VP / 2)); in bruton_saturn() 299 DT = SQR((RE * RE) + (RP * RP) - (2 * RE * RP * COS(LE - LP))); in bruton_saturn() 302 II = ATN(II / SQR(1 - II * II)); /* ArcSIN and Law of Sines */ in bruton_saturn() 322 INC = ATN(SQR(1 - DOT1 * DOT1) / DOT1); /* ArcCOS */ in bruton_saturn() 333 INCI = ATN(SQR(1 - DOT2 * DOT2) / DOT2); /* ArcCOS */ in bruton_saturn() 345 GAM = -1 * ATN(TRIP / SQR(1 - TRIP * TRIP)); /* ArcSIN */ in bruton_saturn()
|
/dports/science/cantera/cantera-2.5.1-611-gc4d6ecc15/ext/sundials/examples/cvode/serial/ |
H A D | cvDiurnal_kry_bp.c | 51 #ifndef SQR 52 #define SQR(A) ((A)*(A)) macro 276 data->hdco = KH/SQR(data->dx); in InitUserData() 278 data->vdco = (ONE/SQR(data->dy))*KV0; in InitUserData() 297 cy = SQR(RCONST(0.1)*(y - YMID)); in SetInitialProfiles() 298 cy = ONE - cy + RCONST(0.5)*SQR(cy); in SetInitialProfiles() 301 cx = SQR(RCONST(0.1)*(x - XMID)); in SetInitialProfiles() 302 cx = ONE - cx + RCONST(0.5)*SQR(cx); in SetInitialProfiles()
|
/dports/science/cantera/cantera-2.5.1-611-gc4d6ecc15/ext/sundials/examples/cvodes/serial/ |
H A D | cvsDiurnal_kry_bp.c | 52 #ifndef SQR 53 #define SQR(A) ((A)*(A)) macro 277 data->hdco = KH/SQR(data->dx); in InitUserData() 279 data->vdco = (ONE/SQR(data->dy))*KV0; in InitUserData() 298 cy = SQR(RCONST(0.1)*(y - YMID)); in SetInitialProfiles() 299 cy = ONE - cy + RCONST(0.5)*SQR(cy); in SetInitialProfiles() 302 cx = SQR(RCONST(0.1)*(x - XMID)); in SetInitialProfiles() 303 cx = ONE - cx + RCONST(0.5)*SQR(cx); in SetInitialProfiles()
|
/dports/math/sundials/sundials-5.7.0/examples/cvode/serial/ |
H A D | cvDiurnal_kry_bp.c | 51 #ifndef SQR 52 #define SQR(A) ((A)*(A)) macro 276 data->hdco = KH/SQR(data->dx); in InitUserData() 278 data->vdco = (ONE/SQR(data->dy))*KV0; in InitUserData() 297 cy = SQR(RCONST(0.1)*(y - YMID)); in SetInitialProfiles() 298 cy = ONE - cy + RCONST(0.5)*SQR(cy); in SetInitialProfiles() 301 cx = SQR(RCONST(0.1)*(x - XMID)); in SetInitialProfiles() 302 cx = ONE - cx + RCONST(0.5)*SQR(cx); in SetInitialProfiles()
|
/dports/math/sundials/sundials-5.7.0/examples/cvodes/serial/ |
H A D | cvsDiurnal_kry_bp.c | 52 #ifndef SQR 53 #define SQR(A) ((A)*(A)) macro 277 data->hdco = KH/SQR(data->dx); in InitUserData() 279 data->vdco = (ONE/SQR(data->dy))*KV0; in InitUserData() 298 cy = SQR(RCONST(0.1)*(y - YMID)); in SetInitialProfiles() 299 cy = ONE - cy + RCONST(0.5)*SQR(cy); in SetInitialProfiles() 302 cx = SQR(RCONST(0.1)*(x - XMID)); in SetInitialProfiles() 303 cx = ONE - cx + RCONST(0.5)*SQR(cx); in SetInitialProfiles()
|
/dports/math/scilab/scilab-6.1.1/scilab/modules/scicos/src/scicos_sundials/include/sundials/ |
H A D | sundials_math.h | 49 #ifndef SQR 50 #define SQR(A) ((A)*(A)) macro
|
/dports/graphics/gimp-app/gimp-2.10.30/plug-ins/ifs-compose/ |
H A D | ifs-compose-utils.c | 125 naff->a11 = (SQR(xn) + SQR(yo)) / denom; in aff2_compute_stretch() 126 naff->a22 = (SQR(xo) + SQR(yn)) / denom; in aff2_compute_stretch() 409 mag2 = SQR (elem->v.target_color.r); in aff_element_compute_color_trans() 410 mag2 += SQR (elem->v.target_color.g); in aff_element_compute_color_trans() 411 mag2 += SQR (elem->v.target_color.b); in aff_element_compute_color_trans() 621 xtot += SQR (points_x[i] - xc) - SQR (points_y[i] - yc); in aff_element_compute_click_boundary() 845 brush = g_new (guchar, SQR (*brush_size)); in create_brush() 852 gdouble d = sqrt (SQR (i - *brush_offset) + in create_brush() 853 SQR (j - *brush_offset)); in create_brush() 863 d = sqrt (SQR (i - *brush_offset + ii * 0.1 - 0.45) + in create_brush() [all …]
|
/dports/science/lammps/lammps-stable_29Sep2021/src/REAXFF/ |
H A D | reaxff_bond_orders.cpp | 160 rr2 = 1.0 / SQR(nbr_pj->d); in BOp() 334 Cf1A_ij = 0.5 * f3 * (1.0 / SQR(u1_ij) + in BO() 335 1.0 / SQR(u1_ji)); in BO() 336 Cf1B_ij = -0.5 * ((u1_ij - f3) / SQR(u1_ij) + in BO() 337 (u1_ji - f3) / SQR(u1_ji)); in BO() 340 ((val_i+f2) / SQR(u1_ij)) * in BO() 344 ((val_j+f2) / SQR(u1_ji)) * in BO() 360 exp_f4 =exp(-(twbp->p_boc4 * SQR(bo_ij->BO) - in BO() 362 exp_f5 =exp(-(twbp->p_boc4 * SQR(bo_ij->BO) - in BO() 451 explp1 = exp(-p_lp1 * SQR(2.0 + workspace->vlpex[j])); in BO()
|
/dports/science/lammps/lammps-stable_29Sep2021/src/OPENMP/ |
H A D | reaxff_bond_orders_omp.cpp | 174 rr2 = 1.0 / SQR(nbr_pj->d); in BOp_OMP() 343 Cf1A_ij = 0.5 * f3 * (1.0 / SQR(u1_ij) + in BOOMP() 344 1.0 / SQR(u1_ji)); in BOOMP() 345 Cf1B_ij = -0.5 * ((u1_ij - f3) / SQR(u1_ij) + in BOOMP() 346 (u1_ji - f3) / SQR(u1_ji)); in BOOMP() 349 ((val_i+f2) / SQR(u1_ij)) * in BOOMP() 353 ((val_j+f2) / SQR(u1_ji)) * in BOOMP() 368 exp_f4 =exp(-(twbp->p_boc4 * SQR(bo_ij->BO) - in BOOMP() 370 exp_f5 =exp(-(twbp->p_boc4 * SQR(bo_ij->BO) - in BOOMP() 495 explp1 = exp(-p_lp1 * SQR(2.0 + workspace->vlpex[j])); in BOOMP()
|
/dports/graphics/photivo/photivo/Sources/ |
H A D | ptImage_Pyramid.cpp | 162 float noisevar_L = 4*SQR(25.0 * luma); in idirpyr() 163 float noisevar_ab = 2*SQR(100.0 * chroma); in idirpyr() 210 hpffluct[0]=SQR(hipass[0])+0.001; in idirpyr() 219 hpffluct[1]=SQR(hipass[1]*tonefactor)+0.001; in idirpyr() 220 hpffluct[2]=SQR(hipass[2]*tonefactor)+0.001; in idirpyr() 383 hpffluct[0]=SQR(hipass[0])+0.001; in idirpyr() 392 hpffluct[1]=SQR(hipass[1]*tonefactor)+0.001; in idirpyr() 393 hpffluct[2]=SQR(hipass[2]*tonefactor)+0.001; in idirpyr() 521 float noisevar_L = 4*SQR(noise_L); in dirpyrLab_denoise() 524 float noisevar_ab = SQR(noise_ab); in dirpyrLab_denoise()
|
/dports/audio/aubio/aubio-0.4.9/src/pitch/ |
H A D | pitchyinfft.c | 124 p->sqrmag->data[0] = SQR(fftout->data[0]); in aubio_pitchyinfft_do() 127 p->sqrmag->data[l] = SQR(fftout->data[l]) + SQR(fftout->data[length - l]); in aubio_pitchyinfft_do() 131 p->sqrmag->data[length / 2] = SQR(fftout->data[length / 2]); in aubio_pitchyinfft_do()
|
/dports/audio/py-aubio/aubio-0.4.9/src/pitch/ |
H A D | pitchyinfft.c | 124 p->sqrmag->data[0] = SQR(fftout->data[0]); in aubio_pitchyinfft_do() 127 p->sqrmag->data[l] = SQR(fftout->data[l]) + SQR(fftout->data[length - l]); in aubio_pitchyinfft_do() 131 p->sqrmag->data[length / 2] = SQR(fftout->data[length / 2]); in aubio_pitchyinfft_do()
|
/dports/science/libccp4/libccp4-6.5.1/ccp4/ |
H A D | ccp4_types.h | 56 #ifndef SQR 57 #define SQR(x) ((x)*(x)) macro
|
/dports/games/iortcw/iortcw-1.51c/MP/code/rend2/ |
H A D | tr_sky.c | 922 #define SQR( a ) ( ( a ) * ( a ) ) macro 951 2 * sqrt( SQR( skyVec[2] ) * SQR( radiusWorld ) + in R_InitSkyTexCoords() 952 2 * SQR( skyVec[0] ) * radiusWorld * heightCloud + in R_InitSkyTexCoords() 953 SQR( skyVec[0] ) * SQR( heightCloud ) + in R_InitSkyTexCoords() 954 2 * SQR( skyVec[1] ) * radiusWorld * heightCloud + in R_InitSkyTexCoords() 955 SQR( skyVec[1] ) * SQR( heightCloud ) + in R_InitSkyTexCoords() 956 2 * SQR( skyVec[2] ) * radiusWorld * heightCloud + in R_InitSkyTexCoords() 957 SQR( skyVec[2] ) * SQR( heightCloud ) ) ); in R_InitSkyTexCoords()
|
/dports/games/iortcw/iortcw-1.51c/SP/code/rend2/ |
H A D | tr_sky.c | 919 #define SQR( a ) ( ( a ) * ( a ) ) macro 948 2 * sqrt( SQR( skyVec[2] ) * SQR( radiusWorld ) + in R_InitSkyTexCoords() 949 2 * SQR( skyVec[0] ) * radiusWorld * heightCloud + in R_InitSkyTexCoords() 950 SQR( skyVec[0] ) * SQR( heightCloud ) + in R_InitSkyTexCoords() 951 2 * SQR( skyVec[1] ) * radiusWorld * heightCloud + in R_InitSkyTexCoords() 952 SQR( skyVec[1] ) * SQR( heightCloud ) + in R_InitSkyTexCoords() 953 2 * SQR( skyVec[2] ) * radiusWorld * heightCloud + in R_InitSkyTexCoords() 954 SQR( skyVec[2] ) * SQR( heightCloud ) ) ); in R_InitSkyTexCoords()
|
/dports/graphics/gimp-app/gimp-2.10.30/app/operations/ |
H A D | gimpoperationgradient.c | 573 r = sqrt (SQR (x) + SQR (y)); in gradient_calc_conical_sym_factor() 686 r = sqrt (SQR (x) + SQR (y)); in gradient_calc_radial_factor() 793 r = sqrt (SQR (x) + SQR (y)) / dist; in gradient_calc_spiral_factor() 1104 rbd.dist = sqrt (SQR (ex - sx) + SQR (ey - sy)); in gimp_operation_gradient_process() 1117 rbd.dist = sqrt (SQR (ex - sx) + SQR (ey - sy)); in gimp_operation_gradient_process() 1130 rbd.dist = sqrt (SQR (ex - sx) + SQR (ey - sy)); in gimp_operation_gradient_process()
|