ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
ln.php
Go to the documentation of this file.
1
<?
php
2
10
namespace
Complex
;
11
20
if
(!function_exists(__NAMESPACE__ .
'\\ln'
)) {
21
function
ln($complex):
Complex
22
{
23
$complex = Complex::validateComplexArgument($complex);
24
25
if
(($complex->getReal() == 0.0) && ($complex->getImaginary() == 0.0)) {
26
throw
new \InvalidArgumentException();
27
}
28
29
return
new
Complex
(
30
\log(rho($complex)),
31
theta($complex),
32
$complex->getSuffix()
33
);
34
}
35
}
Complex
php
libs
composer
vendor
markbaker
complex
classes
src
functions
ln.php
Generated on Sun Mar 2 2025 19:01:23 for ILIAS by
1.8.13 (using
Doxyfile
)