Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(221)

Side by Side Diff: src/pkg/math/cmplx/phase.go

Issue 5332053: code review 5332053: html,log,math: renamings (Closed)
Patch Set: diff -r 9d2976cf80fc https://go.googlecode.com/hg/ Created 13 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/math/cmplx/log.go ('k') | src/pkg/math/cmplx/polar.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Go Authors. All rights reserved. 1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package cmath 5 package cmath
6 6
7 import "math" 7 import "math"
8 8
9 // Phase returns the phase (also called the argument) of x. 9 // Phase returns the phase (also called the argument) of x.
10 // The returned value is in the range [-Pi, Pi]. 10 // The returned value is in the range [-Pi, Pi].
11 func Phase(x complex128) float64 { return math.Atan2(imag(x), real(x)) } 11 func Phase(x complex128) float64 { return math.Atan2(imag(x), real(x)) }
OLDNEW
« no previous file with comments | « src/pkg/math/cmplx/log.go ('k') | src/pkg/math/cmplx/polar.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b