Lists which enumerate coefcients of polynomials

Assignment Help Computer Engineering
Reference no: EM132101898

Polynomial Modulo Function in Scheme

Language for code: Scheme <---must be this language function delcaration: (poly_mod apol bpol)

Input: lists which enumerate coefcients of polynomials, starting from the constant term.

for example the polynomial 6x^2 + 3x + 1 would be input as list( 1 3 6)

Output: list would be similar out put to the above example ( 1 )

Rules:

1. Assume all numbers are integers

2. You should only use the pure functional features of Scheme.

3. The leading coeffcient of the output polynomial can not be zero. If the result is the zero polynomial, please output the empty list.

4. You may assume that input polynomials have integer coeffcients. The output polynomial for the modulo operation may have coeffcients that are rational numbers.

5. For poly mod, you may assume that bpol is not zero.

Reference no: EM132101898

Questions Cloud

Create an array with thirty data elements : Suppose a data array has 30 numbers sorted from low to high already, where no two numbers are equal.
Why did the set timeout : IF i want to conect a raspberry pi 3 with a GSM modum through a serial port , and since the GSM modum is talking at 9600 (by datashet).
Compare two sets of characters : Your program will include a function called searcher that uses pointers to both the source string and the character set, and which returns a pointer to a char.
Calculate the number of possible color combinations : In the popular game Mastermind, one player creates a secret code of four pegs, each of which can be chosen from one of six colors.
Lists which enumerate coefcients of polynomials : The leading coeffcient of the output polynomial can not be zero. If the result is the zero polynomial, please output the empty list.
How many different 5-card poker hands are there : How many different 5-card Poker hands are there? How many of these are 1 pair?
Why do not the administrators just use random numbers : Why don't the administrators just use random numbers? Would these be the same for a proxy firewall? How would a NAC work with a firewall?
How would your own code of ethics guide you in dealing : Philosophy 110 : Explain the pros and cons of the positions on the topic you have chosen and state your position on the topic.
Find the number of items that must be sold : Cost data and demand data for a company's best-selling product are given in the tables below. Find linear regression models

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a program that calculates fat grams and calories

john raymond was so pleased with the program you created for his clients that he regers you to his coworker,a nutrionist in the same facility.

  Create an interface for automobile mechanics

Imagine you are managing a design project that will create an interface for automobile mechanics. Use supporting evidence to support your response.

  What is the probability that all three women are married

What is the probability that the third woman selected is the only one that is married? What is the probability that all three women are married?

  Draw the truth table and design an octal to binary encoder

What is the advantage of using multiplexers to implement logic functions?

  Note down an applet that simulates a soft drink machine

Write down an applet that simulates a soft drink machine. The simulated machine dispenses the following soft drinks: cola, lemon-lime soda, grape soda, root beer, and bottled water. These drinks cost $0.75 each to purchase.

  What is the running time of adding n elements

What is the running time of adding n elements to an initially empty collection C in this case?

  Write a method splitstack that takes a stack of integers

Write a method splitStack that takes a stack of integers as a parameter and splits it into negatives and non-negatives.

  Discuss problem of using lines-of-code productivity metric

Discuss the problem of using the lines-of-Code productivity metric (DS1) by comparing a pro-grammar who quickly develops.

  Display the impact speed of the first three bounces

Write test and run a c++ Program that calculation and display the impact speed of the first three bounces and the rebound height of each bounce.

  Write on any topic related to technology security

Write on any topic related to technology security. You must produce a minimum of a 10 pages paper. You must use a minimum of 5 references.

  Provide you an insight into importance of backup strategies

Provide you an insight into the importance of backup strategies. As we know, having a backup plan is important to ensure the safety and security of information.

  Program on matrix

Program on matrix

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