Skip to content

tour: Un-mathematical math in Sqrt exercise #11306

Closed
@tv42

Description

@tv42

https://tour.golang.org/flowcontrol/8

Newton's method for Sqrt is shown as

z = z - (x**2-x)/2x

which is weird. Math does not use the same z for noting two different values, that only happens for us imperative programmers. Perhaps it should say something like

  • z_1 = z_0 ..., with subscripts
  • z_(n+1) = z_n ...
  • z' = z ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions