Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Program speed, or runtime, is an important concept in computer programming, and

ID: 3105373 • Letter: P

Question

Program speed, or runtime, is an important concept in computer programming, and iy is measured in terms of the number of mathmatical operations made during one run of the program. For example, the expresssion x^3 - 2x + 3 has five operations. If we write it as x*x*x - 2 * x + 3, we see there are three multiplications, one addition and one subtraction.

Problem: If you had to compute the polynominal (x+3)(x-3) for a certain value of x ( the actual value of x does not matter), how many (additions, subtraction, multiplication, or division) would be made?
After this than I have to multiply the original (x+3)(x-3) polynomial (FOIL). In the new version of the expression (polynominal), how many operations are there?

Explanation / Answer

4- multiplication would be made

XxX= X2, Xx-3= -3x, Xx3= 3x, 3x3= 9

1- subtraction

3x-3x= 0

there are a total of 5 operations to get (x+3)(x-3)= x2+9