酒店预订平台
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

acot.php 756 B

3 yıl önce
12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. *
  4. * Function code for the complex acot() function
  5. *
  6. * @copyright Copyright (c) 2013-2018 Mark Baker (https://github.com/MarkBaker/PHPComplex)
  7. * @license https://opensource.org/licenses/MIT MIT
  8. */
  9. namespace Complex;
  10. /**
  11. * Returns the inverse cotangent of a complex number.
  12. *
  13. * @param Complex|mixed $complex Complex number or a numeric value.
  14. * @return Complex The inverse cotangent of the complex argument.
  15. * @throws Exception If argument isn't a valid real or complex number.
  16. * @throws \InvalidArgumentException If function would result in a division by zero
  17. */
  18. function acot($complex)
  19. {
  20. $complex = Complex::validateComplexArgument($complex);
  21. return atan(inverse($complex));
  22. }