nature-of-code / noc-book

The Nature of Code book (archived repo, see README for new repo / build system!)
http://natureofcode.com
1.94k stars 365 forks source link

chapter 6.7 The Dot Product, wrong answer in first example on website #119

Closed master-frits closed 5 years ago

master-frits commented 7 years ago

it is on page http://natureofcode.com/book/chapter-6-autonomous-agents/#chapter06_section7

It is about chapter 6.7 The Dot Product

The first numeric example.

A = (-3, 5) B = (10, 1)

A . B = -3 10 + 5 1 = -30 + 5 = .... -25 and not: 35