mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
71 lines
4.2 KiB
Plaintext
71 lines
4.2 KiB
Plaintext
Integers:
|
||
|
||
Value Base Result
|
||
0 default 0
|
||
-23 default -23
|
||
23 hex 17
|
||
17 oct 27
|
||
|
||
|
||
Basic floating point values:
|
||
|
||
Value Precision Format Result
|
||
3 default default 3
|
||
3.14 default default 3.14
|
||
-1.23457e-24 default default -1.23457×10⁻²⁴
|
||
-1.234568e-24 3 scientific -1.235×10⁻²⁴
|
||
0 default default 0
|
||
-0 default default -0
|
||
0.000e+00 default scientific 0.000×10⁺⁰⁰
|
||
-0.000e+00 default scientific -0.000×10⁺⁰⁰
|
||
inf default default ∞
|
||
-inf default default -∞
|
||
nan default default NaN
|
||
|
||
|
||
Complex Values:
|
||
|
||
Value Precision Format Result
|
||
(3.25,4.67) default default 3.25 + 4.67i
|
||
(3.14,0) default default 3.14
|
||
(1.23,-1.23e-24) default default 1.23 - 1.23×10⁻²⁴i
|
||
(1.23,-1.23e-24) 3 scientific 1.230×10⁺⁰⁰ - 1.235×10⁻²⁴i
|
||
|
||
(1.23,-1.23e-24) slanted_i default 1.23 - 1.23×10⁻²⁴𝑖
|
||
(1.23,-1.23e-24) doublestruck_i default 1.23 - 1.23×10⁻²⁴ⅈ
|
||
Complex Zeros:
|
||
|
||
Value Precision Format Result
|
||
(0,0) default default 0
|
||
(0,0) default show_zero_components 0 + 0i
|
||
(3.14,0) default default 3.14
|
||
(3.14,0) default show_zero_components 3.14 + 0i
|
||
(-3.14,0) default default -3.14
|
||
(-3.14,0) default show_zero_components -3.14 + 0i
|
||
(0,25.3) default default 25.3i
|
||
(0,25.3) default show_zero_components 0 + 25.3i
|
||
(0,-25.3) default default -25.3i
|
||
(0,-25.3) default show_zero_components 0 - 25.3i
|
||
(inf,-25.3) default default ∞
|
||
(2,inf) default default ∞
|
||
(-inf,inf) default default ∞
|
||
(nan,-25.3) default default NaN
|
||
(3,nan) default default NaN
|
||
(nan,inf) default default NaN
|
||
(inf,nan) default default NaN
|
||
|
||
Rationals:
|
||
|
||
Value Result
|
||
1/3 ¹⁄₃
|
||
-1/3 -¹⁄₃
|
||
-345634/1695 -³⁴⁵⁶³⁴⁄₁₆₉₅
|
||
46189/262144 ⁴⁶¹⁸⁹⁄₂₆₂₁₄₄
|
||
|
||
Polynomials:
|
||
|
||
Integer: 2 - 3x + 4x² + 5x³
|
||
Float: 2.4 - 34.3x + 4.2×10⁻⁰⁶x² - 5.34×10⁻⁶⁶x³
|
||
Complex: (2.4 + 3.25i) - 34.3x + 4.2×10⁻⁰⁶ix² - (5.34×10⁻⁶⁶ - 4.65×10⁻²⁰i)x³
|
||
Rational: (²⁄₃) - (³⁄₂₃)x + (¹⁄₁₄)x² + (⁵⁄₃₂)x³
|