| 
                    
 This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com  | 
            |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
                 
                
    
    
                 | 
                
					
                    
                         
    4D v20.6
 
Square root 
                                
                                
        
 | 
                ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Square root ( number ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| number | Real | 
             
         | 
        Number whose square root is calculated | |||||
| Function result | Real | 
             
         | 
        Square root of the number | |||||
Square root returns the square root of number.
The line:
 $vrSquareRootOfTwo :=Square root(2)assigns the value 1.414213562373 to the variable $vrSquareRootOfTwo.
The following method returns the hypotenuse of the right triangle whose two legs are passed as parameters:
  ` Hypotenuse method
  ` Hypotenuse ( real ; real ) -> real
  ` Hypotenuse ( legA ; legB ) -> Hypotenuse
 C_REAL($0;$1;$2)
 $0:=Square root(($1^2)+($2^2))For instance, Hypotenuse
	Product:  4D
	Theme:  Math
	Number:  
        539
        
        
        
	
	Created:  4D v6
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D Language Reference ( 4D v20)
	
	
	4D Language Reference ( 4D v20.1)
	
	
	
	4D Language Reference ( 4D v20.2)
	
	4D Language Reference ( 4D v20.3)
	
	4D Language Reference ( 4D v20.4)
	
	
	4D Language Reference ( 4D v20.5)
	4D Language Reference ( 4D v20.6)
	
	
	
Add a comment