Implement the procedure pseudoremainder-terms

Assignment Help Basic Statistics
Reference no: EM131042192

Implement the procedure pseudoremainder-terms, which is just like remainder-terms except that it multiplies the dividend by the integerizing factor described above before calling div-terms. Modify gcd-terms to use pseudoremainder-terms, and verify that greatest-common-divisor now produces an answer with integer coefficients on the example in exercise 2.95.

c. The GCD now has integer coefficients, but they are larger than those of P1 . Modify gcdterms so that it removes common factors from the coefficients of the answer by dividing all the coefficients by their (integer) greatest common divisor. Thus, here is how to reduce a rational function to lowest terms:

Compute the GCD of the numerator and denominator, using the version of gcd-terms from exercise 2.96. When you obtain the GCD, multiply both numerator and denominator by the same integerizing factor before dividing through by the GCD, so that division by the GCD will not introduce any noninteger coefficients. As the factor you can use the leading coefficient of the GCD raised to the power 1 + O1 - O2 , where O2 is the order of the GCD and O1 is the maximum of the orders of the numerator and denominator. This will ensure that dividing the numerator and denominator by the GCD will not introduce any fractions.

The result of this operation will be a numerator and denominator with integer coefficients. The coefficients will normally be very large because of all of the integerizing factors, so the last step is to remove the redundant factors by computing the (integer) greatest common divisor of all the coefficients of the numerator and the denominator and dividing through by this factor.

Reference no: EM131042192

Questions Cloud

Design and control of process engineering systems : Brief the main objectives of the computer aided modeling and simulation system and give a brief note on the role of computer aided modeling and simulation techniques for the analysis, design and control of process engineering systems.
Confident but could tolerate an error of plus or minus : What sample size should be used for this study? (note: z value = 1.96) Suppose that management wanted to be 99% confident but could tolerate an error of plus or minus 3%. How would the sample size change? (note: z value = 1.645)
What impact could each have on the service envvironment : According to Danny Meyer, who are the 5 primary stakeholders in the cycle of enlightened hospitality ( in order)? Why does he rank them this way?
Calculate the upper and lower mean limits : Calculate the upper and lower mean limits for the 95% confidence interval.
Implement the procedure pseudoremainder-terms : Implement the procedure pseudoremainder-terms, which is just like remainder-terms except that it multiplies the dividend by the integerizing factor described above before calling div-terms. Modify gcd-terms to use pseudoremainder-terms, and verify..
What is the variance of one throw of the die : You're playing Dungeons and Dragons, an old-school pen-and-paper role playing game. The game uses an 8-sided die, with the numbers 1-8 on each face. The probability of rolling each number is 1/8. What is the variance of one throw of the die
Determine which arguments are the most plausible : Determine which arguments are the most plausible. Provide a rationale for your views. After creating a cumulative frequency distribution from the list, discuss new ideas generated by each stakeholder.
Causing difficulties with the gcd algorithm : Now define Q1 to be the product of P1 and P2 and Q2 to be the product of P1 and P3 , and use greatest-common-divisor (exercise 2.94) to compute the GCD of Q1 and Q2 . Note that the answer is not the same as P1.
Implement the procedure remainder-terms and use : Using div-terms, implement the procedure remainder-terms and use this to define gcd-terms as above. Now write a procedure gcd-poly that computes the polynomial GCD of two polys.

Reviews

Write a Review

Basic Statistics Questions & Answers

  An election ballot asks voters to select 6 city

an election ballot asks voters to select 6 city commissioners from a group of 18 canidates. in how many ways can this

  Find the probability distribution of x

A random variable x is defined to be the defined to be the the difference between the higher value and the lower value when two dice are thrown. if they have the same value x is defined to be zero find the probability distribution of x

  Determining z-score of departmental store

A department store, on average, has daily sales of $29,876.76. The standard deviation of sales is $1000.00. On Tuesday, the store sold $34,893.71 worth of goods.

  Proportion of overweight children

a. Approximately what proportion of overweight children has left atrial diameters less than 25 mm? b. Approximately what proportion of overweight children has left atrial diameters greater than 32 mm?

  Sensitivity and specificity of the test

Using this test 80% of Down's syndrome cases can be identified at birth, while 5% of normals are detected as positive. a. What is the sensitivity and specificity of the test?

  Phone plan-montly cost

The monthly cost of a long distance phone plan in dollars is a linear function of the total calling time in minutes. When graphed, the function gives a line with a slope of 0.11.

  Determine the sample size for poll

That's a much larger sample than standard sample surveys. In spite, we cannot trust result to give good information about any clearly defined population. Explain why?

  Students in a random sample who binge drink

A recent national study showed that approximately 30% of college students binge-drink. Let x equal the number of students in a random sample size of n=12 who binge drink. Find the probability that

  Find probability ten have read at least six books

In a random sample of 15 Americans 18 years old or older, find the probability that exactly 10 have read at least six books within the past year, Interpret these results.

  A random sample of 15 accounting graduates indicated on

a random sample of 15 accounting graduates indicated on average they had taken 139 credit units with a standard

  The difference between the median and mode

The difference between the median and mode

  Find the required probability for the normal distribution

What is the proportion of people surveyed that rated the subway system from 3 to 4. What is the proportion of people surveyed rated the Subway System from 1 to 3.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd