PE: POLYNOMIAL MANAGEMENT -Evaluation of a polynomial (degree, coefficients, value) -Addition of two polynomials -Multiplication of two polynomials -Subtraction of two polynomials -Division of two polynomials NB: Each time the user must enter the degree and the coefficients of the polynomials concerned The report should contain: The algorithm The program The execution trace PLease explain your code in a step-wise manner. Thanks in advanced!
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
TPE: POLYNOMIAL MANAGEMENT
-Evaluation of a polynomial (degree, coefficients, value)
-Addition of two polynomials
-Multiplication of two polynomials
-Subtraction of two polynomials
-Division of two polynomials
NB: Each time the user must enter the degree and the coefficients of the polynomials concerned The report should contain: The
PLease explain your code in a step-wise manner. Thanks in advanced!
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Hi sir! Please kindly arrange/transfer the Modified code snippet: you just did in an msword doc or pdf format. After the transfer please do verify if the code still executes because each time i transfer it to ms word or pdf, and i copy it from word/pdf, the code refuses to execute. I guess its due to the alignement of the codes onced converted to pdf. Please I will be very grateful if you help me with this task!❤️
Hi sir! Please modify the Updated code :: such that the polynomial appears in the execution result before giving us the final answer. More importantly, I want it to display the power of the polynomial without necessarily including the "^" symbol.
Hi sir! Please modify the Updated code :: such that the polynomial appears in the execution result before giving us the final answer.
Please write an
The algorithm should be a program that explains what the code does exactly. This algorithm should be written with python
Nb: Algorithm ≠ code
Below is an example of an algorithm am talking about
![Variables.
whole degree
coefficients: array of reals coefficient, number, image: reals
i: integer
Beginning
Write "Enter the degree of the polynomial P(x) you want: coefficients []
Read degree
For i ranging from 0 to degree Do Write "Enter the coefficient for the monomial x^", i, Add coefficient to coefficients
Read coefficient
End if
Write "The polynomial P(x) is: "For i ranging from 0 to degree Do
AND
If coefficients [i] != 0 Then If i = 0 Then
Write coefficients[i]
Elseif i 1 Then
If coefficients [i] < 0 Then
Write "-", -coefficients[i], "x"
Otherwise
Write "+", coefficients [i], "x"
Finnish
Otherwise
If coefficients[i] < 0 Then
Write "-", -coefficients [i], "x^", i
Otherwise
Write "+", coefficients[i], "x^", i
End if
End if
End if
EndFor
Write "Enter a number to calculate its image by P(x):
Read number frame-0
For i going from 0 to degree Make
image image + coefficients [i] (nombre)^i
EndFor
Write "The image of ", number," by P(x) is: ", image
END](https://content.bartleby.com/qna-images/question/96b6c190-af9c-4cfb-bfe0-dca6b5c7508c/56bd57e4-2ca3-4a96-82e9-f63503af22bc/euvs58_thumbnail.jpeg)
Hi sir! Please I will like you to modify this code such that the program and
Also, I will like you to write the algorithm as a simple code(
![Enter the degree of the polynomial P(x) you want: 3
Enter the coefficient for the monomial xº: -2
Enter the coefficient for monomial X³: 4
Enter the coefficient for monomial x²: 0
Enter the coefficient for monomial X: 1
so we have P(x) = -2.0 + 4.0x + 1.0x²
now we can find the image by P of: -5
the image of -5.0 by p is: -147.0
Process finished with exit code 0](https://content.bartleby.com/qna-images/question/96b6c190-af9c-4cfb-bfe0-dca6b5c7508c/c03b83be-35cc-467f-963b-8d5f0769c2d1/dnoaqh_thumbnail.jpeg)
![Variables.
whole degree
coefficients: array of reals coefficient, number, image: reals
i: integer
Beginning
Write "Enter the degree of the polynomial P(x) you want: coefficients []
Read degree
For i ranging from 0 to degree Do Write "Enter the coefficient for the monomial x^", i, Add coefficient to coefficients
Read coefficient
End if
Write "The polynomial P(x) is: "For i ranging from 0 to degree Do
AND
If coefficients [i] != 0 Then If i = 0 Then
Write coefficients[i]
Elseif i 1 Then
If coefficients [i] < 0 Then
Write "-", -coefficients[i], "x"
Otherwise
Write "+", coefficients [i], "x"
Finnish
Otherwise
If coefficients[i] < 0 Then
Write "-", -coefficients [i], "x^", i
Otherwise
Write "+", coefficients[i], "x^", i
End if
End if
End if
EndFor
Write "Enter a number to calculate its image by P(x):
Read number frame-0
For i going from 0 to degree Make
image image + coefficients [i] (nombre)^i
EndFor
Write "The image of ", number," by P(x) is: ", image
END](https://content.bartleby.com/qna-images/question/96b6c190-af9c-4cfb-bfe0-dca6b5c7508c/c03b83be-35cc-467f-963b-8d5f0769c2d1/d36jx27_thumbnail.jpeg)
Hello Sir! Hope you're fine!
I tested your code on various python platforms and none of them seems to be executing. Please kindly verify the codes above and assemble them in a word document once they are in tact. As soon as you're done with the codes, please send me the word doc or in pdf format. Thanks in advanced!!!❤️
![← → C
Fiverr / cheryl_anna...
trinket
trinket.io/python
Privacy Terms
fi Fiverr / Inbox
4
5
6
7
CONTENEG
Free Email Extractor....
Put Interactive Python Anywhere on the Web
Customize the code below and Share!
<> main.py
1 + def add_polynomials (degreel, coefficients1, degree2, coefficients2):
max_degree= max(degreel, degree2)
2
3
8 # Execution Trace
11
Remove Audio fro...
S
(1) Langmia Hustle T...
12
9 degree_1= int(input ("Enter the degree of the first polynomial: "))
14
LachoFit (@lachofit)...
coefficients1 = coefficients1 + [0] * (max_degree - degree1)
coefficients2 = coefficients2 + [0]* (max_degree
degree2)
result
[coeff1 coeff2 for coeff1, coeff2 in zip (coefficients1, coefficient
return max_degree, result
10 coefficients_1 = [float(input (f"Enter coefficient for x^{degree_1 - i}: ")) for i
++ B
degree 2 int (input("Enter
degree of second polynomial: "))
13 coefficients_2 = [float (input (f"Enter coefficient for x^{degree_2 i): ")) for i
Homeworki
15 degree_result, coefficients_result = add_polynomials (degree_1, coefficients_1, deg
16 print (f"The result of addition is: {coefficients_result}")](https://content.bartleby.com/qna-images/question/96b6c190-af9c-4cfb-bfe0-dca6b5c7508c/8f7f11f7-cdc8-4178-afee-ad32446a7247/qytcgv_thumbnail.jpeg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)