ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Engineering.php
Go to the documentation of this file.
1 <?php
2 
4 
8 
13 {
20  public const EULER = 2.71828182845904523536;
21 
33  public static function parseComplex($complexNumber)
34  {
35  $complex = new Complex($complexNumber);
36 
37  return [
38  'real' => $complex->getReal(),
39  'imaginary' => $complex->getImaginary(),
40  'suffix' => $complex->getSuffix(),
41  ];
42  }
43 
66  public static function BESSELI($x, $ord)
67  {
68  return Engineering\BesselI::BESSELI($x, $ord);
69  }
70 
91  public static function BESSELJ($x, $ord)
92  {
93  return Engineering\BesselJ::BESSELJ($x, $ord);
94  }
95 
117  public static function BESSELK($x, $ord)
118  {
119  return Engineering\BesselK::BESSELK($x, $ord);
120  }
121 
142  public static function BESSELY($x, $ord)
143  {
144  return Engineering\BesselY::BESSELY($x, $ord);
145  }
146 
168  public static function BINTODEC($x)
169  {
171  }
172 
200  public static function BINTOHEX($x, $places = null)
201  {
202  return Engineering\ConvertBinary::toHex($x, $places);
203  }
204 
232  public static function BINTOOCT($x, $places = null)
233  {
234  return Engineering\ConvertBinary::toOctal($x, $places);
235  }
236 
268  public static function DECTOBIN($x, $places = null)
269  {
270  return Engineering\ConvertDecimal::toBinary($x, $places);
271  }
272 
304  public static function DECTOHEX($x, $places = null)
305  {
306  return Engineering\ConvertDecimal::toHex($x, $places);
307  }
308 
340  public static function DECTOOCT($x, $places = null)
341  {
342  return Engineering\ConvertDecimal::toOctal($x, $places);
343  }
344 
376  public static function HEXTOBIN($x, $places = null)
377  {
378  return Engineering\ConvertHex::toBinary($x, $places);
379  }
380 
403  public static function HEXTODEC($x)
404  {
406  }
407 
443  public static function HEXTOOCT($x, $places = null)
444  {
445  return Engineering\ConvertHex::toOctal($x, $places);
446  }
447 
485  public static function OCTTOBIN($x, $places = null)
486  {
487  return Engineering\ConvertOctal::toBinary($x, $places);
488  }
489 
512  public static function OCTTODEC($x)
513  {
515  }
516 
549  public static function OCTTOHEX($x, $places = null)
550  {
551  return Engineering\ConvertOctal::toHex($x, $places);
552  }
553 
573  public static function COMPLEX($realNumber = 0.0, $imaginary = 0.0, $suffix = 'i')
574  {
575  return Engineering\Complex::COMPLEX($realNumber, $imaginary, $suffix);
576  }
577 
595  public static function IMAGINARY($complexNumber)
596  {
597  return Engineering\Complex::IMAGINARY($complexNumber);
598  }
599 
616  public static function IMREAL($complexNumber)
617  {
618  return Engineering\Complex::IMREAL($complexNumber);
619  }
620 
637  public static function IMABS($complexNumber)
638  {
639  return ComplexFunctions::IMABS($complexNumber);
640  }
641 
659  public static function IMARGUMENT($complexNumber)
660  {
661  return ComplexFunctions::IMARGUMENT($complexNumber);
662  }
663 
680  public static function IMCONJUGATE($complexNumber)
681  {
682  return ComplexFunctions::IMCONJUGATE($complexNumber);
683  }
684 
701  public static function IMCOS($complexNumber)
702  {
703  return ComplexFunctions::IMCOS($complexNumber);
704  }
705 
722  public static function IMCOSH($complexNumber)
723  {
724  return ComplexFunctions::IMCOSH($complexNumber);
725  }
726 
743  public static function IMCOT($complexNumber)
744  {
745  return ComplexFunctions::IMCOT($complexNumber);
746  }
747 
764  public static function IMCSC($complexNumber)
765  {
766  return ComplexFunctions::IMCSC($complexNumber);
767  }
768 
785  public static function IMCSCH($complexNumber)
786  {
787  return ComplexFunctions::IMCSCH($complexNumber);
788  }
789 
806  public static function IMSIN($complexNumber)
807  {
808  return ComplexFunctions::IMSIN($complexNumber);
809  }
810 
827  public static function IMSINH($complexNumber)
828  {
829  return ComplexFunctions::IMSINH($complexNumber);
830  }
831 
848  public static function IMSEC($complexNumber)
849  {
850  return ComplexFunctions::IMSEC($complexNumber);
851  }
852 
869  public static function IMSECH($complexNumber)
870  {
871  return ComplexFunctions::IMSECH($complexNumber);
872  }
873 
890  public static function IMTAN($complexNumber)
891  {
892  return ComplexFunctions::IMTAN($complexNumber);
893  }
894 
911  public static function IMSQRT($complexNumber)
912  {
913  return ComplexFunctions::IMSQRT($complexNumber);
914  }
915 
932  public static function IMLN($complexNumber)
933  {
934  return ComplexFunctions::IMLN($complexNumber);
935  }
936 
953  public static function IMLOG10($complexNumber)
954  {
955  return ComplexFunctions::IMLOG10($complexNumber);
956  }
957 
974  public static function IMLOG2($complexNumber)
975  {
976  return ComplexFunctions::IMLOG2($complexNumber);
977  }
978 
995  public static function IMEXP($complexNumber)
996  {
997  return ComplexFunctions::IMEXP($complexNumber);
998  }
999 
1017  public static function IMPOWER($complexNumber, $realNumber)
1018  {
1019  return ComplexFunctions::IMPOWER($complexNumber, $realNumber);
1020  }
1021 
1039  public static function IMDIV($complexDividend, $complexDivisor)
1040  {
1041  return ComplexOperations::IMDIV($complexDividend, $complexDivisor);
1042  }
1043 
1061  public static function IMSUB($complexNumber1, $complexNumber2)
1062  {
1063  return ComplexOperations::IMSUB($complexNumber1, $complexNumber2);
1064  }
1065 
1082  public static function IMSUM(...$complexNumbers)
1083  {
1084  return ComplexOperations::IMSUM(...$complexNumbers);
1085  }
1086 
1103  public static function IMPRODUCT(...$complexNumbers)
1104  {
1105  return ComplexOperations::IMPRODUCT(...$complexNumbers);
1106  }
1107 
1128  public static function DELTA($a, $b = 0)
1129  {
1130  return Engineering\Compare::DELTA($a, $b);
1131  }
1132 
1152  public static function GESTEP($number, $step = 0)
1153  {
1154  return Engineering\Compare::GESTEP($number, $step);
1155  }
1156 
1174  public static function BITAND($number1, $number2)
1175  {
1176  return Engineering\BitWise::BITAND($number1, $number2);
1177  }
1178 
1196  public static function BITOR($number1, $number2)
1197  {
1198  return Engineering\BitWise::BITOR($number1, $number2);
1199  }
1200 
1218  public static function BITXOR($number1, $number2)
1219  {
1220  return Engineering\BitWise::BITXOR($number1, $number2);
1221  }
1222 
1240  public static function BITLSHIFT($number, $shiftAmount)
1241  {
1242  return Engineering\BitWise::BITLSHIFT($number, $shiftAmount);
1243  }
1244 
1262  public static function BITRSHIFT($number, $shiftAmount)
1263  {
1264  return Engineering\BitWise::BITRSHIFT($number, $shiftAmount);
1265  }
1266 
1290  public static function ERF($lower, $upper = null)
1291  {
1292  return Engineering\Erf::ERF($lower, $upper);
1293  }
1294 
1311  public static function ERFPRECISE($limit)
1312  {
1313  return Engineering\Erf::ERFPRECISE($limit);
1314  }
1315 
1337  public static function ERFC($x)
1338  {
1339  return Engineering\ErfC::ERFC($x);
1340  }
1341 
1352  public static function getConversionGroups()
1353  {
1355  }
1356 
1369  public static function getConversionGroupUnits($category = null)
1370  {
1372  }
1373 
1385  public static function getConversionGroupUnitDetails($category = null)
1386  {
1388  }
1389 
1400  public static function getConversionMultipliers()
1401  {
1403  }
1404 
1417  public static function getBinaryConversionMultipliers()
1418  {
1420  }
1421 
1442  public static function CONVERTUOM($value, $fromUOM, $toUOM)
1443  {
1444  return Engineering\ConvertUOM::CONVERT($value, $fromUOM, $toUOM);
1445  }
1446 }
static BITRSHIFT($number, $shiftAmount)
BITRSHIFT.
static BINTOOCT($x, $places=null)
BINTOOCT.
static getConversionGroupUnitDetails($category=null)
getConversionGroupUnitDetails.
static IMCONJUGATE($complexNumber)
IMCONJUGATE.
static IMARGUMENT($complexNumber)
IMARGUMENT.
static getConversionMultipliers()
getConversionMultipliers Returns an array of the Multiplier prefixes that can be used with Units of M...
Definition: ConvertUOM.php:495
static BITXOR($number1, $number2)
BITXOR.
static IMDIV($complexDividend, $complexDivisor)
IMDIV.
static BITAND($number1, $number2)
BITAND.
Definition: BitWise.php:35
static BITLSHIFT($number, $shiftAmount)
BITLSHIFT.
static BITAND($number1, $number2)
BITAND.
static BITOR($number1, $number2)
BITOR.
static HEXTOOCT($x, $places=null)
HEXTOOCT.
static DECTOOCT($x, $places=null)
DECTOOCT.
static OCTTOHEX($x, $places=null)
OCTTOHEX.
static IMSUB($complexNumber1, $complexNumber2)
IMSUB.
static getBinaryConversionMultipliers()
getBinaryConversionMultipliers.
static DECTOHEX($x, $places=null)
DECTOHEX.
static getConversionCategoryUnitDetails($category=null)
getConversionGroupUnitDetails.
Definition: ConvertUOM.php:474
static ERF($lower, $upper=null)
ERF.
Definition: Erf.php:30
static GESTEP($number, $step=0)
GESTEP.
static IMPRODUCT(... $complexNumbers)
IMPRODUCT.
static CONVERTUOM($value, $fromUOM, $toUOM)
CONVERTUOM.
static BITLSHIFT($number, $shiftAmount)
BITLSHIFT.
Definition: BitWise.php:118
static getConversionMultipliers()
getConversionMultipliers Returns an array of the Multiplier prefixes that can be used with Units of M...
static getConversionGroups()
getConversionGroups Returns a list of the different conversion groups for UOM conversions.
static static getConversionCategories()
getConversionGroups Returns a list of the different conversion groups for UOM conversions.
Definition: ConvertUOM.php:437
static toBinary($value, $places=null)
toBinary.
Definition: ConvertHex.php:35
static getConversionGroupUnits($category=null)
getConversionGroupUnits Returns an array of units of measure, for a specified conversion group...
static toOctal($value, $places=null)
toOctal.
Definition: ConvertHex.php:123
static IMSUM(... $complexNumbers)
IMSUM.
static getBinaryConversionMultipliers()
getBinaryConversionMultipliers Returns an array of the additional Multiplier prefixes that can be use...
Definition: ConvertUOM.php:506
static IMDIV($complexDividend, $complexDivisor)
IMDIV.
static DECTOBIN($x, $places=null)
DECTOBIN.
static getConversionCategoryUnits($category=null)
getConversionGroupUnits Returns an array of units of measure, for a specified conversion group...
Definition: ConvertUOM.php:455
static ERF($lower, $upper=null)
ERF.
static BINTOHEX($x, $places=null)
BINTOHEX.
static COMPLEX($realNumber=0.0, $imaginary=0.0, $suffix='i')
COMPLEX.
Definition: Complex.php:27
static ERFPRECISE($limit)
ERFPRECISE.
Definition: Erf.php:59
foreach( $_REQUEST as $var) foreach(array('_POST'=> 'HTTP_POST_VARS', '_GET'=> 'HTTP_GET_VARS', '_COOKIE'=> 'HTTP_COOKIE_VARS', '_SERVER'=> 'HTTP_SERVER_VARS', '_ENV'=> 'HTTP_ENV_VARS', '_FILES'=> 'HTTP_POST_FILES') as $array=> $other) $step
Definition: cssgen.php:155
static IMPOWER($complexNumber, $realNumber)
IMPOWER.
static IMAGINARY($complexNumber)
IMAGINARY.
static IMAGINARY($complexNumber)
IMAGINARY.
Definition: Complex.php:62
static IMSUB($complexNumber1, $complexNumber2)
IMSUB.
static BITXOR($number1, $number2)
BITXOR.
Definition: BitWise.php:90
static BITOR($number1, $number2)
BITOR.
Definition: BitWise.php:62
static CONVERT($value, $fromUOM, $toUOM)
CONVERT.
Definition: ConvertUOM.php:527
static COMPLEX($realNumber=0.0, $imaginary=0.0, $suffix='i')
COMPLEX.
static OCTTOBIN($x, $places=null)
OCTTOBIN.
static BITRSHIFT($number, $shiftAmount)
BITRSHIFT.
Definition: BitWise.php:148
static IMLOG10($complexNumber)
IMLOG10.
static parseComplex($complexNumber)
parseComplex.
Definition: Engineering.php:33
static HEXTOBIN($x, $places=null)
HEXTOBIN.
$x
Definition: complexTest.php:9