インフォ FAQ
言語 環境比較
 
Index
 
  Processing 1.0 _ALPHAリファレンスは開発途中である。
もしエラーやコメントがあれば、reas at groupc.netへメールして下さい。
Name  

sqrt()

   
Examples  
noStroke(); 
float a = sqrt(6561);  // a を 81に設定
float b = sqrt(625);   //  b を 25に設定
float c = sqrt(1);     //  c を1に設定 
rect(0, 25, a, 10); 
rect(0, 45, b, 10); 
rect(0, 65, c, 10); 
Description  

数の平行根を計算する。数の平方根はたとえ有効な負のルートであっても、いつも正の数になる。数の平方根ss*s = a.である。これは平方の逆である。

   
Syntax  
sqrt(value)
   
Parameters  
value   浮動少数点数: 負の数ではいけない

   
Returns   浮動少数点数
   
Usage   Web & Application
   
Related   pow()
sq()
   
© 2004- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas