“If you stop at general math, you're only going to make general math money.” - Snoop Dogg The importance of math The main emphasis of the homework in this class is helping you learn the math skills required to flourish in Computer Science. You will find these skills indispensable as you tackled more and more difficult topics in Computer Science. Remember that the "Science" part of Computer Science corresponds primarily to Mathematics. In this homework, we will review some basic topics that you should be familiar with from high school math. Functions The first four questions cover mathematical functions. We recommend that you review the material on Functions from week 1 before attempting them. Consider the following Python function: Which mathematical function below computes the same value as this function? def root (a, b, c): discriminant = b ** 2 - 4 * a * c return (-b - discriminant ** 0.5) / (2 * a) 

Home » “If you stop at general math, you’re only going to make general math money.” – Snoop Dogg The importance of mathThe main emphasis of the homework in this class is helping you learn the math skills required to flourish in Computer Science. You will find these skills indispensable as you tackled more and more difficult topics in Computer Science. Remember that the “Science” part of Computer Science corresponds primarily to Mathematics.In this homework, we will review some basic topics that you should be familiar with from high school math.FunctionsThe first four questions cover mathematical functions. We recommend that you review the material on Functions from week 1 before attempting them.Consider the following Python function:Which mathematical function below computes the same value as this function?def root (a, b, c): discriminant = b ** 2 – 4 * a * c return (-b – discriminant ** 0.5) / (2 * a)

Practice More Questions From: Homework 2

Subscribe
Notify of