search
Homephp教程php手册关于php开平方问题

关于php开平方问题

Jun 06, 2016 pm 08:00 PM
phpaboutsquarealgorithmthisquestion

这个算法还搞不定。LuciferStar给我参考的...怕自己忘了,先写出来。 ----------- sqrt (PHP 3, PHP 4 ) sqrt -- 平方根 说明 float sqrt ( float arg) 返回 arg 的平方根。 ?php // Precision depends on your precision directive echo sqrt(9)

这个算法还搞不定。LuciferStar给我参考的...怕自己忘了,先写出来。

-----------

sqrt
(PHP 3, PHP 4 )

sqrt -- 平方根
说明
float sqrt ( float arg)


返回 arg 的平方根。

 

// Precision depends on your precision directive
echo sqrt(9); // 3
echo sqrt(10); // 3.16227766 ...
?>
 

 

参见 pow()。  

------------

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.