nature-of-code / noc-book

The Nature of Code book (archived repo, see README for new repo / build system!)

Home Page:http://natureofcode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

master-frits opened this issue · comments

commented

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