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

Unified Diff: src/pkg/cmath/conj.go

Issue 874041: code review 874041: cmath pkg (Closed)
Patch Set: code review 874041: cmath pkg Created 14 years, 12 months ago
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/cmath/cmath_test.go ('k') | src/pkg/cmath/exp.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/cmath/conj.go
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/pkg/cmath/conj.go
@@ -0,0 +1,8 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package cmath
+
+// Conj returns the complex conjugate of x.
+func Conj(x complex128) complex128 { return cmplx(real(x), -imag(x)) }
« no previous file with comments | « src/pkg/cmath/cmath_test.go ('k') | src/pkg/cmath/exp.go » ('j') | no next file with comments »

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