/dports/games/shockolate/systemshock-0.8.2-43-ga9eb1b93/src/Libraries/2D/Source/Gen/ |
H A D | genwlin.c | 40 } while (x<x_new) 47 } while (x>x_new) 50 int y,y_max,x,x_new; in gri_gen_wire_poly_uline() local 67 x_new=fix_cint(v1->x),x=fix_cint(v0->x); in gri_gen_wire_poly_uline() 87 x_new=fix_cint(x_fix); in gri_gen_wire_poly_uline() 93 x=x_new; in gri_gen_wire_poly_uline() 94 x_new=fix_cint(x_fix+=dx); in gri_gen_wire_poly_uline() 97 x=x_new; in gri_gen_wire_poly_uline() 98 x_new=fix_cint(x1); in gri_gen_wire_poly_uline() 103 x_new=fix_cint(x_fix+=dx); in gri_gen_wire_poly_uline() [all …]
|
H A D | genwclin.c | 42 } while (x<x_new) 53 } while (x>x_new) 56 int d,y,y_max,x,x_new; in gri_gen_wire_poly_ucline() local 81 d=x_new-x; in gri_gen_wire_poly_ucline() 115 x_new=fix_cint(x_fix); in gri_gen_wire_poly_ucline() 121 x=x_new; in gri_gen_wire_poly_ucline() 122 x_new=fix_cint(x_fix+=dx); in gri_gen_wire_poly_ucline() 125 x=x_new; in gri_gen_wire_poly_ucline() 126 x_new=fix_cint(x1); in gri_gen_wire_poly_ucline() 131 x_new=fix_cint(x_fix+=dx); in gri_gen_wire_poly_ucline() [all …]
|
/dports/games/shockolate/systemshock-0.8.2-43-ga9eb1b93/src/Libraries/2D/Source/Flat8/ |
H A D | fl8wlin.c | 41 } while (x < x_new) 43 if (x == x_new) { \ 49 } while (x > x_new) 52 int y, y_max, x, x_new; in gri_flat8_wire_poly_uline() local 93 x_new = fix_cint(x_fix); in gri_flat8_wire_poly_uline() 99 x = x_new; in gri_flat8_wire_poly_uline() 100 x_new = fix_cint(x_fix += dx); in gri_flat8_wire_poly_uline() 104 x = x_new; in gri_flat8_wire_poly_uline() 105 x_new = fix_cint(x1); in gri_flat8_wire_poly_uline() 110 x_new = fix_cint(x_fix += dx); in gri_flat8_wire_poly_uline() [all …]
|
H A D | fl8wclin.h | 33 int d, y, y_max, x, x_new; variable 51 x_new = fix_cint(v1->x), x = fix_cint(v0->x); 55 x_new = fix_cint(v0->x), x = fix_cint(v1->x); 59 d = x_new - x; 94 x_new = fix_cint(x_fix); 100 x = x_new; 101 x_new = fix_cint(x_fix += dx); 105 x = x_new; 106 x_new = fix_cint(x1); 111 x_new = fix_cint(x_fix += dx); [all …]
|
H A D | fl8wclin.c | 42 } while (x < x_new) 44 if (x == x_new) { \ 54 } while (x > x_new) 69 } while (x < x_new) 72 if (x == x_new) { \ 82 } while (x > x_new)
|
/dports/math/py-algopy/algopy-0.5.7/documentation/sphinx/examples/ |
H A D | implicit_euler.py | 19 def F_fcn(x_new, x, t_new, t, p): argument 21 return (t_new - t) * f_fcn(t_new, x_new, p) - x_new + x 23 def J_fcn(x_new, x, t_new, t, p): argument 28 y.data[0,:] = x_new 36 x_new = x.copy() 41 x_new.data[0,...] = x.data[0,...] 42 x_new.data[1:,...] = 0 51 x_new.data[0,0] -= delta_x 57 F = F_fcn(x_new, x, ts[nts+1], ts[nts], p) 58 x_new.data[d,0] = -numpy.linalg.solve(J, F.data[d,0]) [all …]
|
/dports/biology/garlic/garlic-1.6/ |
H A D | rotate_membrane.c | 47 static double x_new, y_new, z_new; in RotateMembrane_() local 82 x_new = x; in RotateMembrane_() 89 x_new = x * cos_angle + z * sin_angle; in RotateMembrane_() 96 x_new = x * cos_angle - y * sin_angle; in RotateMembrane_() 107 membraneSP->center_x = x_new + x0; in RotateMembrane_() 127 x_new = x; in RotateMembrane_() 134 x_new = x * cos_angle + z * sin_angle; in RotateMembrane_() 141 x_new = x * cos_angle - y * sin_angle; in RotateMembrane_() 153 plane1SP->normal_x[0] = x_new; in RotateMembrane_() 178 x_new = x; in RotateMembrane_() [all …]
|
H A D | rotate_plane.c | 46 static double x_new, y_new, z_new; in RotatePlane_() local 77 x_new = x; in RotatePlane_() 84 x_new = x * cos_angle + z * sin_angle; in RotatePlane_() 91 x_new = x * cos_angle - y * sin_angle; in RotatePlane_() 102 curr_planeSP->center_x[0] = x_new + x0; in RotatePlane_() 111 x_new = x * cos_stereo_angle + z * sin_stereo_angle; in RotatePlane_() 114 curr_planeSP->center_x[1] = x_new + x0; in RotatePlane_() 128 x_new = x; in RotatePlane_() 135 x_new = x * cos_angle + z * sin_angle; in RotatePlane_() 142 x_new = x * cos_angle - y * sin_angle; in RotatePlane_() [all …]
|
/dports/audio/praat/praat-6.2.03/external/gsl/ |
H A D | gsl_min__golden.c | 77 double x_new, f_new; in goldensection_iterate() local 79 x_new = x_center + golden * ((w_upper > w_lower) ? w_upper : -w_lower) ; in goldensection_iterate() 81 SAFE_FUNC_CALL (f, x_new, &f_new); in goldensection_iterate() 85 *x_minimum = x_new ; in goldensection_iterate() 89 else if (x_new < x_center && f_new > f_min) in goldensection_iterate() 91 *x_lower = x_new ; in goldensection_iterate() 95 else if (x_new > x_center && f_new > f_min) in goldensection_iterate() 97 *x_upper = x_new ; in goldensection_iterate()
|
H A D | gsl_roots__steffenson.c | 87 double x_new, f_new, df_new; 97 x_new = x - (state->f / state->df); 99 GSL_FN_FDF_EVAL_F_DF(fdf, x_new, &f_new, &df_new); 103 state->x = x_new; 115 *root = x_new ; 121 double v = (x_new - 2 * x + x_1); 124 *root = x_new; /* avoid division by zero */
|
H A D | gsl_roots__secant.c | 80 double x_new, f_new, df_new; in secant_iterate() local 87 x_new = x - (f / df); in secant_iterate() 89 f_new = GSL_FN_FDF_EVAL_F(fdf, x_new) ; in secant_iterate() 90 df_new = (f_new - f) / (x_new - x) ; in secant_iterate() 92 *root = x_new ; in secant_iterate()
|
/dports/math/gsl/gsl-2.7/min/ |
H A D | golden.c | 81 double x_new, f_new; in goldensection_iterate() local 85 x_new = x_center + golden * ((w_upper > w_lower) ? w_upper : -w_lower) ; in goldensection_iterate() 87 SAFE_FUNC_CALL (f, x_new, &f_new); in goldensection_iterate() 91 *x_minimum = x_new ; in goldensection_iterate() 95 else if (x_new < x_center && f_new > f_min) in goldensection_iterate() 97 *x_lower = x_new ; in goldensection_iterate() 101 else if (x_new > x_center && f_new > f_min) in goldensection_iterate() 103 *x_upper = x_new ; in goldensection_iterate()
|
/dports/finance/py-quantecon/quantecon-0.5.2/quantecon/ |
H A D | compute_fp.py | 189 x_new = v 190 y_new = T(x_new, *args, **kwargs) 192 converged = is_approx_fp(x_new) 205 return x_new, converged, iterate 219 X[0], Y[0] = x_new, y_new 220 x_new = Y[0] 227 y_new = T(x_new, *args, **kwargs) 229 converged = is_approx_fp(x_new) 240 X[iterate-1] = x_new 264 x_new = rho.dot(Y[:m]) [all …]
|
/dports/science/simbody/simbody-Simbody-3.7/SimTKmath/Integrators/src/CPodes/sundials/tests/ |
H A D | pend.c | 156 realtype x_new, y_new, xd_new, yd_new; in proj() local 168 x_new = x/R; in proj() 171 xd_new = xd*y_new*y_new - yd*x_new*y_new; in proj() 172 yd_new = - xd*x_new*y_new + yd*x_new*x_new; in proj() 174 Ith(corr,1) = x_new - x; in proj() 193 e1_new = y_new*y_new * e1 - x_new*y_new * e2; in proj() 194 e2_new = -x_new*y_new * e1 + x_new*x_new * e2; in proj() 196 e3_new = y_new*y_new * e3 - x_new*y_new * e4; in proj() 197 e4_new = -x_new*y_new * e3 + x_new*x_new * e4; in proj()
|
H A D | cpsPend_dns.c | 210 realtype x_new, y_new, xd_new, yd_new; in proj() local 226 x_new = x/R; in proj() 229 xd_new = xd*y_new*y_new - yd*x_new*y_new; in proj() 230 yd_new = - xd*x_new*y_new + yd*x_new*x_new; in proj() 234 Ith(corr,1) = x_new - x; in proj() 253 e1_new = y_new*y_new * e1 - x_new*y_new * e2; in proj() 254 e2_new = -x_new*y_new * e1 + x_new*x_new * e2; in proj() 256 e3_new = y_new*y_new * e3 - x_new*y_new * e4; in proj() 257 e4_new = -x_new*y_new * e3 + x_new*x_new * e4; in proj()
|
H A D | pend_test.c | 210 realtype x_new, y_new, xd_new, yd_new; in proj() local 226 x_new = x/R; in proj() 229 xd_new = xd*y_new*y_new - yd*x_new*y_new; in proj() 230 yd_new = - xd*x_new*y_new + yd*x_new*x_new; in proj() 234 Ith(corr,1) = x_new - x; in proj() 253 e1_new = y_new*y_new * e1 - x_new*y_new * e2; in proj() 254 e2_new = -x_new*y_new * e1 + x_new*x_new * e2; in proj() 256 e3_new = y_new*y_new * e3 - x_new*y_new * e4; in proj() 257 e4_new = -x_new*y_new * e3 + x_new*x_new * e4; in proj()
|
/dports/science/gnudatalanguage/gdl-1.0.1/src/pro/ |
H A D | oploterr.pro | 90 x_new=DINDGEN(nbp_x) 98 x_new=dindgen(N_ELEMENTS(y_new)) 100 nbp_x=N_ELEMENTS(x_new) 105 x_new=x 108 nbp_x=N_ELEMENTS(x_new) 115 x_new=x 118 nbp_x=N_ELEMENTS(x_new) 129 if (nbp_x GT nbp_min) then x_new=x_new[0:nbp_min-1] 134 oplot,x_new,y_new,psym=mypsym 141 x_new=reform(transpose([[x_new],[x_new],[null]]),3*nbp_min) [all …]
|
H A D | ploterr.pro | 124 x_new=FINDGEN(nbp_x) 130 x_new=REFORM(x) 148 x_new=REFORM(x) 167 if (nbp_x GT nbp_min) then x_new=x_new[0:nbp_min-1] 181 x_low=x_new-x_err 182 x_hig=x_new+x_err 217 xrange=[MIN(x_new),MAX(x_new)] 240 x_new2=reform(transpose([[x_new],[x_new],[null]]),3*nbp_min) 244 ;for i=0,(nbp_min-1) do PLOTS,[x_new[i], x_new[i]], [y_low[i], y_hig[i]] 293 x_hatlow=x_new-x_half [all …]
|
/dports/math/gsl/gsl-2.7/roots/ |
H A D | steffenson.c | 87 double x_new, f_new, df_new; in steffenson_iterate() local 97 x_new = x - (state->f / state->df); in steffenson_iterate() 99 GSL_FN_FDF_EVAL_F_DF(fdf, x_new, &f_new, &df_new); in steffenson_iterate() 103 state->x = x_new; in steffenson_iterate() 115 *root = x_new ; in steffenson_iterate() 121 double v = (x_new - 2 * x + x_1); in steffenson_iterate() 124 *root = x_new; /* avoid division by zero */ in steffenson_iterate()
|
/dports/science/chrono/chrono-7.0.1/src/chrono/fea/ |
H A D | ChNodeFEAxyzDDD.cpp | 121 x_new(off_x + 0) = x(off_x + 0) + Dv(off_v + 0); in NodeIntStateIncrement() 122 x_new(off_x + 1) = x(off_x + 1) + Dv(off_v + 1); in NodeIntStateIncrement() 123 x_new(off_x + 2) = x(off_x + 2) + Dv(off_v + 2); in NodeIntStateIncrement() 124 x_new(off_x + 3) = x(off_x + 3) + Dv(off_v + 3); in NodeIntStateIncrement() 125 x_new(off_x + 4) = x(off_x + 4) + Dv(off_v + 4); in NodeIntStateIncrement() 126 x_new(off_x + 5) = x(off_x + 5) + Dv(off_v + 5); in NodeIntStateIncrement() 127 x_new(off_x + 6) = x(off_x + 6) + Dv(off_v + 6); in NodeIntStateIncrement() 128 x_new(off_x + 7) = x(off_x + 7) + Dv(off_v + 7); in NodeIntStateIncrement() 129 x_new(off_x + 8) = x(off_x + 8) + Dv(off_v + 8); in NodeIntStateIncrement() 130 x_new(off_x + 9) = x(off_x + 9) + Dv(off_v + 9); in NodeIntStateIncrement() [all …]
|
H A D | ChNodeFEAxyzDD.cpp | 111 ChState& x_new, in NodeIntStateIncrement() argument 115 x_new(off_x + 0) = x(off_x + 0) + Dv(off_v + 0); in NodeIntStateIncrement() 116 x_new(off_x + 1) = x(off_x + 1) + Dv(off_v + 1); in NodeIntStateIncrement() 117 x_new(off_x + 2) = x(off_x + 2) + Dv(off_v + 2); in NodeIntStateIncrement() 118 x_new(off_x + 3) = x(off_x + 3) + Dv(off_v + 3); in NodeIntStateIncrement() 119 x_new(off_x + 4) = x(off_x + 4) + Dv(off_v + 4); in NodeIntStateIncrement() 120 x_new(off_x + 5) = x(off_x + 5) + Dv(off_v + 5); in NodeIntStateIncrement() 121 x_new(off_x + 6) = x(off_x + 6) + Dv(off_v + 6); in NodeIntStateIncrement() 122 x_new(off_x + 7) = x(off_x + 7) + Dv(off_v + 7); in NodeIntStateIncrement() 123 x_new(off_x + 8) = x(off_x + 8) + Dv(off_v + 8); in NodeIntStateIncrement()
|
/dports/math/mathomatic/mathomatic-ceb0861/tests/ |
H A D | demo.in | 15 y=x_new^n ; x_new is what we want, without using the root operator. 16 x_new ; It is easily solved for in Mathomatic. 18 taylor x_new, 1, x_old ; build the (nth root of y) iterative approximation formula 19 solve verifiable x_new ; solve for the output variable 22 replace x_old x_new with x ; make x_old (input) and x_new (output) the same
|
/dports/math/octave-forge-stk/stk/inst/model/@stk_model_gpposterior/ |
H A D | stk_model_update.m | 29 function M = stk_model_update (M, x_new, z_new, lnv_new) 68 M.input_data = [M.input_data; x_new]; 81 %!shared x_obs, z_obs, ref, M_prior, x_new, z_new, lnv_new 86 %! x_new = [-0.79; -0.79]; 88 %! lnv_new = ref.noise_std_func (x_new); 93 %! M_post = stk_model_update (M_post, x_new, z_new, lnv_new); 98 %! M_post = stk_model_update (M_post, x_new, z_new, lnv_new); % NOT OK 103 %! M_post = stk_model_update (M_post, x_new, z_new, lnv_new); % NOT OK 108 %! M_post = stk_model_update (M_post, x_new, z_new);
|
/dports/misc/py-onnx/onnx-1.10.2/onnx/backend/test/case/node/ |
H A D | momentum.py | 24 x_new = x - r * v_new 25 return x_new, v_new 36 x_new = x - r * (g_regularized + alpha * v_new) 37 return x_new, v_new 68 x_new, v_new = apply_momentum(r, t, x, g, v, 73 outputs=[x_new, v_new], name='test_momentum', 102 x_new, v_new = apply_nesterov(r, t, x, g, v, 107 outputs=[x_new, v_new], name='test_nesterov_momentum',
|
/dports/math/mathomatic/mathomatic-ceb0861/primes/ |
H A D | lsqrt.c | 36 long x_old, x_new; in lsqrt() local 61 x_new = (y / x_old + x_old) / 2L; in lsqrt() 62 if (x_old <= x_new) in lsqrt() 64 x_old = x_new; in lsqrt()
|