Python Forum
Generating a polynomial equation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generating a polynomial equation
#1
I am new at Python and I found that the best way to learn is to practice. So I decided to write a program that involves generating a polynomial equation from inputting the degree of the polynomial and the corresponding coefficients. For example:

degree = 4
coefficients = 3, 8, 6, 9, and 2

These values should afford the following polynomial equation:

y = 2x^4 + 9x^3 + 6x^2 + 8x^1 + 3x^0

At first, this seemed like an easy task, but I came to a dead end. Angry Any ideas?
Reply


Messages In This Thread
Generating a polynomial equation - by BinaryStar - Mar-17-2019, 12:23 AM
RE: Generating a polynomial equation - by scidam - Mar-17-2019, 07:57 AM
RE: Generating a polynomial equation - by scidam - Mar-18-2019, 12:53 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020