84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
PHP有开平方的函数sqrt(),但是我现在想开一个数的1.2次方,有什么好办法?只能自己写一个函数?
闭关修行中......
看错了=。= , 用pow() . 数学原理 25的开平方会是,25的1/2次方, 所以 25的开1.2次方会是,25的1/1.2次方 pow(25,1/1.2)
用pow()函数,比如100开1.2次方 就是100的1/1.2次方,写成pow(100,1/1.2)
php5.6使用echo 25**(1/1.2);//14.620088691064
echo 25**(1/1.2);//14.620088691064
看错了=。= , 用pow() . 数学原理 25的开平方会是,25的1/2次方, 所以 25的开1.2次方会是,25的1/1.2次方 pow(25,1/1.2)
用pow()函数,比如100开1.2次方 就是100的1/1.2次方,写成pow(100,1/1.2)
php5.6使用
echo 25**(1/1.2);//14.620088691064