Home
last modified time | relevance | path

Searched refs:fractions (Results 1 – 25 of 165) sorted by relevance

1234567

/third_party/boost/boost/geometry/policies/relate/
Dintersection_points.hpp58 result.fractions[0].assign(sinfo); in segments_crosses()
87 result.fractions[index].assign(Ratio::zero(), ra_from_wrt_b); in segments_collinear()
103 result.fractions[index].assign(rb_from_wrt_a, Ratio::zero()); in segments_collinear()
116 result.fractions[index].assign(Ratio::one(), ra_to_wrt_b); in segments_collinear()
125 result.fractions[index].assign(rb_to_wrt_a, Ratio::one()); in segments_collinear()
137 std::swap(result.fractions[0], result.fractions[1]); in segments_collinear()
178 result.fractions[0].assign(Ratio::zero(), ratio); in one_degenerate()
182 result.fractions[0].assign(ratio, Ratio::zero()); in one_degenerate()
/third_party/python/Lib/test/test_asyncio/
Dtest_context.py14 async def fractions(t, precision, x, y): function
24 fractions(0.1, 3, 1, 3), fractions(0.2, 6, 1, 3))
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DUnitsConverter.java207 String[] fractions = factor.split("/"); in processFactor() local
208 assert (fractions.length == 1 || fractions.length == 2); in processFactor()
210 if (fractions.length == 1) { in processFactor()
211 return processFactorWithoutDivision(fractions[0]); in processFactor()
214 Factor num = processFactorWithoutDivision(fractions[0]); in processFactor()
215 Factor den = processFactorWithoutDivision(fractions[1]); in processFactor()
/third_party/python/Doc/library/
Dfractions.rst1 :mod:`fractions` --- Rational numbers
4 .. module:: fractions
10 **Source code:** :source:`Lib/fractions.py`
14 The :mod:`fractions` module provides support for rational number arithmetic.
51 >>> from fractions import Fraction
138 >>> from fractions import Fraction
Dnumeric.rst24 fractions.rst
Dnumbers.rst89 extensions of the real numbers. For example, :class:`fractions.Fraction`
101 # simple fractions.
186 :class:`fractions.Fraction` uses::
/third_party/python/Doc/tutorial/
Dfloatingpoint.rst15 fractions. For example, the decimal fraction ::
23 has value 0/2 + 0/4 + 1/8. These two fractions have identical values, the only
27 Unfortunately, most decimal fractions cannot be represented exactly as binary
28 fractions. A consequence is that, in general, the decimal floating-point
156 Another form of exact arithmetic is supported by the :mod:`fractions` module
216 decimal fractions cannot be represented exactly as binary (base 2) fractions.
284 The :mod:`fractions` and :mod:`decimal` modules make these calculations
288 >>> from fractions import Fraction
/third_party/boost/libs/geometry/test/strategies/
Dsegment_intersection_sph.hpp117 coord_t denom_a0 = boost::get<0>(res).fractions[0].robust_ra.denominator(); in test_strategy_one()
118 coord_t denom_b0 = boost::get<0>(res).fractions[0].robust_rb.denominator(); in test_strategy_one()
130 coord_t denom_a1 = boost::get<0>(res).fractions[1].robust_ra.denominator(); in test_strategy_one()
131 coord_t denom_b1 = boost::get<0>(res).fractions[1].robust_rb.denominator(); in test_strategy_one()
Dsegment_intersection_collinear.cpp156 BOOST_CHECK_EQUAL(is.fractions[0].robust_ra, expected_a1); in test_segment_ratio()
157 BOOST_CHECK_EQUAL(is.fractions[0].robust_rb, expected_b1); in test_segment_ratio()
165 BOOST_CHECK_EQUAL(is.fractions[1].robust_ra, expected_a2); in test_segment_ratio()
166 BOOST_CHECK_EQUAL(is.fractions[1].robust_rb, expected_b2); in test_segment_ratio()
/third_party/ffmpeg/tools/
Dsidxindex.c219 int fractions = time % AV_TIME_BASE; in write_time() local
222 fractions = av_rescale_rnd(fractions, pow(10, decimals), AV_TIME_BASE, round); in write_time()
230 fprintf(out, "%d.%0*dS", seconds, decimals, fractions); in write_time()
/third_party/skia/third_party/externals/freetype/src/autofit/
Dafcover.h53 COVERAGE( fractions, FRACTIONS,
/third_party/flutter/skia/third_party/externals/freetype/src/autofit/
Dafcover.h53 COVERAGE( fractions, FRACTIONS,
/third_party/freetype/src/autofit/
Dafcover.h53 COVERAGE( fractions, FRACTIONS,
/third_party/boost/boost/geometry/strategies/
Dintersection_result.hpp68 fraction_type<SegmentRatio> fractions[2]; member
/third_party/boost/libs/math/doc/sf/
Dbessel_ik.qbk176 which needs two continued fractions as well as the Wronskian:
184 The continued fractions are computed using the modified Lentz's method
186 using continued fractions], Applied Optics, vol 15, 668 (1976)).]
194 When ['x] is large (['x] > 2), both continued fractions converge (CF1
/third_party/protobuf/src/google/protobuf/
Dtimestamp.proto44 // calendar, encoded as a count of seconds and fractions of seconds at
133 // Non-negative fractions of a second at nanosecond resolution. Negative
134 // second values with fractions must still have non-negative nanos values
Dduration.proto44 // as a count of seconds and fractions of seconds at nanosecond
109 // Signed fractions of a second at nanosecond resolution of the span
/third_party/boost/libs/math/doc/internals/
Dfraction.qbk50 [@http://en.wikipedia.org/wiki/Continued_fraction Continued fractions are a common method of approx…
97 (especially 5.2 Evaluation of continued fractions, p 175 - 179)
121 when evaluating special functions by continued fractions, for example
/third_party/boost/boost/geometry/algorithms/detail/overlay/
Dget_turn_info.hpp178 ti.operations[0].fraction = info.fractions[index].robust_ra; in assign_point()
179 ti.operations[1].fraction = info.fractions[index].robust_rb; in assign_point()
185 return info.fractions[0].robust_rb < info.fractions[1].robust_rb in non_opposite_to_index()
/third_party/harfbuzz/test/shaping/data/in-house/
Dmeson.build10 'automatic-fractions.tests',
/third_party/python/Lib/test/
Dtest_fractions.py8 import fractions
14 F = fractions.Fraction
58 if isinstance(other, fractions.Fraction):
81 class DummyFraction(fractions.Fraction):
723 f = fractions.Fraction(myint(1 * 3), myint(2 * 3))
/third_party/skia/third_party/externals/harfbuzz/test/shape/data/in-house/
Dmeson.build11 'automatic-fractions.tests',
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DPluralSamples.java111 mentioned.addAll(fractions(mentioned)); in PluralSamples()
193 private Set<FixedDecimal> fractions(Set<FixedDecimal> original) { in fractions() method in PluralSamples
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralSamples.java109 mentioned.addAll(fractions(mentioned)); in PluralSamples()
191 private Set<FixedDecimal> fractions(Set<FixedDecimal> original) { in fractions() method in PluralSamples
/third_party/flutter/skia/third_party/externals/harfbuzz/test/shaping/data/in-house/
DMakefile.sources10 tests/automatic-fractions.tests \

1234567