- <p >If you are more comfortable reading code than math, you could again compare the mathematical notation to a snippet of code that does a similar thing.<br></p><p >In this case, however, you should not that there is a more substantial difference between the code and the math. The mathematical expression provides the argmax over all real values that x can take from negative infinity to positive infinity. The code code can only ever check a finite number of values. Even if we’re sure that the answer is somewhere between 0 and 100, we need to take a finite number of steps between those two values. In between, say, 1 and 1.1, there are infinitely many values that we should check if we really want the answer.<br></p><p >In short, the code provides a naive approach to finding an approximate answer. The mathematical definition points to the perfect solution, but doesn’t tell us how to calculate it. <br></p><aside >Throughout the course we’ll look at many more clever algorithms to find a good approximation to a given number defined by argmax.</aside><aside ></aside>
0 commit comments