Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 25 of 60) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/decimaltestdata/
Dexp.decTest2 -- exp.decTest -- decimal natural exponentiation --
32 expx001 exp -Infinity -> 0
33 expx002 exp -10 -> 0.0000453999298 Inexact Rounded
34 expx003 exp -1 -> 0.367879441 Inexact Rounded
35 expx004 exp 0 -> 1
36 expx005 exp -0 -> 1
37 expx006 exp 1 -> 2.71828183 Inexact Rounded
38 expx007 exp 0.693147181 -> 2.00000000 Inexact Rounded
39 expx008 exp 10 -> 22026.4658 Inexact Rounded
40 expx009 exp +Infinity -> Infinity
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_fpformat.py37 num, exp = expected.split("e")
38 if len(exp) < 4:
39 exp = exp[0] + "0" + exp[1:]
40 expected = "%se%s" % (num, exp)
Dtest_long_future.py41 exp = max(d, DBL_MIN_EXP) - DBL_MANT_DIG
42 a, b = a << max(-exp, 0), b << max(exp, 0)
50 result = math.ldexp(float(q), exp)
148 for exp in range(base - 15, base + 15):
149 self.check_truediv(75312*2**max(exp, 0), 69187*2**max(-exp, 0))
150 self.check_truediv(69187*2**max(exp, 0), 75312*2**max(-exp, 0))
Dtest_pprint.py143 exp = """\
152 self.assertEqual(pprint.pformat(type(o)), exp)
155 exp = '[%s]' % ',\n '.join(map(str, o))
157 self.assertEqual(pprint.pformat(type(o)), exp)
160 exp = '(%s)' % ',\n '.join(map(str, o))
162 self.assertEqual(pprint.pformat(type(o)), exp)
166 exp = '[ %s]' % ',\n '.join(map(str, o))
168 self.assertEqual(pprint.pformat(type(o), indent=4), exp)
202 exp = """\
205 self.assertEqual(DottedPrettyPrinter().pformat(o), exp)
Dcmath_testcases.txt11 -- <function> is the function to be tested (exp, cos, asinh, ...),
1555 -- For exp, cosh, sinh, tanh we limit tests to arguments whose
1566 -- exp: Exponential function --
1570 exp0000 exp 0.0 0.0 -> 1.0 0.0
1571 exp0001 exp 0.0 -0.0 -> 1.0 -0.0
1572 exp0002 exp -0.0 0.0 -> 1.0 0.0
1573 exp0003 exp -0.0 -0.0 -> 1.0 -0.0
1576 exp0004 exp -17.957359009564684 -1.108613895795274 -> 7.0869292576226611e-09 -1.4225929202377833e-08
1577 exp0005 exp -1.4456149663368642e-15 -0.75359817331772239 -> 0.72923148323917997 -0.68426708517419033
1578 exp0006 exp -0.76008654883512661 -0.46657235480105019 -> 0.41764393109928666 -0.21035108396792854
[all …]
Dtest_pow.py31 exp = -othertype(i/10.0)
32 if exp == 0:
34 self.assertRaises(ZeroDivisionError, pow, zero, exp)
Dtest_math.py102 exp = rhs_pieces[0]
105 yield (id, fn, float(arg), float(exp), flags)
356 self.assertRaises(TypeError, math.exp)
357 self.ftest('exp(-1)', math.exp(-1), 1/math.e)
358 self.ftest('exp(0)', math.exp(0), 1)
359 self.ftest('exp(1)', math.exp(1), math.e)
360 self.assertEqual(math.exp(INF), INF)
361 self.assertEqual(math.exp(NINF), 0.)
362 self.assertTrue(math.isnan(math.exp(NAN)))
443 (mant, exp), (emant, eexp) = result, expected
[all …]
Dtest_strtod.py41 exp = int(m.group('exp') or '0') - len(fraction)
43 a, b = intpart*10**max(exp, 0), 10**max(0, -exp)
/device/linaro/bootloader/edk2/StdLib/Include/sys/
DEfiCdefs.h307 #define __predict_true(exp) __builtin_expect((exp) != 0, 1) argument
308 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) argument
310 #define __predict_true(exp) (exp) argument
311 #define __predict_false(exp) (exp) argument
/device/google/dragon/audio/hal/dsp/
Ddrc_math.h114 int exp = u.ieee.exponent; in frexpf_fast()
115 if (exp == 0xff) in frexpf_fast()
117 *e = exp - 126; in frexpf_fast()
135 float exp = e; in linear_to_decibels() local
139 exp += 0.5f; in linear_to_decibels()
156 + exp * 6.0205999132796239f; in linear_to_decibels()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Ddecimal.py558 exp = int(m.group('exp') or '0')
560 self._exp = exp - len(fracpart)
601 self._exp = int(value.exp)
708 exp = self._exp
709 if exp == 'n':
711 elif exp == 'N':
978 return hash((-1)**op.sign*op.int*pow(10, op.exp, 2**64-1))
1043 exp = ''
1047 exp = ['e', 'E'][context.capitals] + "%+d" % (leftdigits-dotplace)
1049 return sign + intpart + fracpart + exp
[all …]
Dfractions.py137 exp = m.group('exp')
138 if exp:
139 exp = int(exp)
140 if exp >= 0:
141 numerator *= 10**exp
143 denominator *= 10**-exp
197 sign, digits, exp = dec.as_tuple()
201 if exp >= 0:
202 return cls(digits * 10 ** exp)
204 return cls(digits, 10 ** -exp)
/device/linaro/bootloader/edk2/StdLib/LibC/Math/
Ds_ldexp.c23 ldexp(double value, int exp) in ldexp() argument
26 value = scalbn(value,exp); in ldexp()
Dw_exp.c30 exp(double x) /* wrapper exp */ in exp() function
/device/generic/goldfish/libqemu/
Dtest_host_2.c36 #define TEMP_FAILURE_RETRY(exp) ({ \ argument
37 typeof (exp) _rc; \
39 _rc = (exp); \
Dtest_host_1.c38 #define TEMP_FAILURE_RETRY(exp) ({ \ argument
39 typeof (exp) _rc; \
41 _rc = (exp); \
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/
Dscanner.py50 integer, frac, exp = m.groups()
51 if frac or exp:
52 res = parse_float(integer + (frac or '') + (exp or ''))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/
Dscanner.py50 integer, frac, exp = m.groups()
51 if frac or exp:
52 res = parse_float(integer + (frac or '') + (exp or ''))
/device/linaro/bootloader/arm-trusted-firmware/include/stdlib/sys/
Dcdefs.h371 #define __predict_true(exp) __builtin_expect((exp), 1) argument
372 #define __predict_false(exp) __builtin_expect((exp), 0) argument
374 #define __predict_true(exp) (exp) argument
375 #define __predict_false(exp) (exp) argument
/device/google/contexthub/firmware/lib/libm/
Dwf_exp.c94 double exp(double x) in exp() function
96 double exp(x) in exp()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_math.c178 u = exp(x); in _Py_expm1()
185 return exp(x) - 1.0; in _Py_expm1()
Dmathmodule.c297 r = -pi / sinpi(absx) / absx * exp(y) / lanczos_sum(absx); in m_tgamma()
309 r = lanczos_sum(absx) / exp(y); in m_tgamma()
444 result = acc * x * exp(-x2) / sqrtpi; in m_erf_series()
483 result = p / q * x * exp(-x2) / sqrtpi; in m_erfc_contfrac()
837 FUNC1(exp, exp, 1,
1187 long exp; in math_ldexp() local
1195 exp = PyLong_AsLongAndOverflow(oexp, &overflow); in math_ldexp()
1196 if (exp == -1 && PyErr_Occurred()) in math_ldexp()
1199 exp = overflow < 0 ? LONG_MIN : LONG_MAX; in math_ldexp()
1212 } else if (exp > INT_MAX) { in math_ldexp()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
D_math.c178 u = exp(x); in _Py_expm1()
185 return exp(x) - 1.0; in _Py_expm1()
Dmathmodule.c297 r = -pi / sinpi(absx) / absx * exp(y) / lanczos_sum(absx); in m_tgamma()
309 r = lanczos_sum(absx) / exp(y); in m_tgamma()
444 result = acc * x * exp(-x2) / sqrtpi; in m_erf_series()
483 result = p / q * x * exp(-x2) / sqrtpi; in m_erfc_contfrac()
837 FUNC1(exp, exp, 1,
1187 long exp; in math_ldexp() local
1195 exp = PyLong_AsLongAndOverflow(oexp, &overflow); in math_ldexp()
1196 if (exp == -1 && PyErr_Occurred()) in math_ldexp()
1199 exp = overflow < 0 ? LONG_MIN : LONG_MAX; in math_ldexp()
1212 } else if (exp > INT_MAX) { in math_ldexp()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dpystrtod.c746 int t, exp; in PyOS_double_to_string() local
831 frexp(val, &exp); in PyOS_double_to_string()
832 bufsize += exp/3; in PyOS_double_to_string()
946 int decpt_as_int, sign, exp_len, exp = 0, use_exp = 0; in format_float_short() local
1074 exp = decpt - 1; in format_float_short()
1168 exp_len = sprintf(p, "%+.02d", exp); in format_float_short()

123