Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Commit

Permalink
go-tour: remove cube roots exercise
Browse files Browse the repository at this point in the history
Complex numbers aren't covered by the tour (yet) and this has always
been a pretty esoteric exercise. I'd like to replace it with something
more practical.

TBR=campoy
R=golang-codereviews
CC=golang-codereviews
https://codereview.appspot.com/111480043
  • Loading branch information
adg committed Jul 22, 2014
1 parent ef69d2e commit cf43b78
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 55 deletions.
11 changes: 0 additions & 11 deletions content/moretypes.article
Original file line number Diff line number Diff line change
Expand Up @@ -250,17 +250,6 @@ Implement a `fibonacci` function that returns a function (a closure) that return

.play prog/tour/exercise-fibonacci-closure.go


* Advanced Exercise: Complex cube roots

Let's explore Go's built-in support for complex numbers via the `complex64` and `complex128` types. For cube roots, Newton's method amounts to repeating:

.image /content/img/newton3.png

Find the cube root of 8, just to make sure the algorithm works. (There is a [[http://golang.org/pkg/math/cmplx/#Pow][Pow]] function in the `math/cmplx` package to check your results.)

.play prog/tour/advanced-exercise-complex-cube-roots.go

* Congratulations!

You finished this lesson!
Expand Down
12 changes: 0 additions & 12 deletions content/prog/tour/advanced-exercise-complex-cube-roots.go

This file was deleted.

32 changes: 0 additions & 32 deletions solutions/complexcube.go

This file was deleted.

0 comments on commit cf43b78

Please sign in to comment.