subject
Engineering, 10.03.2020 03:32 F00Dislife

Let A(x) and B(x) be polynomials (with coefficients in R). We say that ged(A(x), B(x)) = D(x) if D(x) divides A(x) and B(x), and if every polynomial C(x) that divides both A(x) and B(x) also divides D(x). For example, gcd((x - 1)(x + 1), (x - 1)(x+2)) = x – 1. Notice this is the exact same as the normal definition of GCD, just extended to polynomials.

Incidentally, gcd(A(x),B(x)) is the highest degree polynomial that divides both A(x) and B(x). In the subproblems below, you may assume you already have a subroutine divide(P(x),S(x)) for dividing two polynomials, which returns a tuple (Q(x),R(x)) of the quotient and the remainder, respectively, of dividing P(x) by S(x). (a) Write a recursive program to compute gcd(A(x),B(x))

Write a recursive program to compute god(A(x), B(x)).

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Aloaded platform of total mass 500 kg is supported by a dashpot and by a set of springs of effective stiffness 72 kn/m. it is observed that when the platform is depressed through a distance x = 12.5 cm below its equilibrium position and then released without any initial velocity; it reaches its equilibrium position in the shortest possible time without overshoot. find the position and velocity of the loaded platform 0.10 sec. after its release. if a further load of 400 kg is added to the platform, find, i) the frequency of damped vibrations, and i) the amplitude of vibration after 2 complete oscillations, given that the initial amplitude is 15 cm.
Answers: 1
question
Engineering, 04.07.2019 18:10
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
question
Engineering, 04.07.2019 18:10
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
question
Engineering, 04.07.2019 18:20
Atank with constant volume contains 2.27 kg of a mixture of water phases (liquid-vapor). in the initial state the temperature and the quality are 127 °c and 0.6, respectively. the mixture is heated until the temperature of 160 oc is reached. illustrate the process in a t-v diagram. then, determine (1) the mass of the vapor in kg at the initial state, (2) the final pressure in kpa.
Answers: 3
You know the right answer?
Let A(x) and B(x) be polynomials (with coefficients in R). We say that ged(A(x), B(x)) = D(x) if D(x...
Questions
question
Mathematics, 01.12.2020 16:40
question
History, 01.12.2020 16:40
Questions on the website: 13722360