Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Import path for cmplx should be specified #30

Closed
GoogleCodeExporter opened this issue May 18, 2015 · 2 comments
Closed

Import path for cmplx should be specified #30

GoogleCodeExporter opened this issue May 18, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

I flailed a bit when trying to implement and test complex
cube root (exercise on page 46) because I was trying to:

import "cmplx"

This failed with:

# command-line-arguments
.\cbrt.go:13: imported and not used: "cmplx"
.\cbrt.go:25: undefined: cmplx

Because the correct path is "math/cmplx", which it
took me 10 minutes to figure out.  Perhaps the hint about
cmplx.Pow could mention the path for the package.

Original issue reported on code.google.com by James.Sy...@gmail.com on 1 Apr 2012 at 12:48

@GoogleCodeExporter
Copy link
Author

Original comment by a...@golang.org on 1 Apr 2012 at 8:37

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision d18093f860f1.

Original comment by a...@golang.org on 1 Apr 2012 at 8:46

  • Changed state: Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant