Machine Learning in Elixir: BerryFarm equation/graph inconsistent

@seanmor5 - In chapter 3, I was not able to get the first Berry Farm graph (page 89) to display the same way as in the book. The equation for it (page 88) - using Nx methods - appears to be -x**4 + (2x**3) + x**2

… however looking closer at the second definition of the Berry Farm equation on page 90 it appears to be different -(x-1)**4 + x**3 + x**2

and when I changed the first version to match the second I DID get the correct graph.

So I think that the initial NX equation on page 88 is out of date?

It’s also unclear why the 1st version (page 88) is using NX, but the 2nd version (page 90) is using regular math operators?