Home
last modified time | relevance | path

Searched refs:SQR (Results 26 – 50 of 1451) sorted by relevance

12345678910>>...59

/dports/graphics/p5-Geo-GDAL/gdal-3.3.3/frmts/msgn/
H A Dmsg_basic_types.cpp39 #ifndef SQR
40 #define SQR(x) ((x)*(x)) macro
138 #define SQR(x) ((x)*(x)) macro
144 double sd = sqrt(SQR(altitude*cos(x)*cos(y)) - (SQR(cos(y)) + 1.006803*SQR(sin(y)))*1737121856); in convert_pixel_to_geo()
145 double sn = (altitude*cos(x)*cos(y) - sd)/(SQR(cos(y)) + 1.006803*SQR(sin(y))); in convert_pixel_to_geo()
197 double xlen = sqrt(SQR(x1 - x2) + SQR(y1 - y2) + SQR(z1 - z2)); in compute_pixel_area_sqkm()
201 double ylen = sqrt(SQR(x1 - x2) + SQR(y1 - y2) + SQR(z1 - z2)); in compute_pixel_area_sqkm()
/dports/graphics/gdal/gdal-3.3.3/frmts/msgn/
H A Dmsg_basic_types.cpp39 #ifndef SQR
40 #define SQR(x) ((x)*(x)) macro
138 #define SQR(x) ((x)*(x)) macro
144 double sd = sqrt(SQR(altitude*cos(x)*cos(y)) - (SQR(cos(y)) + 1.006803*SQR(sin(y)))*1737121856); in convert_pixel_to_geo()
145 double sn = (altitude*cos(x)*cos(y) - sd)/(SQR(cos(y)) + 1.006803*SQR(sin(y))); in convert_pixel_to_geo()
197 double xlen = sqrt(SQR(x1 - x2) + SQR(y1 - y2) + SQR(z1 - z2)); in compute_pixel_area_sqkm()
201 double ylen = sqrt(SQR(x1 - x2) + SQR(y1 - y2) + SQR(z1 - z2)); in compute_pixel_area_sqkm()
/dports/graphics/py-gdal/gdal-3.3.3/frmts/msgn/
H A Dmsg_basic_types.cpp39 #ifndef SQR
40 #define SQR(x) ((x)*(x)) macro
138 #define SQR(x) ((x)*(x)) macro
144 double sd = sqrt(SQR(altitude*cos(x)*cos(y)) - (SQR(cos(y)) + 1.006803*SQR(sin(y)))*1737121856); in convert_pixel_to_geo()
145 double sn = (altitude*cos(x)*cos(y) - sd)/(SQR(cos(y)) + 1.006803*SQR(sin(y))); in convert_pixel_to_geo()
197 double xlen = sqrt(SQR(x1 - x2) + SQR(y1 - y2) + SQR(z1 - z2)); in compute_pixel_area_sqkm()
201 double ylen = sqrt(SQR(x1 - x2) + SQR(y1 - y2) + SQR(z1 - z2)); in compute_pixel_area_sqkm()
/dports/cad/meshlab/meshlab-Meshlab-2020.05/src/plugins_unsupported/external/tsai-30b3/
H A Decalmain.c121 distortion_factor = 1 + cc.kappa1 * (SQR (Xd) + SQR (Yd));
180 Ty_squared = 1 / (SQR (r4p) + SQR (r5p));
182 Ty_squared = 1 / (SQR (r1p) + SQR (r2p));
184 Ty_squared = 1 / (SQR (r2p) + SQR (r5p));
186 Ty_squared = 1 / (SQR (r1p) + SQR (r4p));
188 Sr = SQR (r1p) + SQR (r2p) + SQR (r4p) + SQR (r5p);
239 r3 = sqrt (1 - SQR (r1) - SQR (r2));
243 r6 = sqrt (1 - SQR (r4) - SQR (r5));
361 distortion_factor = 1 + cc.kappa1 * (SQR (Xd) + SQR (Yd));
415 Ty_squared = 1 / (SQR (U[4]) + SQR (U[5]) + SQR (U[6]));
[all …]
/dports/graphics/libQGLViewer/libQGLViewer-2.7.2/examples/contribs/terrain/
H A Dwater.h33 #define SQR(number) (number * number) macro
39 Vec vertArray[SQR(WATER_RESOLUTION)]; // champ de vertex
40 Vec normalArray[SQR(WATER_RESOLUTION)]; // champ des normales de vertex
41 float forceArray[SQR(
43 float velArray[SQR(WATER_RESOLUTION)]; // champ de vitesses des vagues
44 int polyIndexArray[SQR((WATER_RESOLUTION - 1)) *
/dports/science/libgeodecomp/libgeodecomp-0.4.0/src/testbed/performancetests/
H A Dcudatests.cu151 #define SQR(X) ((X)*(X)) in updateLBMClassic() macro
194 omega_w2*( dir_indep_trm - ( velX-velY ) + 1.5*SQR( velX-velY ) ); in updateLBMClassic()
196 omega_w2*( dir_indep_trm + ( velX-velY ) + 1.5*SQR( velX-velY ) ); in updateLBMClassic()
198 omega_w2*( dir_indep_trm + ( velX+velY ) + 1.5*SQR( velX+velY ) ); in updateLBMClassic()
200 omega_w2*( dir_indep_trm - ( velX+velY ) + 1.5*SQR( velX+velY ) ); in updateLBMClassic()
212 … SET_COMP(N)=omega_trm * GET_COMP(x,y-1,z,N) + omega_w1*( dir_indep_trm + velY + 1.5*SQR(velY)); in updateLBMClassic()
320 #define SQR(X) ((X)*(X)) in benchmarkLBMSoA() macro
366 omega_w2*( dir_indep_trm - ( velX-velY ) + 1.5*SQR( velX-velY ) ); in benchmarkLBMSoA()
368 omega_w2*( dir_indep_trm + ( velX-velY ) + 1.5*SQR( velX-velY ) ); in benchmarkLBMSoA()
370 omega_w2*( dir_indep_trm + ( velX+velY ) + 1.5*SQR( velX+velY ) ); in benchmarkLBMSoA()
[all …]
/dports/audio/boops-lv2/BOops-1.8.2/src/
H A DFxDistortion.hpp32 #ifndef SQR
33 #define SQR(x) ((x) * (x)) macro
76 l = SGN (l) * level * sqrt (SQR (l) / (1.0 + SQR (l))); in process()
77 r = SGN (r) * level * sqrt (SQR (r) / (1.0 + SQR (r))); in process()
92 SGN (l) * level * (3.0 - SQR (2.0 - 3.0 * fabs (l))) / 3.0 : in process()
103 SGN (r) * level * (3.0 - SQR (2.0 - 3.0 * fabs (r))) / 3.0 : in process()
/dports/lang/tcbasic/tcbasic-2.2.0/
H A Dfunctions.bas1 10 REM Test each function: SIN, COS, TAN, COT, ATN, EXP, LOG, ABS, SQR,
59 900 REM SQR
60 910 LET A = SQR(4)
61 920 LET B = SQR(2)
62 930 LET C = SQR(4.0)
63 940 LET D = SQR(2.0)
/dports/graphics/art/ART-1.9.3/rtengine/
H A Dhphd_demosaic_RT.cc79SQR(temp[j - 4][h] - avgL) + SQR(temp[j - 3][h] - avgL)) + (SQR(temp[j - 2][h] - avgL) + SQR(temp[… in hphd_vertical()
105SQR(temp[j - 4][0] - avgL) + SQR(temp[j - 3][0] - avgL) + SQR(temp[j - 2][0] - avgL) + SQR(temp[j … in hphd_vertical()
148SQR(temp[j - 4] - avgL) + SQR(temp[j - 3] - avgL)) + (SQR(temp[j - 2] - avgL) + SQR(temp[j - 1] - … in hphd_horizontal()
/dports/graphics/rawtherapee/rawtherapee-5.8/rtengine/
H A Dhphd_demosaic_RT.cc79SQR(temp[j - 4][h] - avgL) + SQR(temp[j - 3][h] - avgL)) + (SQR(temp[j - 2][h] - avgL) + SQR(temp[… in hphd_vertical()
105SQR(temp[j - 4][0] - avgL) + SQR(temp[j - 3][0] - avgL) + SQR(temp[j - 2][0] - avgL) + SQR(temp[j … in hphd_vertical()
148SQR(temp[j - 4] - avgL) + SQR(temp[j - 3] - avgL)) + (SQR(temp[j - 2] - avgL) + SQR(temp[j - 1] - … in hphd_horizontal()
/dports/graphics/gimp-app/gimp-2.10.30/app/display/
H A Dgimpdisplayshell-rulers.c99 resolution_x = 1.0 / sqrt (SQR (cos_a / res_x) + in gimp_display_shell_rulers_update()
100 SQR (sin_a / res_y)); in gimp_display_shell_rulers_update()
101 resolution_y = 1.0 / sqrt (SQR (cos_a / res_y) + in gimp_display_shell_rulers_update()
102 SQR (sin_a / res_x)); in gimp_display_shell_rulers_update()
106 resolution_x = sqrt (SQR (res_x * cos_a) + SQR (res_y * sin_a)); in gimp_display_shell_rulers_update()
107 resolution_y = sqrt (SQR (res_y * cos_a) + SQR (res_x * sin_a)); in gimp_display_shell_rulers_update()
/dports/math/alberta/alberta3-920315ae1bbfd1b1fb6672d916619ac37a411e95/add_ons/libalbas/src/
H A Dbulk_trace_tensor_bubbles.c146 return WEIGHT_2D*SQR(lambda[1])*lambda[2]; in bttb_P1_phi_0_w0_2d()
151 return WEIGHT_2D*lambda[1]*SQR(lambda[2]); in bttb_P1_phi_1_w0_2d()
156 return WEIGHT_2D*lambda[0]*SQR(lambda[2]); in bttb_P1_phi_0_w1_2d()
161 return WEIGHT_2D*SQR(lambda[0])*lambda[2]; in bttb_P1_phi_1_w1_2d()
166 return WEIGHT_2D*SQR(lambda[0])*lambda[1]; in bttb_P1_phi_0_w2_2d()
184 grd[2] = WEIGHT_2D*SQR(lambda[1]); in bttb_P1_grd_phi_0_w0_2d()
194 grd[1] = WEIGHT_2D*SQR(lambda[2]); in bttb_P1_grd_phi_1_w0_2d()
206 grd[0] = WEIGHT_2D*SQR(lambda[2]); in bttb_P1_grd_phi_0_w1_2d()
217 grd[2] = WEIGHT_2D*SQR(lambda[0]); in bttb_P1_grd_phi_1_w1_2d()
228 grd[1] = WEIGHT_2D*SQR(lambda[0]); in bttb_P1_grd_phi_0_w2_2d()
[all …]
H A Dtensor_wall_bubbles.c133 return WEIGHT_2D*SQR(lambda[1])*lambda[2]; in twb_P1_phi_0_w0_2d()
138 return WEIGHT_2D*lambda[1]*SQR(lambda[2]); in twb_P1_phi_1_w0_2d()
143 return WEIGHT_2D*lambda[0]*SQR(lambda[2]); in twb_P1_phi_0_w1_2d()
148 return WEIGHT_2D*SQR(lambda[0])*lambda[2]; in twb_P1_phi_1_w1_2d()
153 return WEIGHT_2D*SQR(lambda[0])*lambda[1]; in twb_P1_phi_0_w2_2d()
171 grd[2] = WEIGHT_2D*SQR(lambda[1]); in twb_P1_grd_phi_0_w0_2d()
181 grd[1] = WEIGHT_2D*SQR(lambda[2]); in twb_P1_grd_phi_1_w0_2d()
193 grd[0] = WEIGHT_2D*SQR(lambda[2]); in twb_P1_grd_phi_0_w1_2d()
204 grd[2] = WEIGHT_2D*SQR(lambda[0]); in twb_P1_grd_phi_1_w1_2d()
215 grd[1] = WEIGHT_2D*SQR(lambda[0]); in twb_P1_grd_phi_0_w2_2d()
[all …]
/dports/math/sisl/SISL-SISL-4.6.0-44-g9114631/examples/viewer/src/
H A Dmouse.cpp122 sqrt((double)(SQR(x-last_xx)+SQR(y-last_yy)))/ in transversal_rotation()
123 sqrt((double)(SQR(x-(viewp[0]+viewp[2])*0.5)+ in transversal_rotation()
124 SQR(y-(viewp[1]+viewp[3])*0.5)))) > in transversal_rotation()
128 0.2*sqrt((double)SQR(viewp[2]-viewp[0])+SQR(viewp[3]-viewp[1]))) || in transversal_rotation()
182 s*sqrt((double)(SQR(x-last_x)+SQR(y-last_y)))*sensitiveness); in MouseRotate()
374 zrot=(s*(int)(sqrt((double)(SQR(y-last_y0)+SQR(x-last_x0))))* in Mouse()
/dports/astro/py-ephem/ephem-4.1.3/libastro/
H A Dearthsat.c94 #define SQR(x) ((x)*(x)) macro
518 r = sqrt(SQR(SatX) + SQR(SatY) + SQR(SatZ)); in GetSubSatPoint()
530 *Latitude = atan(SatZ/sqrt(SQR(SatX) + SQR(SatY))); in GetSubSatPoint()
535 *Height = r - EarthRadius*(sqrt(1-(2*EarthFlat-SQR(EarthFlat))*SQR(sin(*Latitude)))); in GetSubSatPoint()
548 / SQR(1-SQR(Eccentricity)) * RadiansPerDegree; in GetPrecession()
552 / SQR(1-SQR(Eccentricity)) * RadiansPerDegree; in GetPrecession()
643 G1 = EarthRadius/(sqrt(1-(2*EarthFlat-SQR(EarthFlat))*SQR(SinLat))); in GetSitPosition()
644 G2 = G1*SQR(1-EarthFlat); in GetSitPosition()
682 *Range = sqrt(SQR(DX)+SQR(DY)+SQR(DZ)); in GetRange()
717 *Elevation = atan(z/sqrt(SQR(x) + SQR(y))); in GetBearings()
[all …]
/dports/math/alberta/alberta3-920315ae1bbfd1b1fb6672d916619ac37a411e95/alberta/src/Common/
H A Dgauss-quad.c154 t[n-1] = solve(endpts[0], n, &t[0], &b[0]) * SQR(b[n-2]) + endpts[0]; in _AI_gauss_quad()
189 w[i] = muzero * SQR(w[i]); in _AI_gauss_quad()
223 alpha = a[i] - shift - SQR(b[i-1]) / alpha; in solve()
274 b[i] = abi / sqrt(4.0 * SQR(abi) - 1.0); in classical()
346 b[0] = sqrt(4.0*(1.0+alpha)*(1.0+beta) / ((abi + 1.0) * SQR(abi))); in classical()
348 a2b2 = SQR(beta) - SQR(alpha); in classical()
361 ((SQR(abi) - 1.0) * SQR(abi))); in classical()
465 if (fabs(e[m]) <= SQR(REAL_EPSILON) * (fabs(d[m]) + fabs(d[m + 1]))) { in gaussq2()
488 r = sqrt(SQR(g) + 1.0); in gaussq2()
511 r = sqrt(SQR(s) + 1.0); in gaussq2()
[all …]
/dports/science/libgeodecomp/libgeodecomp-0.4.0/src/examples/latticeboltzmann/
H A Dmain.cpp96 #define SQR(X) ((X)*(X)) in updateFluid() macro
143 omega_w2*( dir_indep_trm - ( velX-velY ) + 1.5*SQR( velX-velY ) ); in updateFluid()
145 omega_w2*( dir_indep_trm + ( velX-velY ) + 1.5*SQR( velX-velY ) ); in updateFluid()
147 omega_w2*( dir_indep_trm + ( velX+velY ) + 1.5*SQR( velX+velY ) ); in updateFluid()
149 omega_w2*( dir_indep_trm - ( velX+velY ) + 1.5*SQR( velX+velY ) ); in updateFluid()
161 comp[N]=omega_trm * GET_COMP(x,y-1,z,N) + omega_w1*( dir_indep_trm + velY + 1.5*SQR(velY)); in updateFluid()
162 comp[S]=omega_trm * GET_COMP(x,y+1,z,S) + omega_w1*( dir_indep_trm - velY + 1.5*SQR(velY)); in updateFluid()
163 comp[E]=omega_trm * GET_COMP(x-1,y,z,E) + omega_w1*( dir_indep_trm + velX + 1.5*SQR(velX)); in updateFluid()
164 comp[W]=omega_trm * GET_COMP(x+1,y,z,W) + omega_w1*( dir_indep_trm - velX + 1.5*SQR(velX)); in updateFluid()
165 comp[T]=omega_trm * GET_COMP(x,y,z-1,T) + omega_w1*( dir_indep_trm + velZ + 1.5*SQR(velZ)); in updateFluid()
[all …]
/dports/astro/nightfall/nightfall-1.92/
H A DLightGeometry.c206 + (12.0/5.0)*SQR(BinPtr->Mq)*RadPower in DefineParam()
211 + (15.0/7.0)*SQR(BinPtr->Mq)*RadPower; in DefineParam()
220 + (18.0/9.0)*SQR(BinPtr->Mq)*RadPower; in DefineParam()
387 + SQR(BinPtrS->RLag2) in DefineParamOver()
404 + SQR(BinPtrS->RLag2) in DefineParamOver()
419 + SQR(BinPtrP->RXCrit)*(BinPtrP->Mq+1.0)/2.0; in DefineParamOver()
427 + SQR(BinPtrS->RXCrit)*(BinPtrS->Mq+1.0)/2.0; in DefineParamOver()
448 + BinPtrP->Mq/sqrt(1 + SQR(BinPtrP->Radius)); in DefineParamOver()
471 + BinPtrP->Mq/sqrt(1 + SQR(BinPtrP->Radius)); in DefineParamOver()
493 + BinPtrS->Mq/sqrt(1 + SQR(BinPtrS->Radius)); in DefineParamOver()
[all …]
/dports/graphics/librtprocess/librtprocess-0.11.0/src/demosaic/
H A Dhphd.cc81SQR(temp[j - 4][h] - avgL) + SQR(temp[j - 3][h] - avgL)) + (SQR(temp[j - 2][h] - avgL) + SQR(temp[… in hphd_vertical()
107SQR(temp[j - 4][0] - avgL) + SQR(temp[j - 3][0] - avgL) + SQR(temp[j - 2][0] - avgL) + SQR(temp[j … in hphd_vertical()
153SQR(temp[j - 4] - avgL) + SQR(temp[j - 3] - avgL)) + (SQR(temp[j - 2] - avgL) + SQR(temp[j - 1] - … in hphd_horizontal()
/dports/astro/siril/siril/subprojects/librtprocess/src/demosaic/
H A Dhphd.cc81SQR(temp[j - 4][h] - avgL) + SQR(temp[j - 3][h] - avgL)) + (SQR(temp[j - 2][h] - avgL) + SQR(temp[… in hphd_vertical()
107SQR(temp[j - 4][0] - avgL) + SQR(temp[j - 3][0] - avgL) + SQR(temp[j - 2][0] - avgL) + SQR(temp[j … in hphd_vertical()
153SQR(temp[j - 4] - avgL) + SQR(temp[j - 3] - avgL)) + (SQR(temp[j - 2] - avgL) + SQR(temp[j - 1] - … in hphd_horizontal()
/dports/graphics/photoflow/PhotoFlow-8472024f/src/external/librtprocess/src/demosaic/
H A Dhphd.cc81SQR(temp[j - 4][h] - avgL) + SQR(temp[j - 3][h] - avgL)) + (SQR(temp[j - 2][h] - avgL) + SQR(temp[… in hphd_vertical()
107SQR(temp[j - 4][0] - avgL) + SQR(temp[j - 3][0] - avgL) + SQR(temp[j - 2][0] - avgL) + SQR(temp[j … in hphd_vertical()
153SQR(temp[j - 4] - avgL) + SQR(temp[j - 3] - avgL)) + (SQR(temp[j - 2] - avgL) + SQR(temp[j - 1] - … in hphd_horizontal()
/dports/graphics/photoflow/PhotoFlow-8472024f/src/rt/rtengine/
H A Digv_demosaic_RT.cc142SQR(vdif[indx>>1])+69.0f*(SQR(vdif[(indx-v2)>>1])+SQR(vdif[(indx+v2)>>1]))+51.0f*(SQR(vdif[(indx-v… in igv_demosaic_RT()
143SQR(vdif[(indx-v4)>>1]+vdif[(indx-v2)>>1]+vdif[indx>>1])+SQR(vdif[indx>>1]+vdif[(indx+v2)>>1]+vdif… in igv_demosaic_RT()
144SQR(hdif[indx>>1])+69.0f*(SQR(hdif[(indx-h2)>>1])+SQR(hdif[(indx+h2)>>1]))+51.0f*(SQR(hdif[(indx-h… in igv_demosaic_RT()
145SQR(hdif[(indx-h4)>>1]+hdif[(indx-h2)>>1]+hdif[indx>>1])+SQR(hdif[indx>>1]+hdif[(indx+h2)>>1]+hdif… in igv_demosaic_RT()
/dports/science/afni/afni-AFNI_21.3.16/src/
H A Dafni_pcor.c309 den = VCH(vc,vox,nr) + SQR(VCH(vc,vox,nr-1)) ; in PCOR_get_pcor()
350 case 2: den += SQR(VCH(vc,vox,nr-1)) in PCOR_get_mcor()
353 case 3: den += SQR(VCH(vc,vox,nr-1)) in PCOR_get_mcor()
354 + SQR(VCH(vc,vox,nr-2)) in PCOR_get_mcor()
357 case 4: den += SQR(VCH(vc,vox,nr-1)) in PCOR_get_mcor()
358 + SQR(VCH(vc,vox,nr-2)) in PCOR_get_mcor()
359 + SQR(VCH(vc,vox,nr-3)) in PCOR_get_mcor()
598 thfac = SQR(pcthresh)/(1.0-SQR(pcthresh)) ; in PCOR_get_pcor_and_coef()
606 pcor[vox] = num / sqrt(den+SQR(num)) ; in PCOR_get_pcor_and_coef()
610 thfac = SQR(pcthresh)/(1.0-SQR(pcthresh)) ; in PCOR_get_pcor_and_coef()
[all …]
/dports/graphics/photivo/photivo/ReferenceMaterial/RawTherapee/
H A Dgreen_equil_RT - 20101023.cc24 #define SQR(x) ((x)*(x)) macro
136 gdiffh[indx] = SQR((gl-gr)/(eps+gl+gr)); in green_equilibrate()
137 gdiffv[indx] = SQR((gu-gd)/(eps+gu+gd)); in green_equilibrate()
169 wtse=1/(eps+SQR(cfa[indx+m2]-cfa[indx])+SQR(cfa[indx+m3]-cfa[indx+m1])); in green_equilibrate()
170 wtnw=1/(eps+SQR(cfa[indx-m2]-cfa[indx])+SQR(cfa[indx-m3]-cfa[indx-m1])); in green_equilibrate()
171 wtne=1/(eps+SQR(cfa[indx+p2]-cfa[indx])+SQR(cfa[indx+p3]-cfa[indx+p1])); in green_equilibrate()
172 wtsw=1/(eps+SQR(cfa[indx-p2]-cfa[indx])+SQR(cfa[indx-p3]-cfa[indx-p1])); in green_equilibrate()
H A Dgreen_equil_RT - 20101227.cc11 #define SQR(x) ((x)*(x)) macro
112 gdiffh[indx] = SQR((gl-gr)/(eps+gl+gr)); in green_equilibrate()
113 gdiffv[indx] = SQR((gu-gd)/(eps+gu+gd)); in green_equilibrate()
145 wtse=1/(eps+SQR(cfa[indx+m2]-cfa[indx])+SQR(cfa[indx+m3]-cfa[indx+m1])); in green_equilibrate()
146 wtnw=1/(eps+SQR(cfa[indx-m2]-cfa[indx])+SQR(cfa[indx-m3]-cfa[indx-m1])); in green_equilibrate()
147 wtne=1/(eps+SQR(cfa[indx+p2]-cfa[indx])+SQR(cfa[indx+p3]-cfa[indx+p1])); in green_equilibrate()
148 wtsw=1/(eps+SQR(cfa[indx-p2]-cfa[indx])+SQR(cfa[indx-p3]-cfa[indx-p1])); in green_equilibrate()

12345678910>>...59