PHP有許多內建的trig數學函數,但是作爲其中的一個,反餘切似乎不可用。這也被稱爲arccot。有沒有人有相當於PHP的功能來計算這個?如何計算PHP中的arcot(inverse cotangent)?
2
A
回答
4
你在PHP中有arctan
?給定x
並且您想要計算機arccot(x)
,則可以計算arctan(1/x)
,因爲這等於arccot(x)
。
1
嘗試使用Math_Complex
PEAR包做:http://pear.php.net/manual/en/package.math.math-complex.math-complexop.acot.php
4
您可以use arctan(x) to calculate arccot(x):
function acot(x) {
return pi()/2 - atan(x);
}
相關問題
- 1. 計算t-inverse
- 2. Stable Cotangent
- 3. 計算apache公共區域中的t-inverse
- 4. 如何計算php
- 5. 如何計算PHP中的分鐘數
- 6. 如何在php中的表單計算?
- 7. 如何計算在PHP
- 8. 如何計算在PHP
- 9. PHP:如何計算行
- 10. 如何兩個PHP計算
- 11. 我如何計算在PHP
- 12. 如何在jqgrid中進行計算PHP
- 13. 我如何在php中計算日期
- 14. 如何在php中計算crc16
- 15. 如何在php中計算總價格
- 16. 如何在PHP中計算rand()
- 17. 如何用smarty php計算總計
- 18. 如何計算以PHP計算的持續時間
- 19. array_diff_assoc()的PHP inverse,刪除重複值
- 20. 如何計算嵌入的mongodb php?
- 21. 如何在計時器中計算所計算的時間?
- 22. PHP計算
- 23. PHP計算
- 24. PHP計算
- 25. PHP我如何計算相對時間?
- 26. PHP - 如何計算髮電機產量
- 27. PHP如何計算數組值?
- 28. 如何算多陣列計數PHP
- 29. 如何計算使用時間在php
- 30. php exec如何計算時間?