/dports/graphics/swftools/swftools-0.9.2/src/ |
H A D | swfc-interpolation.c | 49 if (fraction < 0.5) in quadInOut() 66 if (fraction < 0.5) in cubicInOut() 83 if (fraction < 0.5) in quartInOut() 107 …return delta * (1 - sqrt(1 - (1 - 2 * slope) * fraction * fraction - 2 * slope * fraction)) + star… in circleIn() 124 if (fraction == 0) in exponentialIn() 162 if (fraction == 1) in elasticIn() 184 return delta * fraction * fraction * ((speed + 1) * fraction - speed) + start; in backIn() 225 if (fraction >= bounceStart && fraction < bounceEnd) in bounceIn() 231 return (1 - fraction * fraction) * top + start; in bounceIn() 278 if (fraction >= bounceStart && fraction < bounceEnd) in fastBounceIn() [all …]
|
H A D | swfc-interpolation.h | 68 float linear(float fraction, float start, float delta); 70 float quadIn(float fraction, float start, float delta, float slope); 71 float quadOut(float fraction, float start, float delta, float slope); 74 float cubicIn(float fraction, float start, float delta, float slope); 78 float quartIn(float fraction, float start, float delta, float slope); 90 float exponentialIn(float fraction, float start, float delta); 91 float exponentialOut(float fraction, float start, float delta); 92 float exponentialInOut(float fraction, float start, float delta); 94 float sineIn(float fraction, float start, float delta); 95 float sineOut(float fraction, float start, float delta); [all …]
|
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/main/java/org/apache/commons/math3/ode/nonstiff/ |
H A D | DormandPrince853FieldIntegrator.java | 203 c[ 4] = fraction(1, 3); in getC() 204 c[ 5] = fraction(1, 4); in getC() 205 c[ 6] = fraction(4, 13); in getC() 206 c[ 7] = fraction(127, 195); in getC() 207 c[ 8] = fraction(3, 5); in getC() 208 c[ 9] = fraction(6, 7); in getC() 211 c[12] = fraction(1.0, 10.0); in getC() 212 c[13] = fraction(1.0, 5.0); in getC() 213 c[14] = fraction(7.0, 9.0); in getC() 243 a[ 4][ 0] = fraction(1, 27); in getA() [all …]
|
H A D | DormandPrince54FieldIntegrator.java | 98 e1 = fraction( 71, 57600); in DormandPrince54FieldIntegrator() 99 e3 = fraction( -71, 16695); in DormandPrince54FieldIntegrator() 100 e4 = fraction( 71, 1920); in DormandPrince54FieldIntegrator() 101 e5 = fraction(-17253, 339200); in DormandPrince54FieldIntegrator() 102 e6 = fraction( 22, 525); in DormandPrince54FieldIntegrator() 103 e7 = fraction( -1, 40); in DormandPrince54FieldIntegrator() 135 c[0] = fraction(1, 5); in getC() 136 c[1] = fraction(3, 10); in getC() 137 c[2] = fraction(4, 5); in getC() 138 c[3] = fraction(8, 9); in getC() [all …]
|
H A D | HighamHall54FieldIntegrator.java | 70 e[0] = fraction(-1, 20); in HighamHall54FieldIntegrator() 72 e[2] = fraction(81, 160); in HighamHall54FieldIntegrator() 73 e[3] = fraction(-6, 5); in HighamHall54FieldIntegrator() 74 e[4] = fraction(25, 32); in HighamHall54FieldIntegrator() 75 e[5] = fraction( 1, 16); in HighamHall54FieldIntegrator() 76 e[6] = fraction(-1, 10); in HighamHall54FieldIntegrator() 98 e[0] = fraction(-1, 20); in HighamHall54FieldIntegrator() 110 c[0] = fraction(2, 9); in getC() 111 c[1] = fraction(1, 3); in getC() 112 c[2] = fraction(1, 2); in getC() [all …]
|
H A D | DormandPrince853FieldStepInterpolator.java | 69 d[0][ 0] = fraction(field, 104257, 1920240); in DormandPrince853FieldStepInterpolator() 132 d[3][12] = fraction(field, -126493.0, 1421424.0); in DormandPrince853FieldStepInterpolator() 133 d[3][13] = fraction(field, 98350000.0, 5419179.0); in DormandPrince853FieldStepInterpolator() 134 d[3][14] = fraction(field, -18878125.0, 2053168.0); in DormandPrince853FieldStepInterpolator() 149 d[4][12] = fraction(field, 2479159.0, 157936.0); in DormandPrince853FieldStepInterpolator() 150 d[4][13] = fraction(field, -18750000.0, 602131.0); in DormandPrince853FieldStepInterpolator() 151 d[4][14] = fraction(field, -19203125.0, 2053168.0); in DormandPrince853FieldStepInterpolator() 166 d[5][12] = fraction(field, -11847025.0, 4264272.0); in DormandPrince853FieldStepInterpolator() 183 d[6][12] = fraction(field, -1718875.0, 39484.0); in DormandPrince853FieldStepInterpolator() 184 d[6][13] = fraction(field, 58000000.0, 602131.0); in DormandPrince853FieldStepInterpolator() [all …]
|
/dports/lang/v/v-0.1.29/vlib/math/fractions/ |
H A D | fraction_test.v | 9 f := fractions.fraction(4, 8) 15 f := fractions.fraction(10, 5) 21 f := fractions.fraction(9, 3) 27 f := fractions.fraction(4, -5) 33 f := fractions.fraction(-7, -5) 38 f1 := fractions.fraction(4, 8) 39 f2 := fractions.fraction(5, 10) 47 f1 := fractions.fraction(5, 5) 48 f2 := fractions.fraction(8, 8) 56 f1 := fractions.fraction(9, 3) [all …]
|
H A D | approximations_test.v | 10 assert fract_val.equals(fractions.fraction(1, 2)) 16 assert fract_val.equals(fractions.fraction(1, 3)) 22 assert fract_val.equals(fractions.fraction(-1, 12)) 30 assert fract_val.equals(fractions.fraction(0, 1)) 36 assert fract_val.equals(fractions.fraction(-1, 1)) 42 assert fract_val.equals(fractions.fraction(33, 1)) 48 assert fract_val.equals(fractions.fraction(1, 1000000)) 54 assert fract_val.equals(fractions.fraction(-27, 57)) 60 assert fract_val.equals(fractions.fraction(29, 104)) 72 assert fractions.approximate_with_eps(math.pi, 5.0e-2).equals(fractions.fraction(22, 7)) [all …]
|
/dports/math/kfr/kfr-4.2.1/include/kfr/base/ |
H A D | fraction.hpp | 34 struct fraction struct 60 friend fraction operator+(const fraction& x, const fraction& y) in operator +() 65 friend fraction operator-(const fraction& x, const fraction& y) in operator -() 70 friend fraction operator*(const fraction& x, const fraction& y) in operator *() 74 friend fraction operator/(const fraction& x, const fraction& y) in operator /() 84 friend bool operator<(const fraction& x, const fraction& y) in operator <() 92 friend bool operator>(const fraction& x, const fraction& y) in operator >() 101 fraction& operator+=(const fraction& y) in operator +=() argument 106 fraction& operator-=(const fraction& y) in operator -=() argument 111 fraction& operator*=(const fraction& y) in operator *=() argument [all …]
|
/dports/lang/python-legacy/Python-2.7.18/Lib/ |
H A D | fpformat.py | 46 if fraction: fraction = fraction[1:] 55 intpart, fraction = intpart + fraction[:expo], fraction[expo:] 60 intpart, fraction = intpart[:expo], intpart[expo:] + fraction 62 fraction = '0'*(-expo-i) + fraction 100 intpart, fraction = unexpo(intpart, fraction, expo) 101 intpart, fraction = roundfrac(intpart, fraction, digs) 114 while fraction and fraction[0] == '0': 115 fraction = fraction[1:] 118 intpart, fraction = fraction[0], fraction[1:] 124 intpart, fraction = intpart[0], intpart[1:] + fraction [all …]
|
/dports/lang/python27/Python-2.7.18/Lib/ |
H A D | fpformat.py | 46 if fraction: fraction = fraction[1:] 55 intpart, fraction = intpart + fraction[:expo], fraction[expo:] 60 intpart, fraction = intpart[:expo], intpart[expo:] + fraction 62 fraction = '0'*(-expo-i) + fraction 100 intpart, fraction = unexpo(intpart, fraction, expo) 101 intpart, fraction = roundfrac(intpart, fraction, digs) 114 while fraction and fraction[0] == '0': 115 fraction = fraction[1:] 118 intpart, fraction = fraction[0], fraction[1:] 124 intpart, fraction = intpart[0], intpart[1:] + fraction [all …]
|
/dports/java/eclipse-pydev/eclipse-pydev-8.2.0/plugins/org.python.pydev.jython_8.2.0.202102211157/Lib/ |
H A D | fpformat.py | 45 if fraction: fraction = fraction[1:] 54 intpart, fraction = intpart + fraction[:expo], fraction[expo:] 59 intpart, fraction = intpart[:expo], intpart[expo:] + fraction 61 fraction = '0'*(-expo-i) + fraction 99 intpart, fraction = unexpo(intpart, fraction, expo) 100 intpart, fraction = roundfrac(intpart, fraction, digs) 113 while fraction and fraction[0] == '0': 114 fraction = fraction[1:] 117 intpart, fraction = fraction[0], fraction[1:] 123 intpart, fraction = intpart[0], intpart[1:] + fraction [all …]
|
/dports/sysutils/uefi-edk2-bhyve-csm/uefi-edk2-aa8d718/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
H A D | fpformat.py | 45 if fraction: fraction = fraction[1:] 54 intpart, fraction = intpart + fraction[:expo], fraction[expo:] 59 intpart, fraction = intpart[:expo], intpart[expo:] + fraction 61 fraction = '0'*(-expo-i) + fraction 99 intpart, fraction = unexpo(intpart, fraction, expo) 100 intpart, fraction = roundfrac(intpart, fraction, digs) 113 while fraction and fraction[0] == '0': 114 fraction = fraction[1:] 117 intpart, fraction = fraction[0], fraction[1:] 123 intpart, fraction = intpart[0], intpart[1:] + fraction [all …]
|
/dports/math/kfr/kfr-4.2.1/tests/unit/base/ |
H A D | fraction.cpp | 15 TEST(fraction) in TEST() argument 17 fraction f = 1; in TEST() 19 CHECK(f == fraction{ 1, 3 }); in TEST() 20 CHECK(+f == fraction{ 1, 3 }); in TEST() 21 CHECK(-f == fraction{ -1, 3 }); in TEST() 26 fraction x{ 1, 5 }; in TEST() 37 f += fraction(1, 3); in TEST() 39 f -= fraction(1, 6); in TEST() 41 f *= fraction(1, 7); in TEST() 43 f /= fraction(1, 2); in TEST() [all …]
|
/dports/multimedia/smpeg2/smpeg2-2.0.0/audio/ |
H A D | mpeglayer2.cpp | 642 else fraction[LS][0][i]=fraction[LS][1][i]=fraction[LS][2][i]=0.0; in extractlayer2() 672 else fraction[RS][0][i]=fraction[RS][1][i]=fraction[RS][2][i]=0.0; in extractlayer2() 687 fraction[LS][0][i]=fraction[RS][0][i]=s[0]; in extractlayer2() 688 fraction[LS][1][i]=fraction[RS][1][i]=s[1]; in extractlayer2() 693 fraction[LS][0][i]=fraction[RS][0][i]= in extractlayer2() 695 fraction[LS][1][i]=fraction[RS][1][i]= in extractlayer2() 697 fraction[LS][2][i]=fraction[RS][2][i]= in extractlayer2() 701 else fraction[LS][0][i]=fraction[LS][1][i]=fraction[LS][2][i]= in extractlayer2() 702 fraction[RS][0][i]=fraction[RS][1][i]=fraction[RS][2][i]=0.0; in extractlayer2() 759 fraction[LS][0][i]=fraction[LS][1][i]=fraction[LS][2][i]= in extractlayer2() [all …]
|
/dports/multimedia/smpeg/smpeg-0.4.4/audio/ |
H A D | mpeglayer2.cpp | 642 else fraction[LS][0][i]=fraction[LS][1][i]=fraction[LS][2][i]=0.0; in extractlayer2() 672 else fraction[RS][0][i]=fraction[RS][1][i]=fraction[RS][2][i]=0.0; in extractlayer2() 687 fraction[LS][0][i]=fraction[RS][0][i]=s[0]; in extractlayer2() 688 fraction[LS][1][i]=fraction[RS][1][i]=s[1]; in extractlayer2() 693 fraction[LS][0][i]=fraction[RS][0][i]= in extractlayer2() 695 fraction[LS][1][i]=fraction[RS][1][i]= in extractlayer2() 697 fraction[LS][2][i]=fraction[RS][2][i]= in extractlayer2() 701 else fraction[LS][0][i]=fraction[LS][1][i]=fraction[LS][2][i]= in extractlayer2() 702 fraction[RS][0][i]=fraction[RS][1][i]=fraction[RS][2][i]=0.0; in extractlayer2() 759 fraction[LS][0][i]=fraction[LS][1][i]=fraction[LS][2][i]= in extractlayer2() [all …]
|
/dports/audio/mp3blaster/mp3blaster-3.2.6/mpegsound/ |
H A D | mpeglayer2.cc | 634 else fraction[LS][0][i]=fraction[LS][1][i]=fraction[LS][2][i]=0.0; in extractlayer2() 660 else fraction[RS][0][i]=fraction[RS][1][i]=fraction[RS][2][i]=0.0; in extractlayer2() 675 fraction[LS][0][i]=fraction[RS][0][i]=s[0]; in extractlayer2() 676 fraction[LS][1][i]=fraction[RS][1][i]=s[1]; in extractlayer2() 681 fraction[LS][0][i]=fraction[RS][0][i]= in extractlayer2() 683 fraction[LS][1][i]=fraction[RS][1][i]= in extractlayer2() 685 fraction[LS][2][i]=fraction[RS][2][i]= in extractlayer2() 689 else fraction[LS][0][i]=fraction[LS][1][i]=fraction[LS][2][i]= in extractlayer2() 690 fraction[RS][0][i]=fraction[RS][1][i]=fraction[RS][2][i]=0.0; in extractlayer2() 747 fraction[LS][0][i]=fraction[LS][1][i]=fraction[LS][2][i]= in extractlayer2() [all …]
|
/dports/audio/splay/splay-0.9.5.2/libs/ |
H A D | mpeglayer2.cc | 634 else fraction[LS][0][i]=fraction[LS][1][i]=fraction[LS][2][i]=0.0; in extractlayer2() 660 else fraction[RS][0][i]=fraction[RS][1][i]=fraction[RS][2][i]=0.0; in extractlayer2() 675 fraction[LS][0][i]=fraction[RS][0][i]=s[0]; in extractlayer2() 676 fraction[LS][1][i]=fraction[RS][1][i]=s[1]; in extractlayer2() 681 fraction[LS][0][i]=fraction[RS][0][i]= in extractlayer2() 683 fraction[LS][1][i]=fraction[RS][1][i]= in extractlayer2() 685 fraction[LS][2][i]=fraction[RS][2][i]= in extractlayer2() 689 else fraction[LS][0][i]=fraction[LS][1][i]=fraction[LS][2][i]= in extractlayer2() 690 fraction[RS][0][i]=fraction[RS][1][i]=fraction[RS][2][i]=0.0; in extractlayer2() 747 fraction[LS][0][i]=fraction[LS][1][i]=fraction[LS][2][i]= in extractlayer2() [all …]
|
/dports/science/grib_api/grib_api-1.28.0-Source/definitions/grib1/localConcepts/eswi/ |
H A D | landtype.table | 14 2 2 Rural (fraction) 15 3 3 Urban (fraction) 16 4 4 Lowveg (fraction) 17 5 5 Forest (fraction) 18 6 6 Noveg (fraction) 20 22 22 Arable (fraction) 23 25 25 Spruce (fraction) 24 26 26 Pine (fraction) 27 29 29 Birch (fraction) 28 51 51 Ice (fraction) [all …]
|
/dports/science/eccodes/eccodes-2.23.0-Source/definitions/grib1/localConcepts/eswi/ |
H A D | landtype.table | 14 2 2 Rural (fraction) 15 3 3 Urban (fraction) 16 4 4 Lowveg (fraction) 17 5 5 Forest (fraction) 18 6 6 Noveg (fraction) 20 22 22 Arable (fraction) 23 25 25 Spruce (fraction) 24 26 26 Pine (fraction) 27 29 29 Birch (fraction) 28 51 51 Ice (fraction) [all …]
|
/dports/net/libyang/libyang-1.0.240/tests/data/files/ |
H A D | types.yang | 85 fraction-digits 1; 91 fraction-digits 1; 97 fraction-digits 1; 103 fraction-digits 1; 109 fraction-digits 2; 115 fraction-digits 2; 121 fraction-digits 3; 127 fraction-digits 3; 133 fraction-digits 4; 139 fraction-digits 4; [all …]
|
/dports/math/universal/universal-3.48/include/universal/number/posit/ |
H A D | fraction.hpp | 17 class fraction { class 21 fraction(const fraction& f) = default; 22 fraction(fraction&& f) = default; 24 fraction& operator=(const fraction& f) = default; 25 fraction& operator=(fraction&& f) = default; 226 friend bool operator==(const fraction<nfbits>& lhs, const fraction<nfbits>& rhs); 228 friend bool operator!=(const fraction<nfbits>& lhs, const fraction<nfbits>& rhs); 230 friend bool operator< (const fraction<nfbits>& lhs, const fraction<nfbits>& rhs); 232 friend bool operator> (const fraction<nfbits>& lhs, const fraction<nfbits>& rhs); 234 friend bool operator<=(const fraction<nfbits>& lhs, const fraction<nfbits>& rhs); [all …]
|
/dports/audio/sdl_sound/SDL_sound-1.0.3/decoders/mpglib/ |
H A D | layer2.c | 171 fraction[j][0][i] = fraction[j][1][i] = fraction[j][2][i] = 0.0; in II_step_two() 186 fraction[1][0][i] = (fraction[0][0][i] = (real) ((int)getbits(k) + d1) ) * cm; in II_step_two() 187 fraction[1][1][i] = (fraction[0][1][i] = (real) ((int)getbits(k) + d1) ) * cm; in II_step_two() 188 fraction[1][2][i] = (fraction[0][2][i] = (real) ((int)getbits(k) + d1) ) * cm; in II_step_two() 190 fraction[0][0][i] *= cm; fraction[0][1][i] *= cm; fraction[0][2][i] *= cm; in II_step_two() 199 fraction[0][0][i] = muls[*tab][m1]; fraction[1][0][i] = muls[*tab++][m2]; in II_step_two() 200 fraction[0][1][i] = muls[*tab][m1]; fraction[1][1][i] = muls[*tab++][m2]; in II_step_two() 201 fraction[0][2][i] = muls[*tab][m1]; fraction[1][2][i] = muls[*tab][m2]; in II_step_two() 206 fraction[0][0][i] = fraction[0][1][i] = fraction[0][2][i] = in II_step_two() 207 fraction[1][0][i] = fraction[1][1][i] = fraction[1][2][i] = 0.0; in II_step_two() [all …]
|
/dports/devel/avr-gdb/gdb-7.3.1/sim/common/ |
H A D | sim-fpu.c | 194 fraction = src->fraction; in pack_fpu() 206 fraction = src->fraction; in pack_fpu() 247 fraction = src->fraction; in pack_fpu() 263 fraction = src->fraction; in pack_fpu() 349 dst->fraction = fraction; in unpack_fpu() 558 f->fraction = (f->fraction >> 1) | (f->fraction & 1); in i2fpu() 1116 f->fraction = - f->fraction; in sim_fpu_add() 1122 f->fraction = (f->fraction >> 1) | (f->fraction & 1); in sim_fpu_add() 1270 f->fraction = - f->fraction; in sim_fpu_sub() 1276 f->fraction = (f->fraction >> 1) | (f->fraction & 1); in sim_fpu_sub() [all …]
|
/dports/devel/gdb761/gdb-7.6.1/sim/common/ |
H A D | sim-fpu.c | 193 fraction = src->fraction; in pack_fpu() 205 fraction = src->fraction; in pack_fpu() 246 fraction = src->fraction; in pack_fpu() 262 fraction = src->fraction; in pack_fpu() 348 dst->fraction = fraction; in unpack_fpu() 557 f->fraction = (f->fraction >> 1) | (f->fraction & 1); in i2fpu() 1115 f->fraction = - f->fraction; in sim_fpu_add() 1121 f->fraction = (f->fraction >> 1) | (f->fraction & 1); in sim_fpu_add() 1269 f->fraction = - f->fraction; in sim_fpu_sub() 1275 f->fraction = (f->fraction >> 1) | (f->fraction & 1); in sim_fpu_sub() [all …]
|