📄 cxtest.txt
字号:
begin unary tests
1.25607e-15
check pow(CX, int) against pow(CX, Real)
0
0
3.15541e-15
2.80649e-15
2.05332e-15
1.84394e-15
1.19854e-15
1.494e-15
1.57756e-15
1.04772e-15
5.79216e-16
8.28261e-16
3.05187e-16
1.53134e-16
0
1.71427e-16
3.30649e-16
7.83025e-16
6.3308e-16
1.10824e-15
1.53972e-15
1.61139e-15
1.24911e-15
1.9669e-15
2.20173e-15
2.80618e-15
3.06862e-15
0
0
check pow(Imag, int) against pow(Imag, Real)
1.60569e-15
1.51698e-15
1.52078e-15
1.78404e-15
1.32108e-15
1.13351e-15
9.70923e-16
8.78508e-16
7.2757e-16
6.44821e-16
5.03404e-16
3.69233e-16
2.40747e-16
1.17737e-16
0
1.1266e-16
2.20433e-16
3.23504e-16
5.19511e-16
7.07023e-16
7.91969e-16
8.73067e-16
1.03946e-15
1.11091e-15
1.26378e-15
1.83662e-15
1.46666e-15
1.47072e-15
1.57296e-15
check pow(Polar, int) against pow(Polar, Real)
3.54504e-15
2.77987e-15
3.18081e-15
2.21491e-15
1.9359e-15
2.0088e-15
1.40929e-15
1.7663e-15
1.59844e-15
1.00511e-15
6.71387e-16
8.04847e-16
3.49246e-16
1.7053e-16
0
1.43911e-16
3.17637e-16
8.26317e-16
6.05845e-16
9.89637e-16
1.61625e-15
1.75068e-15
1.19386e-15
1.84886e-15
2.05994e-15
2.24235e-15
3.18229e-15
2.78419e-15
3.53992e-15
spot check pow(CX, Real)
1.23384e-16
3.30649e-16
1.53134e-16
check ipow(Real, int) against pow(Real, Real)
0
0
5.9992e-16
5.68345e-16
5.31785e-16
4.1983e-16
4.41927e-16
3.87655e-16
3.26446e-16
2.57721e-16
1.80857e-16
9.51877e-17
1.00198e-16
0
0
0
0
0
1.1649e-16
9.91405e-17
9.62965e-17
1.58981e-16
1.83341e-16
2.1758e-16
3.01497e-16
2.78519e-16
3.43056e-16
0
0
check exponential for complex
0
1.62692e-16
check exponential for imaginary
0
1.24127e-16
check log for complex and polar
4.96507e-16
1.71427e-16
check log for imaginary
1.1266e-16
check sin, cos, tan for complex
3.08998e-14
1.35403e-16
3.10082e-14
check sin, cos, tan for imaginary
2.13588e-14
1.03669e-16
2.14672e-14
check sinh, cosh, tanh for complex
3.08998e-14
1.35403e-16
3.10082e-14
check sinh, cosh, tanh for imaginary
1.12187e-16
8.58536e-17
1.12187e-16
check sqrt for complex and polar
1.26161e-16
1.91948e-16
check sqrt for imag
1.11022e-16
check square for complex and polar
0
0
1.97373e-16
check sum_square for complex and polar
0
0
1.8886e-16
check square and sum_square for imaginary
0
0
check operator+ and operator- for complex and polar
0
0
1.0239e-16
0
1.0239e-16
check real, imag, conj for complex and polar
0
0
1.11022e-16
1.11022e-16
check real, imag, conj for imaginary
0
0
0
check arg for complex and polar
0
1.09184e-16
check arg for imaginary
0
check fabs and cabs for complex and polar
0
0
0
1.77636e-15
check fabs and cabs for imaginary
0
0
check norm1 for complex
0
check polar constructor
1.45043e-16
1.41451e-15
check polar variables access
0
check imag_as_imag
0
0
8.88178e-16
check imag_as_imag global function
0
0
8.88178e-16
end unary tests
begin binary tests
4.96507e-16
4.96507e-16
check complex op complex
0
0
3.97205e-15
9.93014e-16
check complex op real, real op complex
0
0
0
0
0
0
0
4.44089e-16
check complex op imag, imag op complex
0
0
0
0
0
0
0
4.44089e-16
check complex op _I_, _I_ op complex
0
0
0
0
0
0
0
5.55112e-17
check real op imag, imag op real
0
0
0
0
0
0
0
0
check imag op imag
0
0
0
0
check imag op _I_, _I_ op imag
0
0
0
0
0
0
0
0
check real op _I_, _I_ op real
0
0
0
0
0
0
0
0
check polar op polar
1.98603e-15
1.98603e-15
7.10543e-15
9.93014e-16
check complex op Polar, Polar op complex
9.93014e-16
9.93014e-16
9.93014e-16
9.93014e-16
check imag op Polar, Polar op imag
9.15513e-16
9.15513e-16
9.15513e-16
9.15513e-16
3.58036e-15
3.58036e-15
9.93014e-16
4.44089e-16
check real op Polar, Polar op real
9.15513e-16
9.15513e-16
9.15513e-16
9.15513e-16
3.58036e-15
3.58036e-15
9.93014e-16
4.44089e-16
check imag op Polar, Polar op imag
6.28037e-16
6.28037e-16
6.28037e-16
6.28037e-16
4.96507e-16
4.96507e-16
4.96507e-16
1.57009e-16
check complex op= complex
0
0
0
0
check complex op= real
0
0
0
0
check complex op= imag
0
0
0
0
check complex op= imag
0
0
0
0
check complex op= _I_
0
0
0
0
check complex op= polar
9.93014e-16
9.93014e-16
3.97205e-15
9.44183e-16
check imag op= imag
0
0
check imag op= real
0
0
check polar op= polar
1.98603e-15
1.98603e-15
7.10543e-15
9.93014e-16
check polar op= complex
1.98603e-15
1.98603e-15
7.10543e-15
9.93014e-16
check polar op= real
9.93014e-16
9.93014e-16
3.58036e-15
9.93014e-16
check polar op= imag
9.93014e-16
9.93014e-16
3.58036e-15
9.93014e-16
check polar op= imag
8.88178e-16
8.88178e-16
4.96507e-16
4.96507e-16
check complex ==, != complex
test passes
check polar ==, != polar
test passes
eq = 121; neq = 14520
check complex ==, != imag
test passes
eq = 121; neq = 14520
check imag ==, != complex
test passes
eq = 121; neq = 14520
check complex ==, != real
test passes
eq = 121; neq = 14520
check real ==, != complex
test passes
eq = 121; neq = 14520
check imag ==, != real
test passes
eq = 121; neq = 14520
check real ==, != imag
test passes
eq = 121; neq = 14520
check polar ==, != imag
test passes
eq = 121; neq = 14520
check imag ==, != polar
test passes
eq = 121; neq = 14520
check polar ==, != real
test passes
eq = 121; neq = 14520
check real ==, != polar
test passes
eq = 121; neq = 14520
check complex ==, != _I_ (both directions)
test passes
eq = 121; neq = 14520
check polar ==, != _I_ (both directions)
test passes
eq = 121; neq = 14520
check real ==, != _I_ (both directions)
test passes
eq = 0; neq = 14641
check imag ==, != _I_ (both directions)
test passes
eq = 1331; neq = 13310
check pow(CX, CX), pow(Polar, CX)
0
2.11056e-15
9.5641e-17
check pow(Real, CX), pow(Imag, CX)
1.8869e-15
1.00614e-15
check pow(CX, Real), pow(Polar, Real), pow(CX, Imag), pow(Polar, Imag)
0
0
6.88853e-16
9.84671e-16
check pow(Imag, Complex)
1.00614e-15
check pow(Real, Imag), pow(Imag, Imag)
2.51941e-16
2.40055e-16
end binary tests
maximum from cxtest1: 3.10082e-14
maximum from cxtest2: 7.10543e-15
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -