Write a function double100 that takes in a list of integers and returns True only if the list has two 100s next to each other.
def double100(nums): a= for i in np.arange(len(nums)): if nums[i]==100 and i==0: a+=[nums[i]==nums[i+1]] elif nums[i]==100 and i==len(nums)-1: a+=[nums[i]==nums[i-1]] elif nums[i]==100 and i!=1 and i!=len(nums)-1: a+=[nums[i]==nums[i+1] or nums[i]==nums[i-1]] b=[str(x) for x in list(set(a))] return('True' in b)
What makes a car accelerate, and what force do you feel when it does?
Of course the gas pedal/ breaks, but more uniquely, the steering wheel. Acceleration is a change in velocity, which is a vector. A change in direction still constitutes a change in velocity. When objects move, interita being present wants us to keep traveling in that direction, but the force of friction from the chair or the normal force from the side of the car that your body pushes against you.
What can the integral tell us?
I've been asked many a time what is an integral. For the common man, I simply say it is the area under a curve or a infinite sum. To the students in introductory courses I explain it as not only an antiderivative or a way to calculate volume/area of complex shapes, but also as a window into seeing information in higher dimensions. For instance, when combine with vector calculus we can begin to look at questions in higher dimensions, but also reduce complex problems through integral relations: Green's Theorem or Stoke's Theorem.