subject

Represent a polynomial using a list of its (real) coefficients, starting with the constant coefficient and going only as high as necessary. For example, 3x^2+5x+1 would be represented as the list [1.0 5.0 3.0] and x^3-2x as [0.0 -2.0 0.0 1.0]. Write a function poly of type real list * real -> real that takes a polynomial represented this way and returns the value of the polynomial at the given x. For example poly ([1.0 5.0 3.0],2.0) should evaluate to 23.0, because when x=2, 3x2+5x+1=23.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:40
The most complicated four letter word
Answers: 1
question
Computers and Technology, 22.06.2019 14:30
Create a pseudocode design to prompt a student for their student id and the titles of the three classes they want to add. the solution should display the student’s id and a total bill. • bill a student using the following rules: o students can only add up to 3 classes at a time.
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
The qwerty keyboard is the most common layout of keys on a keyboard
Answers: 3
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
You know the right answer?
Represent a polynomial using a list of its (real) coefficients, starting with the constant coefficie...
Questions
question
Mathematics, 25.02.2022 08:50
question
Mathematics, 25.02.2022 08:50
question
Mathematics, 25.02.2022 08:50
question
Mathematics, 25.02.2022 08:50
question
Mathematics, 25.02.2022 09:00
Questions on the website: 13722363