Бесплатноtest
Документ Samsung SamFirm_A.i.o_v1.4.3
math_testcases.txt
Документ23.8 KB0 скачиваний12.01.2026
Технические данные
из каталога- Тип
- Документ
- Производитель
- Samsung
- Модель
- SamFirm_A.i.o_v1.4.3
- Формат
- TXT
- Размер
- 23.8 KB
- Добавлен
- 12.01.2026
- Скачивания
- 0
О файле
Документ Samsung SamFirm_A.i.o_v1.4.3 в формате TXT, 23.8 KB. Путь в каталоге: Lib / test. Сведения о файле, совместимости и доступе к скачиванию.
из каталога
Содержимое файла
Кодировка: utf-8-- Testcases for functions in math. -- -- Each line takes the form: -- -- <testid> <function> <input_value> -> <output_value> <flags> -- -- where: -- -- <testid> is a short name identifying the test, -- -- <function> is the function to be tested (exp, cos, asinh, ...), -- -- <input_value> is a string representing a floating-point value -- -- <output_value> is the expected (ideal) output value, again -- represented as a string. -- -- <flags> is a list of the floating-point flags required by C99 -- -- The possible flags are: -- -- divide-by-zero : raised when a finite input gives a -- mathematically infinite result. -- -- overflow : raised when a finite input gives a finite result that -- is too large to fit in the usual range of an IEEE 754 double. -- -- invalid : raised for invalid inputs (e.g., sqrt(-1)) -- -- ignore-sign : indicates that the sign of the result is -- unspecified; e.g., if the result is given as inf, -- then both -inf and inf should be accepted as correct. -- -- Flags may appear in any order. -- -- Lines beginning with '--' (like this one) start a comment, and are -- ignored. Blank lines, or lines containing only whitespace, are also -- ignored. -- Many of the values below were computed with the help of -- version 2.4 of the MPFR library for multiple-precision -- floating-point computations with correct rounding. All output -- values in this file are (modulo yet-to-be-discovered bugs) -- correctly rounded, provided that each input and output decimal -- floating-point value below is interpreted as a representation of -- the corresponding nearest IEEE 754 double-precision value. See the -- MPFR homepage at http://www.mpfr.org for more information about the -- MPFR project. ------------------------- -- erf: error function -- ------------------------- erf0000 erf 0.0 -> 0.0 erf0001 erf -0.0 -> -0.0 erf0002 erf inf -> 1.0 erf0003 erf -inf -> -1.0 erf0004 erf nan -> nan -- tiny values erf0010 erf 1e-308 -> 1.1283791670955125e-308 erf0011 erf 5e-324 -> 4.9406564584124654e-324 erf0012 erf 1e-10 -> 1.1283791670955126e-10 -- small integers erf0020 erf 1 -> 0.84270079294971489 erf0021 erf 2 -> 0.99532226501895271 erf0022 erf 3 -> 0.99997790950300136 erf0023 erf 4 -> 0.99999998458274209 erf0024 erf 5 -> 0.99999999999846256 erf0025 erf 6 -> 1.0 erf0030 erf -1 -> -0.84270079294971489 erf0031 erf -2 -> -0.99532226501895271 erf0032 erf -3 -> -0.99997790950300136 erf0033 erf -4 -> -0.99999998458274209 erf0034 erf -5 -> -0.99999999999846256 erf0035 erf -6 -> -1.0 -- huge values should all go to +/-1, depending on sign erf0040 erf -40 -> -1.0 erf0041 erf 1e16 -> 1.0 erf0042 erf -1e150 -> -1.0 erf0043 erf 1.7e308 -> 1.0 -- Issue 8986: inputs x with exp(-x*x) near the underflow threshold -- incorrectly signalled overflow on some platforms. erf0100 erf 26.2 -> 1.0 erf0101 erf 26.4 -> 1.0 erf0102 erf 26.6 -> 1.0 e
Отзывы и обсуждение
0 комментариев
Комментариев пока нет
Скачали файл? Расскажите, подошёл ли он и что помогло. Первый отзыв особенно полезен.