Home >Backend Development >PHP Tutorial >常用数学函数_PHP

常用数学函数_PHP

WBOY
WBOYOriginal
2016-06-01 12:32:071005browse



常用数学函数(一)



 print(abs(-13));//打印绝对值
?>

 // 从 -1 到1打印acos函数的值
 print("\n");
 print("\n");
 for($index = -1; $index  {
  print("\n");
  print("\n");
  print("\n");
  print("\n");
 }
 print("
x acos(x)
$index" . acos($index) . "
\n");
?>

 //  从 -1 到 1打印asin函数的值
 print("\n");
 print("\n");
 for($index = -1; $index  {
  print("\n");
  print("\n");
  print("\n");
  print("\n");
 }
 print("
x asin(x)
$index" . asin($index) . "
\n");
?>



常用数学函数
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn