Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Sqrt (0.02 sec)

  1. doc/go_spec.html

    the non-blank method and field names must be distinct.
    </p>
    
    <p>
    Given defined type <code>Point</code> the declarations
    </p>
    
    <pre>
    func (p *Point) Length() float64 {
    	return math.Sqrt(p.x * p.x + p.y * p.y)
    }
    
    func (p *Point) Scale(factor float64) {
    	p.x *= factor
    	p.y *= factor
    }
    </pre>
    
    <p>
    bind the methods <code>Length</code> and <code>Scale</code>,
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 06 19:12:15 UTC 2025
    - 286.2K bytes
    - Viewed (0)
Back to top