diff --git a/unitTests/rawTestData/Calculation/Engineering/BESSELI.data b/unitTests/rawTestData/Calculation/Engineering/BESSELI.data new file mode 100644 index 00000000..006f5b94 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/BESSELI.data @@ -0,0 +1,59 @@ +1.5, -1, "#NUM!" +-1, 6, 2.24886609492822E-05 +0, 3, 0.0 +3, 0, 4.88079256503329 +1, 5, 2.71463149585049E-04 +1.5, 1, 9.81666428475166E-01 +-1.5, 2.5, 3.37834620874438E-01 +-1.5, 14.99, 2.12185817580129E-13 +1, 30, 3.53950050502547E-42 +2.5, 1, 2.51671624202536 +2.5, 1.5, 2.51671624202536 +-2.5, 1.5, -2.51671624202536 +3.5, 1, 6.20583493206300 +0.7, 3, 7.36737336693427E-03 +3.5, 2, 3.83201207162936 +35, 2, 1.0695052240857E+14 // Calculation of values above 30/below -30 use the approximation +-35, 2, 1.06950522408568E+14 // method in PHPExcel (like in Open/Libre Office), so +-35, 3, -1.06950522408568E+14 // results are matched against Libre Office result. +-35, 4, 1.06950522408568E+14 +1.5, "XYZ", "#VALUE!" +"ABC", 3, "#VALUE!" +-9, 1, -1030.914709 +-3.5, 1, -6.205834932 +-0.735, 1, -0.392881517 +0, 1, 0 +0.035, 1, 0.01750268 +1, 1, 0.565159098 +1.5, 1, 0.981666428 +2.5, 1, 2.516716242 +3.5, 1, 6.205834932 +-9, 2, 864.4962206 +-3.5, 2, 3.832012072 +-0.735, 2, 0.070619941 +0, 2, 0 +0.035, 2, 0.000153141 +0.9, 2, 0.108259722 +1, 2, 0.135747667 +1.9, 2, 0.603272435 +2.5, 2, 1.276466159 +3.5, 2, 3.832012072 +4, 2, 6.422189499 +0.035, 3, 8.93298E-07 +0.7, 3, 0.007367373 +0.89, 3, 0.015428503 +4, 3, 3.337275843 +4, 5, 0.504724373 +1.5, 7, 2.84064E-05 +3, 9, 0.000132373 +-3.5, 0, 7.378203478 +-1.5, 0, 1.646723202 +0, 0, 1 +1, 0, 1.266065848 +1.5, 0, 1.646723202 +2.5, 0, 3.289839172 +3.5, 0, 7.378203478 +-3.5, -1, "#NUM!" +TRUE, 1, "#VALUE!" +1, TRUE, "#VALUE!" +21, 2, 104777856.3 diff --git a/unitTests/rawTestData/Calculation/Engineering/BESSELJ.data b/unitTests/rawTestData/Calculation/Engineering/BESSELJ.data new file mode 100644 index 00000000..493b4309 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/BESSELJ.data @@ -0,0 +1,37 @@ +1.5, -1, "#NUM!" +0, 1, 0.0 +1, 1, 4.40050585677130E-01 +1, 5, 2.49757730211234E-04 +1.9, 2, 3.29925828669785E-01 +-2.5, 1.5, -4.97094102504422E-01 +3.5, 1, 1.37377527178186E-01 +0.89, 3, 1.39740040278808E-02 +3.5, 2, 4.58629184768290E-01 +35, 2, 1.29359450880863E-01 // Calculation of values above 30/below -30 use the approximation +-35, 2, 1.29359450880863E-01 // method in PHPExcel (like in Open/Libre Office), so +-35, 3, 2.92070049360984E-02 // results are matched against Libre Office result. +-35, 4, -1.34366366012765E-01 +1.5, "XYZ", "#VALUE!" +"ABC", 3, "#VALUE!" +-3.5, 1, -0.137377527 +-0.735, 1, -0.343235775 +0, 1, 0 +0.035, 1, 0.01749732 +1.5, 1, 0.557936508 +2.5, 1, 0.497094103 +3.5, 1, 0.137377527 +-9, 2, 0.144846369 +-0.735, 2, 0.064538956 +0, 2, 0 +0.9, 2, 0.094586304 +1.9, 2, 0.329925829 +0.035, 2, 0.000153109 +3.5, 2, 0.458629185 +4, 2, 0.364128143 +0.035, 3, 8.93161E-07 +0.7, 3, 0.006929655 +0.89, 3, 0.013974004 +4, 3, 0.430171471 +4, 5, 0.132086656 +1.5, 7, 2.46798E-05 +3, 9, 8.4395E-05 diff --git a/unitTests/rawTestData/Calculation/Engineering/BESSELK.data b/unitTests/rawTestData/Calculation/Engineering/BESSELK.data new file mode 100644 index 00000000..139fa553 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/BESSELK.data @@ -0,0 +1,38 @@ +1.5, -1, "#NUM!" +0, 2, "#NUM!" +0.1, 3, 7.99001243265865E+03 +1, 0, 4.21024421083418E-01 +1.5, 0, 2.13805569323654E-01 +-1.5, 2, "#NUM!" +1.5, 1, 2.77387803632259E-01 +1.5, 2, 5.83655974166666E-01 +2.3, 1.5, 9.49824471429594E-02 +2.5, 1, 7.38908156502669E-02 +3.5, 1, 2.22393932246407E-02 +3.5, 3, 5.91618179913482E-02 +3, 9, 3.97958801062385E+02 +3.5, 2, 3.23071216708690E-02 +1.5, "XYZ", "#VALUE!" +"ABC", 3, "#VALUE!" +-3.5, 1, "#NUM!" +-0.735, 1, "#NUM!" +0, 1, "#NUM!" +0.035, 1, 28.50197 +1.5, 1, 0.277387804 +2.5, 1, 0.073890816 +3.5, 1, 0.022239393 +-9, 2, "#NUM!" +-0.735, 2, "#NUM!" +0, 2, "#NUM!" +0.9, 2, 2.07902713 +1.9, 2, 0.296909301 +0.035, 2, 1632.153707 +3.5, 2, 0.032307122 +4, 2, 0.017401426 +0.035, 3, 186560.3542 +0.7, 3, 21.97216891 +0.89, 3, 10.31747308 +4, 3, 0.029884924 +4, 5, 0.154342549 +1.5, 7, 2457.700453 +3, 9, 397.9588011 diff --git a/unitTests/rawTestData/Calculation/Engineering/BESSELY.data b/unitTests/rawTestData/Calculation/Engineering/BESSELY.data new file mode 100644 index 00000000..5f1a99dc --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/BESSELY.data @@ -0,0 +1,37 @@ +1.5, -1, "#NUM!" +1.23, 45.67, -2.70273112611750E+63 +2.5, 0, 4.98070358446689E-01 +2.5, 1, 1.45918137508313E-01 +2.5, 2, -3.81335848440038E-01 +3.5, 1, 4.10188416627698E-01 +3.5, 3, -3.58335346436229E-01 +4, 2, 2.15903599106990E-01 +3.5, 2, 4.53714364175350E-02 +12.5, 0, -1.71214306844669E-01 +12.5, 1, -1.53838256351639E-01 +12.5, 2, 1.46600185868054E-01 +12.5, 22, -3.57603435038787E+02 +1.5, "XYZ", "#VALUE!" +"ABC", 3, "#VALUE!" +-3.5, 1, "#NUM!" +-0.735, 1, "#NUM!" +0, 1, "#NUM!" +0.035, 1, -18.23333894 +1.5, 1, -0.412308627 +2.5, 1, 0.145918138 +3.5, 1, 0.410188417 +-9, 2, "#NUM!" +-0.735, 2, "#NUM!" +0, 2, "#NUM!" +0.9, 2, -1.945909607 +1.9, 2, -0.669878674 +0.035, 2, -1039.697941 +3.5, 2, 0.045371436 +4, 2, 0.215903599 +0.035, 3, -118804.3884 +0.7, 3, -15.81947907 +0.89, 3, -8.020441252 +4, 3, -0.18202211 +4, 5, -0.795851418 +1.5, 7, -1887.397034 +3, 9, -444.9595071 diff --git a/unitTests/rawTestData/Calculation/Engineering/BIN2DEC.data b/unitTests/rawTestData/Calculation/Engineering/BIN2DEC.data new file mode 100644 index 00000000..15b88256 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/BIN2DEC.data @@ -0,0 +1,8 @@ +"10110010", 178 +"111001010101", "#NUM!" +"101", 5 +"10", 2 +"0", 0 +"21", "#NUM!" +TRUE, "#VALUE!" +"1110010101", -107 diff --git a/unitTests/rawTestData/Calculation/Engineering/BIN2HEX.data b/unitTests/rawTestData/Calculation/Engineering/BIN2HEX.data new file mode 100644 index 00000000..78becf7f --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/BIN2HEX.data @@ -0,0 +1,8 @@ +"10110010", "B2" +"111001010101", "#NUM!" +"101", "5" +"10", "2" +"0", "0" +"21", "#NUM!" +TRUE, "#VALUE!" +"1110010101", "FFFFFFFF95" diff --git a/unitTests/rawTestData/Calculation/Engineering/BIN2OCT.data b/unitTests/rawTestData/Calculation/Engineering/BIN2OCT.data new file mode 100644 index 00000000..6b883efa --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/BIN2OCT.data @@ -0,0 +1,8 @@ +"10110010", 262 +"111001010101", "#NUM!" +"101", 5 +"10", 2 +"0", 0 +"21", "#NUM!" +TRUE, "#VALUE!" +"1110010101", 7777777625 \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Engineering/COMPLEX.data b/unitTests/rawTestData/Calculation/Engineering/COMPLEX.data new file mode 100644 index 00000000..9a286192 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/COMPLEX.data @@ -0,0 +1,545 @@ +12.34, 5.67, "j", "12.34+5.67j" +3.5, "A", "#VALUE!" +1.234E-5, 6.78E9, "1.234E-5+6780000000i" +1.234E5, 6.78E-9, "123400+6.78E-9i" +3.5, 2.5, "3.5+2.5i" +3.5, 1, "3.5+i" +3.5, 0, 3.5 +3.5, -1, "3.5-i" +3.5, -2.5, "3.5-2.5i" +1, 2.5, "1+2.5i" +1, 1, "1+i" +1, 0, 1 +1, -1, "1-i" +1, -2.5, "1-2.5i" +0, 2.5, "2.5i" +0, 1, "i" +0, 0, 0 +0, -1, "-i" +0, -2.5, "-2.5i" +-1, 2.5, "-1+2.5i" +-1, 1, "-1+i" +-1, 0, -1 +-1, -1, "-1-i" +-1, -2.5, "-1-2.5i" +-3.5, 2.5, "-3.5+2.5i" +-3.5, 1, "-3.5+i" +-3.5, 0, "-3.5" +-3.5, -1, "-3.5-i" +-3.5, -2.5, "-3.5-2.5i" +-2.5, -2.5, "-2.5-2.5i" +-2.5, -2.5, "-2.5-2.5i" +-1.5, -2.5, "-1.5-2.5i" +-1.5, -2.5, "-1.5-2.5i" +-0.5, -2.5, "-0.5-2.5i" +0, -2.5, "-2.5i" +0.5, -2.5, "0.5-2.5i" +1, -2.5, "1-2.5i" +1.5, -2.5, "1.5-2.5i" +2, -2.5, "2-2.5i" +2.5, -2.5, "2.5-2.5i" +3, -2.5, "3-2.5i" +3.5, -2.5, "3.5-2.5i" +-2.5, -2.5, "-2.5-2.5i" +-2.5, -2.5, "-2.5-2.5i" +-1.5, -2.5, "-1.5-2.5i" +-1.5, -2.5, "-1.5-2.5i" +-0.5, -2.5, "-0.5-2.5i" +0, -2.5, "-2.5i" +0.5, -2.5, "0.5-2.5i" +1, -2.5, "1-2.5i" +1.5, -2.5, "1.5-2.5i" +2, -2.5, "2-2.5i" +2.5, -2.5, "2.5-2.5i" +3, -2.5, "3-2.5i" +3.5, -2.5, "3.5-2.5i" +-2.5, -1.5, "-2.5-1.5i" +-2.5, -1.5, "-2.5-1.5i" +-1.5, -1.5, "-1.5-1.5i" +-1.5, -1.5, "-1.5-1.5i" +-0.5, -1.5, "-0.5-1.5i" +0, -1.5, "-1.5i" +0.5, -1.5, "0.5-1.5i" +1, -1.5, "1-1.5i" +1.5, -1.5, "1.5-1.5i" +2, -1.5, "2-1.5i" +2.5, -1.5, "2.5-1.5i" +3, -1.5, "3-1.5i" +3.5, -1.5, "3.5-1.5i" +-2.5, -1.5, "-2.5-1.5i" +-2.5, -1.5, "-2.5-1.5i" +-1.5, -1.5, "-1.5-1.5i" +-1.5, -1.5, "-1.5-1.5i" +-0.5, -1.5, "-0.5-1.5i" +0, -1.5, "-1.5i" +0.5, -1.5, "0.5-1.5i" +1, -1.5, "1-1.5i" +1.5, -1.5, "1.5-1.5i" +2, -1.5, "2-1.5i" +2.5, -1.5, "2.5-1.5i" +3, -1.5, "3-1.5i" +3.5, -1.5, "3.5-1.5i" +-2.5, -0.5, "-2.5-0.5i" +-2.5, -0.5, "-2.5-0.5i" +-1.5, -0.5, "-1.5-0.5i" +-1.5, -0.5, "-1.5-0.5i" +-0.5, -0.5, "-0.5-0.5i" +0, -0.5, "-0.5i" +0.5, -0.5, "0.5-0.5i" +1, -0.5, "1-0.5i" +1.5, -0.5, "1.5-0.5i" +2, -0.5, "2-0.5i" +2.5, -0.5, "2.5-0.5i" +3, -0.5, "3-0.5i" +3.5, -0.5, "3.5-0.5i" +-2.5, 0, -2.5 +-2.5, 0, -2.5 +-1.5, 0, -1.5 +-1.5, 0, -1.5 +-0.5, 0, -0.5 +0, 0, 0 +0.5, 0, 0.5 +1, 0, 1 +1.5, 0, 1.5 +2, 0, 2 +2.5, 0, 2.5 +3, 0, 3 +3.5, 0, 3.5 +-2.5, 0.5, "-2.5+0.5i" +-2.5, 0.5, "-2.5+0.5i" +-1.5, 0.5, "-1.5+0.5i" +-1.5, 0.5, "-1.5+0.5i" +-0.5, 0.5, "-0.5+0.5i" +0, 0.5, "0.5i" +0.5, 0.5, "0.5+0.5i" +1, 0.5, "1+0.5i" +1.5, 0.5, "1.5+0.5i" +2, 0.5, "2+0.5i" +2.5, 0.5, "2.5+0.5i" +3, 0.5, "3+0.5i" +3.5, 0.5, "3.5+0.5i" +-2.5, 1, "-2.5+i" +-2.5, 1, "-2.5+i" +-1.5, 1, "-1.5+i" +-1.5, 1, "-1.5+i" +-0.5, 1, "-0.5+i" +0, 1, "i" +0.5, 1, "0.5+i" +1, 1, "1+i" +1.5, 1, "1.5+i" +2, 1, "2+i" +2.5, 1, "2.5+i" +3, 1, "3+i" +3.5, 1, "3.5+i" +-2.5, 1.5, "-2.5+1.5i" +-2.5, 1.5, "-2.5+1.5i" +-1.5, 1.5, "-1.5+1.5i" +-1.5, 1.5, "-1.5+1.5i" +-0.5, 1.5, "-0.5+1.5i" +0, 1.5, "1.5i" +0.5, 1.5, "0.5+1.5i" +1, 1.5, "1+1.5i" +1.5, 1.5, "1.5+1.5i" +2, 1.5, "2+1.5i" +2.5, 1.5, "2.5+1.5i" +3, 1.5, "3+1.5i" +3.5, 1.5, "3.5+1.5i" +-2.5, 2, "-2.5+2i" +-2.5, 2, "-2.5+2i" +-1.5, 2, "-1.5+2i" +-1.5, 2, "-1.5+2i" +-0.5, 2, "-0.5+2i" +0, 2, "2i" +0.5, 2, "0.5+2i" +1, 2, "1+2i" +1.5, 2, "1.5+2i" +2, 2, "2+2i" +2.5, 2, "2.5+2i" +3, 2, "3+2i" +3.5, 2, "3.5+2i" +-2.5, 2.5, "-2.5+2.5i" +-2.5, 2.5, "-2.5+2.5i" +-1.5, 2.5, "-1.5+2.5i" +-1.5, 2.5, "-1.5+2.5i" +-0.5, 2.5, "-0.5+2.5i" +0, 2.5, "2.5i" +0.5, 2.5, "0.5+2.5i" +1, 2.5, "1+2.5i" +1.5, 2.5, "1.5+2.5i" +2, 2.5, "2+2.5i" +2.5, 2.5, "2.5+2.5i" +3, 2.5, "3+2.5i" +3.5, 2.5, "3.5+2.5i" +-2.5, 3, "-2.5+3i" +-2.5, 3, "-2.5+3i" +-1.5, 3, "-1.5+3i" +-1.5, 3, "-1.5+3i" +-0.5, 3, "-0.5+3i" +0, 3, "3i" +0.5, 3, "0.5+3i" +1, 3, "1+3i" +1.5, 3, "1.5+3i" +2, 3, "2+3i" +2.5, 3, "2.5+3i" +3, 3, "3+3i" +3.5, 3, "3.5+3i" +-2.5, 3.5, "-2.5+3.5i" +-2.5, 3.5, "-2.5+3.5i" +-1.5, 3.5, "-1.5+3.5i" +-1.5, 3.5, "-1.5+3.5i" +-0.5, 3.5, "-0.5+3.5i" +0, 3.5, "3.5i" +0.5, 3.5, "0.5+3.5i" +1, 3.5, "1+3.5i" +1.5, 3.5, "1.5+3.5i" +2, 3.5, "2+3.5i" +2.5, 3.5, "2.5+3.5i" +3, 3.5, "3+3.5i" +3.5, 3.5, "3.5+3.5i" +-2.5, -2.5, "i", "-2.5-2.5i" +-2.5, -2.5, "i", "-2.5-2.5i" +-1.5, -2.5, "i", "-1.5-2.5i" +-1.5, -2.5, "i", "-1.5-2.5i" +-0.5, -2.5, "i", "-0.5-2.5i" +0, -2.5, "i", "-2.5i" +0.5, -2.5, "i", "0.5-2.5i" +1, -2.5, "i", "1-2.5i" +1.5, -2.5, "i", "1.5-2.5i" +2, -2.5, "i", "2-2.5i" +2.5, -2.5, "i", "2.5-2.5i" +3, -2.5, "i", "3-2.5i" +3.5, -2.5, "i", "3.5-2.5i" +-2.5, -2.5, "i", "-2.5-2.5i" +-2.5, -2.5, "i", "-2.5-2.5i" +-1.5, -2.5, "i", "-1.5-2.5i" +-1.5, -2.5, "i", "-1.5-2.5i" +-0.5, -2.5, "i", "-0.5-2.5i" +0, -2.5, "i", "-2.5i" +0.5, -2.5, "i", "0.5-2.5i" +1, -2.5, "i", "1-2.5i" +1.5, -2.5, "i", "1.5-2.5i" +2, -2.5, "i", "2-2.5i" +2.5, -2.5, "i", "2.5-2.5i" +3, -2.5, "i", "3-2.5i" +3.5, -2.5, "i", "3.5-2.5i" +-2.5, -1.5, "i", "-2.5-1.5i" +-2.5, -1.5, "i", "-2.5-1.5i" +-1.5, -1.5, "i", "-1.5-1.5i" +-1.5, -1.5, "i", "-1.5-1.5i" +-0.5, -1.5, "i", "-0.5-1.5i" +0, -1.5, "i", "-1.5i" +0.5, -1.5, "i", "0.5-1.5i" +1, -1.5, "i", "1-1.5i" +1.5, -1.5, "i", "1.5-1.5i" +2, -1.5, "i", "2-1.5i" +2.5, -1.5, "i", "2.5-1.5i" +3, -1.5, "i", "3-1.5i" +3.5, -1.5, "i", "3.5-1.5i" +-2.5, -1.5, "i", "-2.5-1.5i" +-2.5, -1.5, "i", "-2.5-1.5i" +-1.5, -1.5, "i", "-1.5-1.5i" +-1.5, -1.5, "i", "-1.5-1.5i" +-0.5, -1.5, "i", "-0.5-1.5i" +0, -1.5, "i", "-1.5i" +0.5, -1.5, "i", "0.5-1.5i" +1, -1.5, "i", "1-1.5i" +1.5, -1.5, "i", "1.5-1.5i" +2, -1.5, "i", "2-1.5i" +2.5, -1.5, "i", "2.5-1.5i" +3, -1.5, "i", "3-1.5i" +3.5, -1.5, "i", "3.5-1.5i" +-2.5, -0.5, "i", "-2.5-0.5i" +-2.5, -0.5, "i", "-2.5-0.5i" +-1.5, -0.5, "i", "-1.5-0.5i" +-1.5, -0.5, "i", "-1.5-0.5i" +-0.5, -0.5, "i", "-0.5-0.5i" +0, -0.5, "i", "-0.5i" +0.5, -0.5, "i", "0.5-0.5i" +1, -0.5, "i", "1-0.5i" +1.5, -0.5, "i", "1.5-0.5i" +2, -0.5, "i", "2-0.5i" +2.5, -0.5, "i", "2.5-0.5i" +3, -0.5, "i", "3-0.5i" +3.5, -0.5, "i", "3.5-0.5i" +-2.5, 0, "i", -2.5 +-2.5, 0, "i", -2.5 +-1.5, 0, "i", -1.5 +-1.5, 0, "i", -1.5 +-0.5, 0, "i", -0.5 +0, 0, "i", 0 +0.5, 0, "i", 0.5 +1, 0, "i", 1 +1.5, 0, "i", 1.5 +2, 0, "i", 2 +2.5, 0, "i", 2.5 +3, 0, "i", 3 +3.5, 0, "i", 3.5 +-2.5, 0.5, "i", "-2.5+0.5i" +-2.5, 0.5, "i", "-2.5+0.5i" +-1.5, 0.5, "i", "-1.5+0.5i" +-1.5, 0.5, "i", "-1.5+0.5i" +-0.5, 0.5, "i", "-0.5+0.5i" +0, 0.5, "i", "0.5i" +0.5, 0.5, "i", "0.5+0.5i" +1, 0.5, "i", "1+0.5i" +1.5, 0.5, "i", "1.5+0.5i" +2, 0.5, "i", "2+0.5i" +2.5, 0.5, "i", "2.5+0.5i" +3, 0.5, "i", "3+0.5i" +3.5, 0.5, "i", "3.5+0.5i" +-2.5, 1, "i", "-2.5+i" +-2.5, 1, "i", "-2.5+i" +-1.5, 1, "i", "-1.5+i" +-1.5, 1, "i", "-1.5+i" +-0.5, 1, "i", "-0.5+i" +0, 1, "i", "i" +0.5, 1, "i", "0.5+i" +1, 1, "i", "1+i" +1.5, 1, "i", "1.5+i" +2, 1, "i", "2+i" +2.5, 1, "i", "2.5+i" +3, 1, "i", "3+i" +3.5, 1, "i", "3.5+i" +-2.5, 1.5, "i", "-2.5+1.5i" +-2.5, 1.5, "i", "-2.5+1.5i" +-1.5, 1.5, "i", "-1.5+1.5i" +-1.5, 1.5, "i", "-1.5+1.5i" +-0.5, 1.5, "i", "-0.5+1.5i" +0, 1.5, "i", "1.5i" +0.5, 1.5, "i", "0.5+1.5i" +1, 1.5, "i", "1+1.5i" +1.5, 1.5, "i", "1.5+1.5i" +2, 1.5, "i", "2+1.5i" +2.5, 1.5, "i", "2.5+1.5i" +3, 1.5, "i", "3+1.5i" +3.5, 1.5, "i", "3.5+1.5i" +-2.5, 2, "i", "-2.5+2i" +-2.5, 2, "i", "-2.5+2i" +-1.5, 2, "i", "-1.5+2i" +-1.5, 2, "i", "-1.5+2i" +-0.5, 2, "i", "-0.5+2i" +0, 2, "i", "2i" +0.5, 2, "i", "0.5+2i" +1, 2, "i", "1+2i" +1.5, 2, "i", "1.5+2i" +2, 2, "i", "2+2i" +2.5, 2, "i", "2.5+2i" +3, 2, "i", "3+2i" +3.5, 2, "i", "3.5+2i" +-2.5, 2.5, "i", "-2.5+2.5i" +-2.5, 2.5, "i", "-2.5+2.5i" +-1.5, 2.5, "i", "-1.5+2.5i" +-1.5, 2.5, "i", "-1.5+2.5i" +-0.5, 2.5, "i", "-0.5+2.5i" +0, 2.5, "i", "2.5i" +0.5, 2.5, "i", "0.5+2.5i" +1, 2.5, "i", "1+2.5i" +1.5, 2.5, "i", "1.5+2.5i" +2, 2.5, "i", "2+2.5i" +2.5, 2.5, "i", "2.5+2.5i" +3, 2.5, "i", "3+2.5i" +3.5, 2.5, "i", "3.5+2.5i" +-2.5, 3, "i", "-2.5+3i" +-2.5, 3, "i", "-2.5+3i" +-1.5, 3, "i", "-1.5+3i" +-1.5, 3, "i", "-1.5+3i" +-0.5, 3, "i", "-0.5+3i" +0, 3, "i", "3i" +0.5, 3, "i", "0.5+3i" +1, 3, "i", "1+3i" +1.5, 3, "i", "1.5+3i" +2, 3, "i", "2+3i" +2.5, 3, "i", "2.5+3i" +3, 3, "i", "3+3i" +3.5, 3, "i", "3.5+3i" +-2.5, 3.5, "i", "-2.5+3.5i" +-2.5, 3.5, "i", "-2.5+3.5i" +-1.5, 3.5, "i", "-1.5+3.5i" +-1.5, 3.5, "i", "-1.5+3.5i" +-0.5, 3.5, "i", "-0.5+3.5i" +0, 3.5, "i", "3.5i" +0.5, 3.5, "i", "0.5+3.5i" +1, 3.5, "i", "1+3.5i" +1.5, 3.5, "i", "1.5+3.5i" +2, 3.5, "i", "2+3.5i" +2.5, 3.5, "i", "2.5+3.5i" +3, 3.5, "i", "3+3.5i" +3.5, 3.5, "i", "3.5+3.5i" +-2.5, -2.5, "j", "-2.5-2.5j" +-2.5, -2.5, "j", "-2.5-2.5j" +-1.5, -2.5, "j", "-1.5-2.5j" +-1.5, -2.5, "j", "-1.5-2.5j" +-0.5, -2.5, "j", "-0.5-2.5j" +0, -2.5, "j", "-2.5j" +0.5, -2.5, "j", "0.5-2.5j" +1, -2.5, "j", "1-2.5j" +1.5, -2.5, "j", "1.5-2.5j" +2, -2.5, "j", "2-2.5j" +2.5, -2.5, "j", "2.5-2.5j" +3, -2.5, "j", "3-2.5j" +3.5, -2.5, "j", "3.5-2.5j" +-2.5, -2.5, "j", "-2.5-2.5j" +-2.5, -2.5, "j", "-2.5-2.5j" +-1.5, -2.5, "j", "-1.5-2.5j" +-1.5, -2.5, "j", "-1.5-2.5j" +-0.5, -2.5, "j", "-0.5-2.5j" +0, -2.5, "j", "-2.5j" +0.5, -2.5, "j", "0.5-2.5j" +1, -2.5, "j", "1-2.5j" +1.5, -2.5, "j", "1.5-2.5j" +2, -2.5, "j", "2-2.5j" +2.5, -2.5, "j", "2.5-2.5j" +3, -2.5, "j", "3-2.5j" +3.5, -2.5, "j", "3.5-2.5j" +-2.5, -1.5, "j", "-2.5-1.5j" +-2.5, -1.5, "j", "-2.5-1.5j" +-1.5, -1.5, "j", "-1.5-1.5j" +-1.5, -1.5, "j", "-1.5-1.5j" +-0.5, -1.5, "j", "-0.5-1.5j" +0, -1.5, "j", "-1.5j" +0.5, -1.5, "j", "0.5-1.5j" +1, -1.5, "j", "1-1.5j" +1.5, -1.5, "j", "1.5-1.5j" +2, -1.5, "j", "2-1.5j" +2.5, -1.5, "j", "2.5-1.5j" +3, -1.5, "j", "3-1.5j" +3.5, -1.5, "j", "3.5-1.5j" +-2.5, -1.5, "j", "-2.5-1.5j" +-2.5, -1.5, "j", "-2.5-1.5j" +-1.5, -1.5, "j", "-1.5-1.5j" +-1.5, -1.5, "j", "-1.5-1.5j" +-0.5, -1.5, "j", "-0.5-1.5j" +0, -1.5, "j", "-1.5j" +0.5, -1.5, "j", "0.5-1.5j" +1, -1.5, "j", "1-1.5j" +1.5, -1.5, "j", "1.5-1.5j" +2, -1.5, "j", "2-1.5j" +2.5, -1.5, "j", "2.5-1.5j" +3, -1.5, "j", "3-1.5j" +3.5, -1.5, "j", "3.5-1.5j" +-2.5, -0.5, "j", "-2.5-0.5j" +-2.5, -0.5, "j", "-2.5-0.5j" +-1.5, -0.5, "j", "-1.5-0.5j" +-1.5, -0.5, "j", "-1.5-0.5j" +-0.5, -0.5, "j", "-0.5-0.5j" +0, -0.5, "j", "-0.5j" +0.5, -0.5, "j", "0.5-0.5j" +1, -0.5, "j", "1-0.5j" +1.5, -0.5, "j", "1.5-0.5j" +2, -0.5, "j", "2-0.5j" +2.5, -0.5, "j", "2.5-0.5j" +3, -0.5, "j", "3-0.5j" +3.5, -0.5, "j", "3.5-0.5j" +-2.5, 0, "j", -2.5 +-2.5, 0, "j", -2.5 +-1.5, 0, "j", -1.5 +-1.5, 0, "j", -1.5 +-0.5, 0, "j", -0.5 +0, 0, "j", 0 +0.5, 0, "j", 0.5 +1, 0, "j", 1 +1.5, 0, "j", 1.5 +2, 0, "j", 2 +2.5, 0, "j", 2.5 +3, 0, "j", 3 +3.5, 0, "j", 3.5 +-2.5, 0.5, "j", "-2.5+0.5j" +-2.5, 0.5, "j", "-2.5+0.5j" +-1.5, 0.5, "j", "-1.5+0.5j" +-1.5, 0.5, "j", "-1.5+0.5j" +-0.5, 0.5, "j", "-0.5+0.5j" +0, 0.5, "j", "0.5j" +0.5, 0.5, "j", "0.5+0.5j" +1, 0.5, "j", "1+0.5j" +1.5, 0.5, "j", "1.5+0.5j" +2, 0.5, "j", "2+0.5j" +2.5, 0.5, "j", "2.5+0.5j" +3, 0.5, "j", "3+0.5j" +3.5, 0.5, "j", "3.5+0.5j" +-2.5, 1, "j", "-2.5+j" +-2.5, 1, "j", "-2.5+j" +-1.5, 1, "j", "-1.5+j" +-1.5, 1, "j", "-1.5+j" +-0.5, 1, "j", "-0.5+j" +0, 1, "j", "j" +0.5, 1, "j", "0.5+j" +1, 1, "j", "1+j" +1.5, 1, "j", "1.5+j" +2, 1, "j", "2+j" +2.5, 1, "j", "2.5+j" +3, 1, "j", "3+j" +3.5, 1, "j", "3.5+j" +-2.5, 1.5, "j", "-2.5+1.5j" +-2.5, 1.5, "j", "-2.5+1.5j" +-1.5, 1.5, "j", "-1.5+1.5j" +-1.5, 1.5, "j", "-1.5+1.5j" +-0.5, 1.5, "j", "-0.5+1.5j" +0, 1.5, "j", "1.5j" +0.5, 1.5, "j", "0.5+1.5j" +1, 1.5, "j", "1+1.5j" +1.5, 1.5, "j", "1.5+1.5j" +2, 1.5, "j", "2+1.5j" +2.5, 1.5, "j", "2.5+1.5j" +3, 1.5, "j", "3+1.5j" +3.5, 1.5, "j", "3.5+1.5j" +-2.5, 2, "j", "-2.5+2j" +-2.5, 2, "j", "-2.5+2j" +-1.5, 2, "j", "-1.5+2j" +-1.5, 2, "j", "-1.5+2j" +-0.5, 2, "j", "-0.5+2j" +0, 2, "j", "2j" +0.5, 2, "j", "0.5+2j" +1, 2, "j", "1+2j" +1.5, 2, "j", "1.5+2j" +2, 2, "j", "2+2j" +2.5, 2, "j", "2.5+2j" +3, 2, "j", "3+2j" +3.5, 2, "j", "3.5+2j" +-2.5, 2.5, "j", "-2.5+2.5j" +-2.5, 2.5, "j", "-2.5+2.5j" +-1.5, 2.5, "j", "-1.5+2.5j" +-1.5, 2.5, "j", "-1.5+2.5j" +-0.5, 2.5, "j", "-0.5+2.5j" +0, 2.5, "j", "2.5j" +0.5, 2.5, "j", "0.5+2.5j" +1, 2.5, "j", "1+2.5j" +1.5, 2.5, "j", "1.5+2.5j" +2, 2.5, "j", "2+2.5j" +2.5, 2.5, "j", "2.5+2.5j" +3, 2.5, "j", "3+2.5j" +3.5, 2.5, "j", "3.5+2.5j" +-2.5, 3, "j", "-2.5+3j" +-2.5, 3, "j", "-2.5+3j" +-1.5, 3, "j", "-1.5+3j" +-1.5, 3, "j", "-1.5+3j" +-0.5, 3, "j", "-0.5+3j" +0, 3, "j", "3j" +0.5, 3, "j", "0.5+3j" +1, 3, "j", "1+3j" +1.5, 3, "j", "1.5+3j" +2, 3, "j", "2+3j" +2.5, 3, "j", "2.5+3j" +3, 3, "j", "3+3j" +3.5, 3, "j", "3.5+3j" +-2.5, 3.5, "j", "-2.5+3.5j" +-2.5, 3.5, "j", "-2.5+3.5j" +-1.5, 3.5, "j", "-1.5+3.5j" +-1.5, 3.5, "j", "-1.5+3.5j" +-0.5, 3.5, "j", "-0.5+3.5j" +0, 3.5, "j", "3.5j" +0.5, 3.5, "j", "0.5+3.5j" +1, 3.5, "j", "1+3.5j" +1.5, 3.5, "j", "1.5+3.5j" +2, 3.5, "j", "2+3.5j" +2.5, 3.5, "j", "2.5+3.5j" +3, 3.5, "j", "3+3.5j" +3.5, 3.5, "j", "3.5+3.5j" +-1.23, -4.56, "-1.23-4.56i" +0, -3.21, "i", "-3.21i" +1.23, -2.34, "j", "1.23-2.34j" +-1.23, 0, -1.23 +0, 0, "i", 0 +1.23, 0, "j", 1.23 +-1.23, 4.56, "-1.23+4.56i" +0, 3.21, "i", "3.21i" +1.23, 2.34, "j", "1.23+2.34j" diff --git a/unitTests/rawTestData/Calculation/Engineering/CONVERTUOM.data b/unitTests/rawTestData/Calculation/Engineering/CONVERTUOM.data new file mode 100644 index 00000000..fe41bc1f --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/CONVERTUOM.data @@ -0,0 +1,12 @@ +1.0, "lbm", "kg", 0.453592 +68, "F", "C", 20 +20, "C", "F", 68 +68, "F", "K", 293.15 +293.15, "K", "F", 68 +22, "C", "K", 295.15 +295.65, "K", "C", 22.5 +2.5, "ft", "sec", "#N/A" +12345, "m", "km", 12.345 +12.345, "km", "m", 12345 +1, "km", "mi", 0.62137119223733 +"three","ft", "yds", "#VALUE!" diff --git a/unitTests/rawTestData/Calculation/Engineering/DEC2BIN.data b/unitTests/rawTestData/Calculation/Engineering/DEC2BIN.data new file mode 100644 index 00000000..751f78d4 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/DEC2BIN.data @@ -0,0 +1,10 @@ +357, "101100101" +1357, "#NUM!" +246, "11110110" +12345, "#NUM!" +123456789, "#NUM!" +123.45, "1111011" +0, "0" +"3579A", "#VALUE!" +TRUE, "#VALUE!" +-107, "1110010101" diff --git a/unitTests/rawTestData/Calculation/Engineering/DEC2HEX.data b/unitTests/rawTestData/Calculation/Engineering/DEC2HEX.data new file mode 100644 index 00000000..736d22c5 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/DEC2HEX.data @@ -0,0 +1,10 @@ +"357", "165" +"1357", "54D" +"246", "F6" +"12345", "3039" +"123456789", "75BCD15" +"123.45", "7B" +"0", "0" +"3579A", "#VALUE!" +TRUE, "#VALUE!" +"-107", "FFFFFFFF95" diff --git a/unitTests/rawTestData/Calculation/Engineering/DEC2OCT.data b/unitTests/rawTestData/Calculation/Engineering/DEC2OCT.data new file mode 100644 index 00000000..6982b049 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/DEC2OCT.data @@ -0,0 +1,10 @@ +"357", "545" +"1357", "2515" +"246", "366" +"12345", "30071" +"123456789", "726746425" +"123.45", "173" +"0", "0" +"3579A", "#VALUE!" +TRUE, "#VALUE!" +"-107", "7777777625" diff --git a/unitTests/rawTestData/Calculation/Engineering/DELTA.data b/unitTests/rawTestData/Calculation/Engineering/DELTA.data new file mode 100644 index 00000000..6f1d4493 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/DELTA.data @@ -0,0 +1,25 @@ +-1.5, -1.5, 1 +-0.75, -1.5, 0 +0, -1.5, 0 +0.75, -1.5, 0 +1.5, -1.5, 0 +-1.5, -0.75, 0 +-0.75, -0.75, 1 +0, -0.75, 0 +0.75, -0.75, 0 +1.5, -0.75, 0 +-1.5, 0, 0 +-0.75, 0, 0 +0, 0, 1 +0.75, 0, 0 +1.5, 0, 0 +-1.5, 0.75, 0 +-0.75, 0.75, 0 +0, 0.75, 0 +0.75, 0.75, 1 +1.5, 0.75, 0 +-1.5, 1.5, 0 +-0.75, 1.5, 0 +0, 1.5, 0 +0.75, 1.5, 0 +1.5, 1.5, 1 diff --git a/unitTests/rawTestData/Calculation/Engineering/ERF.data b/unitTests/rawTestData/Calculation/Engineering/ERF.data new file mode 100644 index 00000000..f7888d5a --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/ERF.data @@ -0,0 +1,121 @@ +0, 0.0 +0.01, 0.0112834155558496 +0.05, 0.0563719777970166 +0.1, 0.1124629160182850 +0.125, 0.1403162048013340 +0.15, 0.1679959714273630 +0.2, 0.2227025892104780 +0.25, 0.2763263901682370 +0.3, 0.3286267594591270 +0.35, 0.3793820535623100 +0.4, 0.4283923550466680 +0.45, 0.4754817197869240 +0.5, 0.5204998778130470 +0.6, 0.6038560908479260 +0.7, 0.6778011938374180 +0.8, 0.7421009647076610 +0.9, 0.7969082124228320 +1, 0.8427007929497150 +1.1, 0.8802050695740820 +1.2, 0.9103139782296350 +1.3, 0.9340079449406520 +1.4, 0.9522851197626490 +1.5, 0.9661051464753110 +1.75, 0.9866716712191820 +2, 0.9953222650189530 +2.5, 0.9995930479825550 +3, 0.9999779095030010 +3.5, 0.9999992569016280 +4, 0.9999999845827420 +4.5, 0.9999999998033840 +5, 0.9999999999984630 +5.5, 0.9999999999999930 +6, 1.0 +32, 1.0 +-0.1, -0.1124629160182850 +-1, -0.8427007929497150 +TRUE, "#VALUE!" +FALSE, "#VALUE!" +2, 0.9953222650189530 +"TWO", "#VALUE!" +-1.5, -1.5, 0 +-0.75, -1.5, -0.254949513 +0, -1.5, -0.966105146 +0.75, -1.5, -1.67726078 +1.5, -1.5, -1.932210293 +2.25, -1.5, -1.96464243 +3, -1.5, -1.966083056 +3.75, -1.5, -1.966105033 +4.5, -1.5, -1.966105146 +-1.5, -0.75, 0.254949513 +-0.75, -0.75, 0 +0, -0.75, -0.711155634 +0.75, -0.75, -1.422311267 +1.5, -0.75, -1.67726078 +2.25, -0.75, -1.709692917 +3, -0.75, -1.711133543 +3.75, -0.75, -1.71115552 +4.5, -0.75, -1.711155633 +-1.5, 0, 0.966105146 +-0.75, 0, 0.711155634 +0, 0, 0 +0.75, 0, -0.711155634 +1.5, 0, -0.966105146 +2.25, 0, -0.998537283 +3, 0, -0.99997791 +3.75, 0, -0.999999886 +4.5, 0, -1 +-1.5, 0.75, 1.67726078 +-0.75, 0.75, 1.422311267 +0, 0.75, 0.711155634 +0.75, 0.75, 0 +1.5, 0.75, -0.254949513 +2.25, 0.75, -0.28738165 +3, 0.75, -0.288822276 +3.75, 0.75, -0.288844253 +4.5, 0.75, -0.288844366 +-1.5, 1.5, 1.932210293 +-0.75, 1.5, 1.67726078 +0, 1.5, 0.966105146 +0.75, 1.5, 0.254949513 +1.5, 1.5, 0 +2.25, 1.5, -0.032432137 +3, 1.5, -0.033872763 +3.75, 1.5, -0.03389474 +4.5, 1.5, -0.033894853 +-1.5, 2.25, 1.96464243 +-0.75, 2.25, 1.709692917 +0, 2.25, 0.998537283 +0.75, 2.25, 0.28738165 +1.5, 2.25, 0.032432137 +2.25, 2.25, 0 +3, 2.25, -0.001440626 +3.75, 2.25, -0.001462603 +4.5, 2.25, -0.001462716 +-1.5, 3, 1.966083056 +-0.75, 3, 1.711133543 +0, 3, 0.99997791 +0.75, 3, 0.288822276 +1.5, 3, 0.033872763 +2.25, 3, 0.001440626 +3, 3, 0 +3.75, 3, -2.19768E-05 +4.5, 3, -2.20903E-05 +-1.5, 3.75, 1.966105033 +-0.75, 3.75, 1.71115552 +0, 3.75, 0.999999886 +0.75, 3.75, 0.288844253 +1.5, 3.75, 0.03389474 +2.25, 3.75, 0.001462603 +3, 3.75, 2.19768E-05 +3.75, 3.75, 0 +4.5, 3.75, -1.13531E-07 +-1.5, 4.5, 1.966105146 +-0.75, 4.5, 1.711155633 +0, 4.5, 1 +0.75, 4.5, 0.288844366 +1.5, 4.5, 0.033894853 +2.25, 4.5, 0.001462716 +3, 4.5, 2.20903E-05 +3.75, 4.5, 1.13531E-07 +4.5, 4.5, 0 diff --git a/unitTests/rawTestData/Calculation/Engineering/ERFC.data b/unitTests/rawTestData/Calculation/Engineering/ERFC.data new file mode 100644 index 00000000..e3d34730 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/ERFC.data @@ -0,0 +1,81 @@ +-1.5 ,-1.5, 0 +-0.75, -1.5, 0 +0, -1.5, 0 +0.75, -1.5, 0.288844366 +1.5, -1.5, 0.033894854 +2.25, -1.5, 0.001462717 +3, -1.5, 2.20905E-05 +3.75, -1.5, 1.13727E-07 +4.5, -1.5, 1.96616E-10 +-1.5, -0.75, 0 +-0.75, -0.75, 0 +0, -0.75, 0 +0.75, -0.75, 0.288844366 +1.5, -0.75, 0.033894854 +2.25, -0.75, 0.001462717 +3, -0.75, 2.20905E-05 +3.75, -0.75, 1.13727E-07 +4.5, -0.75, 1.96616E-10 +-1.5, 0, 0 +-0.75, 0, 0 +0, 0, 0 +0.75, 0, 0.288844366 +1.5, 0, 0.033894854 +2.25, 0, 0.001462717 +3, 0, 2.20905E-05 +3.75, 0, 1.13727E-07 +4.5, 0, 1.96616E-10 +-1.5, 0.75, 0 +-0.75, 0.75, 0 +0, 0.75, 0 +0.75, 0.75, 0.288844366 +1.5, 0.75, 0.033894854 +2.25, 0.75, 0.001462717 +3, 0.75, 2.20905E-05 +3.75, 0.75, 1.13727E-07 +4.5, 0.75, 1.96616E-10 +-1.5, 1.5, 0 +-0.75, 1.5, 0 +0, 1.5, 0 +0.75, 1.5, 0.288844366 +1.5, 1.5, 0.033894854 +2.25, 1.5, 0.001462717 +3, 1.5, 2.20905E-05 +3.75, 1.5, 1.13727E-07 +4.5, 1.5, 1.96616E-10 +-1.5, 2.25, 0 +-0.75, 2.25, 0 +0, 2.25, 0 +0.75, 2.25, 0.288844366 +1.5, 2.25, 0.033894854 +2.25, 2.25, 0.001462717 +3, 2.25, 2.20905E-05 +3.75, 2.25, 1.13727E-07 +4.5, 2.25, 1.96616E-10 +-1.5, 3, 0 +-0.75, 3, 0 +0, 3, 0 +0.75, 3, 0.288844366 +1.5, 3, 0.033894854 +2.25, 3, 0.001462717 +3, 3, 2.20905E-05 +3.75, 3, 1.13727E-07 +4.5, 3, 1.96616E-10 +-1.5, 3.75, 0 +-0.75, 3.75, 0 +0, 3.75, 0 +0.75, 3.75, 0.288844366 +1.5, 3.75, 0.033894854 +2.25, 3.75, 0.001462717 +3, 3.75, 2.20905E-05 +3.75, 3.75, 1.13727E-07 +4.5, 3.75, 1.96616E-10 +-1.5, 4.5, 0 +-0.75, 4.5, 0 +0, 4.5, 0 +0.75, 4.5, 0.288844366 +1.5, 4.5, 0.033894854 +2.25, 4.5, 0.001462717 +3, 4.5, 2.20905E-05 +3.75, 4.5, 1.13727E-07 +4.5, 4.5, 1.96616E-10 diff --git a/unitTests/rawTestData/Calculation/Engineering/GESTEP.data b/unitTests/rawTestData/Calculation/Engineering/GESTEP.data new file mode 100644 index 00000000..9b77a8ea --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/GESTEP.data @@ -0,0 +1,81 @@ +-1.5, -1.5, 1 +-0.75, -1.5, 1 +0, -1.5, 1 +0.75, -1.5, 1 +1.5, -1.5, 1 +2.25, -1.5, 1 +3, -1.5, 1 +3.75, -1.5, 1 +4.5, -1.5, 1 +-1.5, -0.75, 0 +-0.75, -0.75, 1 +0, -0.75, 1 +0.75, -0.75, 1 +1.5, -0.75, 1 +2.25, -0.75, 1 +3, -0.75, 1 +3.75, -0.75, 1 +4.5, -0.75, 1 +-1.5, 0, 0 +-0.75, 0, 0 +0, 0, 1 +0.75, 0, 1 +1.5, 0, 1 +2.25, 0, 1 +3, 0, 1 +3.75, 0, 1 +4.5, 0, 1 +-1.5, 0.75, 0 +-0.75, 0.75, 0 +0, 0.75, 0 +0.75, 0.75, 1 +1.5, 0.75, 1 +2.25, 0.75, 1 +3, 0.75, 1 +3.75, 0.75, 1 +4.5, 0.75, 1 +-1.5, 1.5, 0 +-0.75, 1.5, 0 +0, 1.5, 0 +0.75, 1.5, 0 +1.5, 1.5, 1 +2.25, 1.5, 1 +3, 1.5, 1 +3.75, 1.5, 1 +4.5, 1.5, 1 +-1.5, 2.25, 0 +-0.75, 2.25, 0 +0, 2.25, 0 +0.75, 2.25, 0 +1.5, 2.25, 0 +2.25, 2.25, 1 +3, 2.25, 1 +3.75, 2.25, 1 +4.5, 2.25, 1 +-1.5, 3, 0 +-0.75, 3, 0 +0, 3, 0 +0.75, 3, 0 +1.5, 3, 0 +2.25, 3, 0 +3, 3, 1 +3.75, 3, 1 +4.5, 3, 1 +-1.5, 3.75, 0 +-0.75, 3.75, 0 +0, 3.75, 0 +0.75, 3.75, 0 +1.5, 3.75, 0 +2.25, 3.75, 0 +3, 3.75, 0 +3.75, 3.75, 1 +4.5, 3.75, 1 +-1.5, 4.5, 0 +-0.75, 4.5, 0 +0, 4.5, 0 +0.75, 4.5, 0 +1.5, 4.5, 0 +2.25, 4.5, 0 +3, 4.5, 0 +3.75, 4.5, 0 +4.5, 4.5, 1 diff --git a/unitTests/rawTestData/Calculation/Engineering/HEX2BIN.data b/unitTests/rawTestData/Calculation/Engineering/HEX2BIN.data new file mode 100644 index 00000000..4815ff5c --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/HEX2BIN.data @@ -0,0 +1,10 @@ +"01AB", "110101011" +"ABCD", "#NUM!" +"F6", "11110110" +"12345", "#NUM!" +"123456789", "#NUM!" +"123.45", "#NUM!" +"0", "0" +"G3579A", "#NUM!" +TRUE, "#VALUE!" +"-107", "#NUM!" diff --git a/unitTests/rawTestData/Calculation/Engineering/HEX2DEC.data b/unitTests/rawTestData/Calculation/Engineering/HEX2DEC.data new file mode 100644 index 00000000..f29401eb --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/HEX2DEC.data @@ -0,0 +1,10 @@ +"01AB", "427" +"ABCD", "43981" +"F6", "246" +"12345", "74565" +"123456789", "4886718345" +"123.45", "#NUM!" +"0", "0" +"G3579A", "#NUM!" +TRUE, "#VALUE!" +"-107", "#NUM!" diff --git a/unitTests/rawTestData/Calculation/Engineering/HEX2OCT.data b/unitTests/rawTestData/Calculation/Engineering/HEX2OCT.data new file mode 100644 index 00000000..43bf78f8 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/HEX2OCT.data @@ -0,0 +1,10 @@ +"01AB", "653" +"ABCD", "125715" +"F6", "366" +"12345", "221505" +"123456789", "#NUM!" +"123.45", "#NUM!" +"0", "0" +"G3579A", "#NUM!" +TRUE, "#VALUE!" +"-107", "#NUM!" diff --git a/unitTests/rawTestData/Calculation/Engineering/IMABS.data b/unitTests/rawTestData/Calculation/Engineering/IMABS.data new file mode 100644 index 00000000..9e92e7e5 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMABS.data @@ -0,0 +1,27 @@ +"12.34+5.67j", 13.580298229420 +"1.234E-5+6.78E9i", 6.78E9 +"3.5+2.5i", 4.301162633521 +"3.5+i", 3.640054944640 +"3.5", 3.5 +"3.5-i", 3.640054944640 +"3.5-2.5i", 4.301162633521 +"1+2.5i", 2.692582403567 +"1+i", 1.414213562373 +"1", 1 +"1-i", 1.414213562373 +"1-2.5i", 2.692582403567 +"2.5i", 2.5 +"i", 1 +"0", 0 +"-i", 1 +"-2.5i", 2.5 +"-1+2.5i", 2.692582403567 +"-1+i", 1.414213562373 +"-1", 1 +"-1-i", 1.414213562373 +"-1-2.5i", 2.692582403567 +"-3.5+2.5i", 4.301162633521 +"-3.5+i", 3.640054944640 +"-3.5", 3.5 +"-3.5-i", 3.640054944640 +"-3.5-2.5i", 4.301162633521 \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Engineering/IMAGINARY.data b/unitTests/rawTestData/Calculation/Engineering/IMAGINARY.data new file mode 100644 index 00000000..9ae88e9d --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMAGINARY.data @@ -0,0 +1,30 @@ +"12.34+5.67j", 5.67 +"1.234E-5+6.78E9i", 6.78E9 +"3.5+2.5i", 2.5 +"3.5+i", 1 +"3.5", 0 +"3.5-i", -1 +"3.5-2.5i", -2.5 +"1+2.5i", 2.5 +"1+i", 1 +"1", 0 +1, 0 +"1-i", -1 +"1-2.5i", -2.5 +"2.5i", 2.5 +"i", 1 +"0", 0 +0, 0 +0.0, 0 +"-i", -1 +"-2.5i", -2.5 +"-1+2.5i", 2.5 +"-1+i", 1 +"-1", 0 +"-1-i", -1 +"-1-2.5i", -2.5 +"-3.5+2.5i", 2.5 +"-3.5+i", 1 +"-3.5", 0 +"-3.5-i", -1 +"-3.5-2.5i", -2.5 \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Engineering/IMARGUMENT.data b/unitTests/rawTestData/Calculation/Engineering/IMARGUMENT.data new file mode 100644 index 00000000..41967e65 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMARGUMENT.data @@ -0,0 +1,26 @@ +"12.34+5.67j", 0.430710595550 +"3.5+2.5i", 0.620249485983 +"3.5+i", 0.278299659005 +"3.5", 0 +"3.5-i", -0.278299659005 +"3.5-2.5i", -0.620249485983 +"1+2.5i", 1.190289949683 +"1+i", 0.785398163397 +"1", 0 +"1-i", -0.785398163397 +"1-2.5i", -1.190289949683 +"2.5i", 1.570796326795 +"i", 1.570796326795 +"0", "#DIV/0!" +"-i", -1.570796326795 +"-2.5i", -1.570796326795 +"-1+2.5i", 1.951302703907 +"-1+i", 2.356194490192 +"-1", 3.141592653590 +"-1-i", -2.356194490192 +"-1-2.5i", -1.951302703907 +"-3.5+2.5i", 2.521343167607 +"-3.5+i", 2.863292994585 +"-3.5", 3.141592653590 +"-3.5-i", -2.863292994585 +"-3.5-2.5i", -2.521343167607 \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Engineering/IMCONJUGATE.data b/unitTests/rawTestData/Calculation/Engineering/IMCONJUGATE.data new file mode 100644 index 00000000..46385ce0 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMCONJUGATE.data @@ -0,0 +1,26 @@ +"12.34+5.67j", "12.34-5.67j" +"3.5+2.5i", "3.5-2.5i" +"3.5+i", "3.5-i" +"3.5", "3.5" +"3.5-i", "3.5+i" +"3.5-2.5i", "3.5+2.5i" +"1+2.5i", "1-2.5i" +"1+i", "1-i" +"1", "1" +"1-i", "1+i" +"1-2.5i", "1+2.5i" +"2.5i", "-2.5i" +"i", "-i" +"0", "0" +"-i", "i" +"-2.5i", "2.5i" +"-1+2.5i", "-1-2.5i" +"-1+i", "-1-i" +"-1", "-1" +"-1-i", "-1+i" +"-1-2.5i", "-1+2.5i" +"-3.5+2.5i", "-3.5-2.5i" +"-3.5+i", "-3.5-i" +"-3.5", "-3.5" +"-3.5-i", "-3.5+i" +"-3.5-2.5i", "-3.5+2.5i" \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Engineering/IMCOS.data b/unitTests/rawTestData/Calculation/Engineering/IMCOS.data new file mode 100644 index 00000000..747d25f7 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMCOS.data @@ -0,0 +1,26 @@ +"12.34+5.67j", "141.319179436356+32.547610312508j" +"3.5+2.5i", "-5.74262349163406+2.12231025604134i" +"3.5+i", "-1.44502817950166+0.412240867891067i" +"3.5", "-0.936456687290796" +"3.5-i", "-1.44502817950166-0.412240867891067i" +"3.5-2.5i", "-5.74262349163406-2.12231025604134i" +"1+2.5i", "3.31329014611322-5.0910715229497i" +"1+i", "0.833730025131149-0.988897705762865i" +"1", "0.54030230586814" +"1-i", "0.833730025131149+0.988897705762865i" +"1-2.5i", "3.31329014611322+5.0910715229497i" +"2.5i", "6.13228947966369" +"i", "1.54308063481524" +"0", "1" +"-i", "1.54308063481524" +"-2.5i", "6.13228947966369" +"-1+2.5i", "3.31329014611322+5.0910715229497i" +"-1+i", "0.833730025131149+0.988897705762865i" +"-1", "0.54030230586814" +"-1-i", "0.833730025131149-0.988897705762865i" +"-1-2.5i", "3.31329014611322-5.0910715229497i" +"-3.5+2.5i", "-5.74262349163406-2.12231025604134i" +"-3.5+i", "-1.44502817950166-0.412240867891067i" +"-3.5", "-0.936456687290796" +"-3.5-i", "-1.44502817950166+0.412240867891067i" +"-3.5-2.5i", "-5.74262349163406+2.12231025604134i" \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Engineering/IMDIV.data b/unitTests/rawTestData/Calculation/Engineering/IMDIV.data new file mode 100644 index 00000000..c5ab4490 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMDIV.data @@ -0,0 +1,17 @@ +"12.34+5.67j", "123.45+67.89i", "#NUM!" +"12.34+5.67j", "123.45+67.89j", "0.0961415519586104-0.00694248653276682j" +"-12.34+5.67i", "-123.45+67.89i", "0.0961415519586104+0.00694248653276682i" +"-12.34-5.67i", "-123.45+67.89i", "0.0573549954111941+0.0774712890924744i" +"-12.34+5.67i", "-123.45-67.89i", "0.0573549954111941-0.0774712890924744i" +"-12.34-5.67i", "-123.45-67.89i", "0.0961415519586104-0.00694248653276682i" +"12.34+5.67i", "-123.45+67.89i", "-0.0573549954111941-0.0774712890924744i" +"12.34-5.67i", "-123.45+67.89i", "-0.0961415519586104-0.00694248653276682i" +"12.34+5.67i", "-123.45-67.89i", "-0.0961415519586104+0.00694248653276682i" +"12.34-5.67i", "-123.45-67.89i", "-0.0573549954111941+0.0774712890924744i" +"-12.34+5.67i", "123.45+67.89i", "-0.0573549954111941+0.0774712890924744i" +"-12.34-5.67i", "123.45+67.89i", "-0.0961415519586104+0.00694248653276682i" +"-12.34+5.67i", "123.45-67.89i", "-0.0961415519586104-0.00694248653276682i" +"-12.34-5.67i", "123.45-67.89i", "-0.0573549954111941-0.0774712890924744i" +"-12.34-5.67i", "123.45-67.89", "#NUM!" +"-12.34-5.67j", "123.45-67.89", "#NUM!" +"-12.34-5.67", "123.45-67.89j", "#NUM!" diff --git a/unitTests/rawTestData/Calculation/Engineering/IMEXP.data b/unitTests/rawTestData/Calculation/Engineering/IMEXP.data new file mode 100644 index 00000000..a7c12006 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMEXP.data @@ -0,0 +1,27 @@ +"12.34+5.67j", "187004.11273906-131589.323796073j" +"-12.34E-5+6.78E9i", "1.79747131321615E+308+1.79747131321615E+308i" +"3.5+2.5i", "-26.5302329126575+19.8186755366902i" +"3.5+i", "17.8923550531471+27.8656919720394i" +"3.5", "33.1154519586923" +"3.5-i", "17.8923550531471-27.8656919720394i" +"3.5-2.5i", "-26.5302329126575-19.8186755366902i" +"1+2.5i", "-2.17773413212721+1.62681595415671i" +"1+i", "1.46869393991589+2.28735528717884i" +"1", "2.71828182845905" +"1-i", "1.46869393991589-2.28735528717884i" +"1-2.5i", "-2.17773413212721-1.62681595415671i" +"2.5i", "-0.801143615546934+0.598472144103957i" +"i", "0.54030230586814+0.841470984807897i" +"0", "1" +"-i", "0.54030230586814-0.841470984807897i" +"-2.5i", "-0.801143615546934-0.598472144103957i" +"-1+2.5i", "-0.294724265585475+0.220165597929638i" +"-1+i", "0.198766110346413+0.309559875653112i" +"-1", "0.367879441171442" +"-1-i", "0.198766110346413-0.309559875653112i" +"-1-2.5i", "-0.294724265585475-0.220165597929638i" +"-3.5+2.5i", "-0.0241924409350133+0.0180722928030842i" +"-3.5+i", "0.016315715894263+0.025410221967i" +"-3.5", "0.0301973834223185" +"-3.5-i", "0.016315715894263-0.025410221967i" +"-3.5-2.5i", "-0.0241924409350133-0.0180722928030842i" \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Engineering/IMLN.data b/unitTests/rawTestData/Calculation/Engineering/IMLN.data new file mode 100644 index 00000000..597494b5 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMLN.data @@ -0,0 +1,27 @@ +"12.34+5.67j", "2.60862008281875+0.430710595550204j" +"-1.234E-5+6.78E9i", "22.6372429388987+1.5707963267949i" +"3.5+2.5i", "1.45888536604214+0.620249485982821i" +"3.5+i", "1.29199877621612+0.278299659005111i" +"3.5", "1.25276296849537" +"3.5-i", "1.29199877621612-0.278299659005111i" +"3.5-2.5i", "1.45888536604214-0.620249485982821i" +"1+2.5i", "0.990500734433292+1.19028994968253i" +"1+i", "0.346573590279973+0.785398163397448i" +"1", "0" +"1-i", "0.346573590279973-0.785398163397448i" +"1-2.5i", "0.990500734433292-1.19028994968253i" +"2.5i", "0.916290731874155+1.5707963267949i" +"i", "1.5707963267949i" +"0", "#NUM!" +"-i", "-1.5707963267949i" +"-2.5i", "0.916290731874155-1.5707963267949i" +"-1+2.5i", "0.990500734433292+1.95130270390726i" +"-1+i", "0.346573590279973+2.35619449019234i" +"-1", "3.14159265358979i" +"-1-i", "0.346573590279973-2.35619449019234i" +"-1-2.5i", "0.990500734433292-1.95130270390726i" +"-3.5+2.5i", "1.45888536604214+2.52134316760697i" +"-3.5+i", "1.29199877621612+2.86329299458468i" +"-3.5", "1.25276296849537+3.14159265358979i" +"-3.5-i", "1.29199877621612-2.86329299458468i" +"-3.5-2.5i", "1.45888536604214-2.52134316760697i" \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Engineering/IMLOG10.data b/unitTests/rawTestData/Calculation/Engineering/IMLOG10.data new file mode 100644 index 00000000..a1c9d5c2 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMLOG10.data @@ -0,0 +1,27 @@ +"12.34+5.67j", "1.13290930735019+0.187055234944717j" +"-12.34E-5+6.78E9i", "9.83122969386706+0.682188176920927i" +"3.5+2.5i", "0.633585864201507+0.269370929165668i" +"3.5+i", "0.561107939136413+0.120864006221476i" +"3.5", "0.544068044350276" +"3.5-i", "0.561107939136413-0.120864006221476i" +"3.5-2.5i", "0.633585864201507-0.269370929165668i" +"1+2.5i", "0.430169003285497+0.516936357012023i" +"1+i", "0.150514997831991+0.34109408846046i" +"1", "0" +"1-i", "0.150514997831991-0.34109408846046i" +"1-2.5i", "0.430169003285497-0.516936357012023i" +"2.5i", "0.397940008672038+0.68218817692092i" +"i", "0.68218817692092i" +"0", "#NUM!" +"-i", "-0.68218817692092i" +"-2.5i", "0.397940008672038-0.68218817692092i" +"-1+2.5i", "0.430169003285497+0.847439996829817i" +"-1+i", "0.150514997831991+1.02328226538138i" +"-1", "1.36437635384184i" +"-1-i", "0.150514997831991-1.02328226538138i" +"-1-2.5i", "0.430169003285497-0.847439996829817i" +"-3.5+2.5i", "0.633585864201507+1.09500542467617i" +"-3.5+i", "0.561107939136413+1.24351234762036i" +"-3.5", "0.544068044350276+1.36437635384184i" +"-3.5-i", "0.561107939136413-1.24351234762036i" +"-3.5-2.5i", "0.633585864201507-1.09500542467617i" \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Engineering/IMLOG2.data b/unitTests/rawTestData/Calculation/Engineering/IMLOG2.data new file mode 100644 index 00000000..ee5439bd --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMLOG2.data @@ -0,0 +1,27 @@ +"12.34+5.67j", "3.76344325733562+0.621384040306436j" +"-12.34E-5+6.78E9i", "32.6586381298614+2.26618007108803i" +"3.5+2.5i", "2.10472668297646+0.894830857610216i" +"3.5+i", "1.86396022742506+0.401501537958665i" +"3.5", "1.80735492219671" +"3.5-i", "1.86396022742506-0.401501537958665i" +"3.5-2.5i", "2.10472668297646-0.894830857610216i" +"1+2.5i", "1.42899049767377+1.71722540775913i" +"1+i", "0.500000000038482+1.13309003554401i" +"1", "0" +"1-i", "0.500000000038482-1.13309003554401i" +"1-2.5i", "1.42899049767377-1.71722540775913i" +"2.5i", "1.3219280949891+2.26618007108801i" +"i", "2.26618007108801i" +"0", "#NUM!" +"-i", "-2.26618007108801i" +"-2.5i", "1.3219280949891-2.26618007108801i" +"-1+2.5i", "1.42899049767377+2.81513473441689i" +"-1+i", "0.500000000038482+3.39927010663201i" +"-1", "4.53236014217602i" +"-1-i", "0.500000000038482-3.39927010663201i" +"-1-2.5i", "1.42899049767377-2.81513473441689i" +"-3.5+2.5i", "2.10472668297646+3.63752928456581i" +"-3.5+i", "1.86396022742506+4.13085860421736i" +"-3.5", "1.80735492219671+4.53236014217602i" +"-3.5-i", "1.86396022742506-4.13085860421736i" +"-3.5-2.5i", "2.10472668297646-3.63752928456581i" \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Engineering/IMPOWER.data b/unitTests/rawTestData/Calculation/Engineering/IMPOWER.data new file mode 100644 index 00000000..03700e7a --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMPOWER.data @@ -0,0 +1,13 @@ +"12.34+5.67j", 2, "120.1267+139.9356j" +"12.34+5.67j", 3, "688.928626+2407.923693j" +"12.34+5.67j", -1, "6.69108496973016E-002-3.07442883131037E-002j" +"12.34+5.67j", -2, "3.53185054333564E-003-4.11425290873718E-003j" +"12.34+5.67j", 0.5, "3.60002071031685+0.787495469644252j" +"12.34+5.67j", -0.25, "0.517904976730581-5.59833234375533E-002j" +"12.34+5.67j", 0, "1" +"-i", 2, "-1-1.34451369308841E-014i" +"1-i", 2, "1.22460635382238E-016-2i" +"2.5i", 2, "-6.25+8.40321058180257E-014i" +"2.5i", "2.5", "-6.98771242968685-6.98771242968684i" +"2.5i", "2.5i", "#VALUE!" +"2.5", "2.5", 9.88211768802619 diff --git a/unitTests/rawTestData/Calculation/Engineering/IMPRODUCT.data b/unitTests/rawTestData/Calculation/Engineering/IMPRODUCT.data new file mode 100644 index 00000000..5b49044f --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMPRODUCT.data @@ -0,0 +1,13 @@ +"12.34+5.67j", "123.45+67.89i", "#NUM!" +"12.34+5.67j", "12.34+5.67j" +"12.34+5.67i", "123.45+67.89i", "5.67", "6454.936089+8718.895647i" +"12.34+5.67j", "123.45+67.89j", "5.67", "6454.936089+8718.895647j" +"12.34+5.67j", "123.45+67.89j", "1138.4367+1537.7241j" +"12.34-5.67i", "123.45+67.89i", "1908.3093+137.8011i" +"12.34+5.67i", "123.45-67.89i", "1908.3093-137.8011i" +"12.34-5.67i", "123.45-67.89i", "1138.4367-1537.7241i" +"-12.34+5.67i", "123.45+67.89i", "-1908.3093-137.8011i" +"-12.34-5.67i", "123.45+67.89i", "-1138.4367-1537.7241i" +"12.34+5.67i", "-123.45+67.89i", "-1908.3093+137.8011i" +"-12.34+5.67i", "-123.45+67.89i", "1138.4367-1537.7241i" +"-12.34-5.67i", "-123.45-67.89i", "1138.4367+1537.7241i" diff --git a/unitTests/rawTestData/Calculation/Engineering/IMREAL.data b/unitTests/rawTestData/Calculation/Engineering/IMREAL.data new file mode 100644 index 00000000..881ba820 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMREAL.data @@ -0,0 +1,30 @@ +12.34+5.67j", 12.34 +"-1.234E-5+6.78E9i", -1.234E-5 +"3.5+2.5i", 3.5 +"3.5+i", 3.5 +"3.5", 3.5 +3.5, 3.5 +"3.5-i", 3.5 +"3.5-2.5i", 3.5 +"1+2.5i", 1 +"1+i", 1 +"1", 1 +1, 1 +"1-i", 1 +"1-2.5i", 1 +"2.5i", 0 +"i", 0 +"0", 0 +0, 0 +"-i", 0 +"-2.5i", 0 +"-1+2.5i", -1 +"-1+i", -1 +"-1", -1 +"-1-i", -1 +"-1-2.5i", -1 +"-3.5+2.5i", -3.5 +"-3.5+i", -3.5 +"-3.5", -3.5 +"-3.5-i", -3.5 +"-3.5-2.5i", -3.5 \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Engineering/IMSIN.data b/unitTests/rawTestData/Calculation/Engineering/IMSIN.data new file mode 100644 index 00000000..bb16fa9a --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMSIN.data @@ -0,0 +1,26 @@ +"12.34+5.67j", "-32.5483841590412+141.315819535092j" +"3.5+2.5i", "-2.15110429680353-5.66575444574645i" +"3.5+i", "-0.541286805665839-1.10052501669986i" +"3.5", "-0.35078322768962" +"3.5-i", "-0.541286805665839+1.10052501669986i" +"3.5-2.5i", "-2.15110429680353+5.66575444574645i" +"1+2.5i", "5.16014366757971+3.26893943207955i" +"1+i", "1.29845758141598+0.634963914784736i" +"1", "0.841470984807897" +"1-i", "1.29845758141598-0.634963914784736i" +"1-2.5i", "5.16014366757971-3.26893943207955i" +"2.5i", "6.05020448103979i" +"i", "1.1752011936438i" +"0", "0" +"-i", "-1.1752011936438i" +"-2.5i", "-6.05020448103979i" +"-1+2.5i", "-5.16014366757971+3.26893943207955i" +"-1+i", "-1.29845758141598+0.634963914784736i" +"-1", "-0.841470984807897" +"-1-i", "-1.29845758141598-0.634963914784736i" +"-1-2.5i", "-5.16014366757971-3.26893943207955i" +"-3.5+2.5i", "2.15110429680353-5.66575444574645i" +"-3.5+i", "0.541286805665839-1.10052501669986i" +"-3.5", "0.35078322768962" +"-3.5-i", "0.541286805665839+1.10052501669986i" +"-3.5-2.5i", "2.15110429680353+5.66575444574645i" \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Engineering/IMSQRT.data b/unitTests/rawTestData/Calculation/Engineering/IMSQRT.data new file mode 100644 index 00000000..fc040cff --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMSQRT.data @@ -0,0 +1,27 @@ +"12.34+5.67j", "3.60002071031685+0.787495469644252j" +"-1.234E-5+6.78E9i", "58223.7065120385+58223.7065120386i" +"3.5+2.5i", "1.9749889409211+0.632914936433528i" +"3.5+i", "1.88945163270197+0.264627043818521i" +"3.5", "1.87082869338697" +"3.5-i", "1.88945163270197-0.264627043818521i" +"3.5-2.5i", "1.9749889409211-0.632914936433528i" +"1+2.5i", "1.35878298553655+0.919940868634298i" +"1+i", "1.09868411346781+0.455089860562227i" +"1", "1" +"1-i", "1.09868411346781-0.455089860562227i" +"1-2.5i", "1.35878298553655-0.919940868634298i" +"2.5i", "1.11803398874989+1.11803398874989i" +"i", "0.707106781186548+0.707106781186547i" +"0", "0" +"-i", "0.707106781186548-0.707106781186547i" +"-2.5i", "1.11803398874989-1.11803398874989i" +"-1+2.5i", "0.919940868634298+1.35878298553655i" +"-1+i", "0.455089860562227+1.09868411346781i" +"-1", "6.12303176911189E-017+i" +"-1-i", "0.455089860562227-1.09868411346781i" +"-1-2.5i", "0.919940868634298-1.35878298553655i" +"-3.5+2.5i", "0.632914936433528+1.9749889409211i" +"-3.5+i", "0.264627043818521+1.88945163270197i" +"-3.5", "1.14551435241745E-016+1.87082869338697i" +"-3.5-i", "0.264627043818521-1.88945163270197i" +"-3.5-2.5i", "0.632914936433528-1.9749889409211i" \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Engineering/IMSUB.data b/unitTests/rawTestData/Calculation/Engineering/IMSUB.data new file mode 100644 index 00000000..fb0b85c3 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMSUB.data @@ -0,0 +1,10 @@ +"12.34+5.67j", "123.45+67.89i", "#NUM!" +"123.45+67.89j", "12.34+5.67j", "111.11+62.22j" +"12.34+5.67j", "123.45+67.89j", "-111.11-62.22j" +"12.34+5.67i", "123.45+67.89i", "123.45+67.89i", "-111.11-62.22i" +"-12.34-5.67i", "123.45-67.89i", "-135.79+62.22i" +"12.34-5.67i", "-123.45-67.89i", "135.79+62.22i" +"-12.34-5.67i", "-123.45-67.89i", "111.11+62.22i" +"-12.34-5.67i", "-123.45-67.89", "#NUM!" +"-12.34-5.67j", "-123.45-67.89", "#NUM!" +"-12.34-5.67", "-123.45-67.89j", "#NUM!" diff --git a/unitTests/rawTestData/Calculation/Engineering/IMSUM.data b/unitTests/rawTestData/Calculation/Engineering/IMSUM.data new file mode 100644 index 00000000..70f5cccd --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/IMSUM.data @@ -0,0 +1,10 @@ +"12.34+5.67j", "123.45+67.89i", "#NUM!" +"12.34+5.67j", "123.45+67.89j", "135.79+73.56j" +"12.34-5.67i", "123.45+67.89i", "135.79+62.22i" +"12.34+5.67i", "123.45-67.89i", "135.79-62.22i" +"12.34-5.67i", "123.45-67.89i", "135.79-73.56i" +"12.34+5.67i", "123.45+67.89i", "123.45+67.89i", "259.24+141.45i" +"12.34+5.67i", "123.45+67.89i", "123.45+67.89j", "#NUM!" +"-12.34-5.67i", "123.45-67.89i", "111.11-73.56i" +"12.34-5.67i", "-123.45-67.89i", "-111.11-73.56i" +"-12.34-5.67i", "-123.45-67.89i", "-135.79-73.56i" diff --git a/unitTests/rawTestData/Calculation/Engineering/OCT2BIN.data b/unitTests/rawTestData/Calculation/Engineering/OCT2BIN.data new file mode 100644 index 00000000..0c4f41e1 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/OCT2BIN.data @@ -0,0 +1,7 @@ +"1357", "#NUM!" +"246", "10100110" +"12345", "#NUM!" +"123.45", "#NUM!" +"0", "0" +TRUE, "#VALUE!" +"3579", "#NUM!" diff --git a/unitTests/rawTestData/Calculation/Engineering/OCT2DEC.data b/unitTests/rawTestData/Calculation/Engineering/OCT2DEC.data new file mode 100644 index 00000000..ae40123e --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/OCT2DEC.data @@ -0,0 +1,7 @@ +"1357", "751" +"246", "166" +"12345", "5349" +"123.45", "#NUM!" +"0", "0" +TRUE, "#VALUE!" +"3579", "#NUM!" diff --git a/unitTests/rawTestData/Calculation/Engineering/OCT2HEX.data b/unitTests/rawTestData/Calculation/Engineering/OCT2HEX.data new file mode 100644 index 00000000..82d76651 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Engineering/OCT2HEX.data @@ -0,0 +1,7 @@ +"1357", "2EF" +"246", "A6" +"12345", "14E5" +"123.45", "#NUM!" +"0", "0" +TRUE, "#VALUE!" +"3579", "#NUM!" diff --git a/unitTests/rawTestData/Calculation/Logical/AND.data b/unitTests/rawTestData/Calculation/Logical/AND.data new file mode 100644 index 00000000..b024b335 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Logical/AND.data @@ -0,0 +1,21 @@ +"#VALUE!" // No arguments +NULL, TRUE // NULL +TRUE, NULL, TRUE // Boolean TRUE and NULL +FALSE, NULL, FALSE // Boolean FALSE and NULL +TRUE, TRUE, TRUE // Both TRUE Booleans +TRUE, FALSE, FALSE // Mixed Booleans +FALSE, TRUE, FALSE // Mixed Booleans +FALSE, FALSE, FALSE // Both FALSE Booleans +TRUE, TRUE, FALSE, FALSE // Multiple Mixed Booleans +TRUE, TRUE, TRUE, TRUE // Multiple TRUE Booleans +FALSE, FALSE, FALSE, FALSE, FALSE // Multiple FALSE Booleans +-1, -2, TRUE +0, 0, FALSE +0, 1, FALSE +1, 1, TRUE +"1",1, "#VALUE!" +"TRUE", 1, TRUE // 'TRUE' String +"FALSE",TRUE, FALSE // 'FALSE' String +"ABCD", 1, "#VALUE!" // Non-numeric String +-2, 1, TRUE +-2, 0, FALSE diff --git a/unitTests/rawTestData/Calculation/Logical/IF.data b/unitTests/rawTestData/Calculation/Logical/IF.data new file mode 100644 index 00000000..75aaba92 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Logical/IF.data @@ -0,0 +1,7 @@ +0 +TRUE, 0 +FALSE, FALSE +TRUE, "ABC", "ABC" +FALSE, "ABC", FALSE +TRUE, "ABC", "XYZ", "ABC" +FALSE, "ABC", "XYZ", "XYZ" \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Logical/IFERROR.data b/unitTests/rawTestData/Calculation/Logical/IFERROR.data new file mode 100644 index 00000000..bf2cfc92 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Logical/IFERROR.data @@ -0,0 +1,4 @@ +TRUE, "Not an Error", "Not an Error" +"", "Error", "" +"ABC", "Error", "ABC" +"#VALUE!","Error", "Error" diff --git a/unitTests/rawTestData/Calculation/Logical/NOT.data b/unitTests/rawTestData/Calculation/Logical/NOT.data index d65a28d2..a96281ab 100644 --- a/unitTests/rawTestData/Calculation/Logical/NOT.data +++ b/unitTests/rawTestData/Calculation/Logical/NOT.data @@ -1,20 +1,20 @@ -,TRUE -NULL,TRUE --1,FALSE -0,TRUE -1,FALSE -2,FALSE --1.5,FALSE -1.5,FALSE -"-1","#VALUE!" -"0","#VALUE!" -"1","#VALUE!" -"2","#VALUE!" -"-1.5","#VALUE!" -"1.5","#VALUE!" -"","#VALUE!" -"ABC","#VALUE!" +TRUE +NULL, TRUE +-1, FALSE +0, TRUE +1, FALSE +2, FALSE +-1.5, FALSE +1.5, FALSE +"-1", "#VALUE!" +"0", "#VALUE!" +"1", "#VALUE!" +"2", "#VALUE!" +"-1.5", "#VALUE!" +"1.5", "#VALUE!" +"", "#VALUE!" +"ABC", "#VALUE!" "FALSE",TRUE -"TRUE",FALSE -TRUE,FALSE -FALSE,TRUE \ No newline at end of file +"TRUE", FALSE +TRUE, FALSE +FALSE, TRUE \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/Logical/OR.data b/unitTests/rawTestData/Calculation/Logical/OR.data new file mode 100644 index 00000000..9c2a7d08 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Logical/OR.data @@ -0,0 +1,20 @@ +"#VALUE!" // No arguments +NULL, FALSE // NULL +TRUE, NULL, TRUE // Boolean TRUE and NULL +FALSE, NULL, FALSE // Boolean FALSE and NULL +TRUE, TRUE, TRUE // Both TRUE Booleans +TRUE, FALSE, TRUE // Mixed Booleans +FALSE, TRUE, TRUE // Mixed Booleans +FALSE, FALSE, FALSE // Both FALSE Booleans +TRUE, TRUE, FALSE, TRUE // Multiple Mixed Booleans +TRUE, TRUE, TRUE, TRUE // Multiple TRUE Booleans +FALSE, FALSE, FALSE, FALSE, FALSE // Multiple FALSE Booleans +-1, -2, TRUE +0, 0, FALSE +0, 1, TRUE +1, 1, TRUE +"TRUE", 1, TRUE // 'TRUE' String +"FALSE",TRUE, TRUE // 'FALSE' String +"ABCD", 1, "#VALUE!" // Non-numeric String +-2, 1, TRUE +-2, 0, TRUE diff --git a/unitTests/rawTestData/Calculation/MathTrig/ATAN2.data b/unitTests/rawTestData/Calculation/MathTrig/ATAN2.data new file mode 100644 index 00000000..e7a49275 --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/ATAN2.data @@ -0,0 +1,7 @@ +0, 0, "#DIV/0!" +1, 1, 0.785398163397 +-1, -1, -2.356194490192 +-1, 1, 2.356194490192 +1, -1, -0.785398163397 +0.5, 1, 1.107148717794 +-0.5, 2, 1.815774989922 \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/MathTrig/CEILING.data b/unitTests/rawTestData/Calculation/MathTrig/CEILING.data new file mode 100644 index 00000000..763a1235 --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/CEILING.data @@ -0,0 +1,10 @@ +-2.341, -0.1, -2.4 +8, 0, 0 +8, 1.5, 9 +8, -1.5, "#NUM!" +-8, 1.5, "#NUM!" +-8, -1.5, -9 +8.26, 0.05, 8.3 +2.341, 0.05, 2.35 +123.456, "#VALUE!" +"PHPExcel", "#VALUE!" \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/MathTrig/COMBIN.data b/unitTests/rawTestData/Calculation/MathTrig/COMBIN.data new file mode 100644 index 00000000..a4f34c93 --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/COMBIN.data @@ -0,0 +1,13 @@ +7, 3, 35 +8, 2, 28 +8, 3, 56 +8, 4, 70 +100, 3, 161700 +-7, -10, "#NUM!" +2, 3, "#NUM!" +2, 2, 1 +2, 1, 2 +2, 0, 1 +7, -3, "#NUM!" +2.5, 2, 1 +"ABCD", "EFGH", "#VALUE!" \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/MathTrig/EVEN.data b/unitTests/rawTestData/Calculation/MathTrig/EVEN.data new file mode 100644 index 00000000..ade65229 --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/EVEN.data @@ -0,0 +1,13 @@ +, 0 +5.4, 6 +-5.4, -6 +1.5, 2 +0.1, 2 +3, 4 +2, 2 +-2, -2 +-1, -2 +"ABC", "#VALUE!" +TRUE, 2 +FALSE, 0 +0, 0 \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/MathTrig/FACT.data b/unitTests/rawTestData/Calculation/MathTrig/FACT.data new file mode 100644 index 00000000..64962295 --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/FACT.data @@ -0,0 +1,7 @@ +5, 120 +1.9, 1 +0, 1 +-1, "#NUM!" +1, 1 +3, 6 +"ABC", "#VALUE!" diff --git a/unitTests/rawTestData/Calculation/MathTrig/FACTDOUBLE.data b/unitTests/rawTestData/Calculation/MathTrig/FACTDOUBLE.data new file mode 100644 index 00000000..e9da4f05 --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/FACTDOUBLE.data @@ -0,0 +1,6 @@ +0, 1 +6, 48 +7, 105 +5, 15 +-1, "#NUM!" +"ABC", "#VALUE!" diff --git a/unitTests/rawTestData/Calculation/MathTrig/FLOOR.data b/unitTests/rawTestData/Calculation/MathTrig/FLOOR.data new file mode 100644 index 00000000..7b70de56 --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/FLOOR.data @@ -0,0 +1,9 @@ +2.5, 1, 2 +-2.5, -2, -2 +-2.5, 2, "#NUM!" +2.5, -2, "#NUM!" +123.456,0, "#DIV/0!" +1.5, 0.1, 1.5 +0.234, 0.01, 0.23 +123.456, "#VALUE!" +"ABC", "#VALUE!" \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/MathTrig/GCD.data b/unitTests/rawTestData/Calculation/MathTrig/GCD.data new file mode 100644 index 00000000..92cb47d9 --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/GCD.data @@ -0,0 +1,12 @@ +30, 15, 10, 5 +42, 56, 140, 14 +24, 28, 40, 4 +27, 45, 54, 9 +84, 126, 196, 14 +3, 5, 7, 1 +3, 5, 0, 1 +3, 5, -7, "#NUM!" +3, 6, 12, 3 +3, 6, "12", 3 +3, 6, "ABC", "#VALUE!" +3 3 \ No newline at end of file diff --git a/unitTests/rawTestData/Calculation/MathTrig/LCM.data b/unitTests/rawTestData/Calculation/MathTrig/LCM.data new file mode 100644 index 00000000..aa008dfa --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/LCM.data @@ -0,0 +1,8 @@ +5, 2, 10 +24, 36, 72 +3, 7, 12, 84 +24.9, 36.9, 72 +6, 22, 121, 726 +6, "ABC", "#VALUE!" +24, -12, "#NUM!" +3, 0, 0 diff --git a/unitTests/rawTestData/Calculation/MathTrig/ODD.data b/unitTests/rawTestData/Calculation/MathTrig/ODD.data new file mode 100644 index 00000000..c9e91106 --- /dev/null +++ b/unitTests/rawTestData/Calculation/MathTrig/ODD.data @@ -0,0 +1,13 @@ +, 1 +5.4, 7 +-5.4, -7 +1.5, 3 +0.1, 1 +3, 3 +2, 3 +-2, -3 +-1, -1 +"ABC", "#VALUE!" +TRUE, 1 +FALSE, 1 +0, 1 \ No newline at end of file