ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
conjugate.php
Go to the documentation of this file.
1<?php
2
10namespace Complex;
11
19if (!function_exists(__NAMESPACE__ . '\\conjugate')) {
20 function conjugate($complex): Complex
21 {
22 $complex = Complex::validateComplexArgument($complex);
23
24 return new Complex(
25 $complex->getReal(),
26 -1 * $complex->getImaginary(),
27 $complex->getSuffix()
28 );
29 }
30}
An exception for terminatinating execution or to throw for unit testing.