Software that outputs a general polynomial formula for a finite series

Click For Summary

Discussion Overview

The discussion revolves around the search for software tools that can generate general polynomial formulas from finite sequences of numbers. Participants explore various methods and approaches to derive polynomial expressions, including recursive formulas and programming implementations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants inquire about tools that can output polynomial formulas for given sequences, providing examples such as the sequence 1, 3, 5, 7.
  • One participant suggests that a polynomial formula could be represented as 2n-1 or 2n+1, indicating a preference for simpler expressions over more complex recursive formulas.
  • A participant shares outputs from their own program, showing various polynomial forms generated from different sequences, but does not provide a clear method for others to replicate.
  • Another participant references Newton's forward difference formula as a potential basis for generating polynomial expressions, although they express a lack of interest in the technical details.
  • One participant describes a method learned in linear algebra for deriving a general polynomial from a finite sequence, detailing the process of setting up equations based on ordered pairs.
  • A participant claims to have developed a program for this purpose, mentioning its simplicity and historical context of their analysis.
  • Another participant shares a link to a resource called Pouffe's Inverter, suggesting it contains valuable references related to the topic.

Areas of Agreement / Disagreement

Participants express differing views on the best approach to derive polynomial formulas, with no consensus on a single method or tool. Some prefer simpler polynomial forms, while others explore more complex recursive methods.

Contextual Notes

Some methods discussed rely on specific mathematical principles, such as Newton's forward difference formula, which may not be universally understood or accepted among all participants. Additionally, the effectiveness of the proposed tools and methods remains unverified by all contributors.

Who May Find This Useful

This discussion may be of interest to those involved in mathematics, computer programming, or anyone looking to understand polynomial generation from numerical sequences.

Helicobacter
Messages
158
Reaction score
0
Is there a tool that spits out a general polynomial formula for an input consisting of a finite sequence, e.g.:

you type in
1 ,3 , 5, 7

the program processes the input and spits out
(n+2), 7>=n>=1
 
Physics news on Phys.org
Helicobacter said:
Is there a tool that spits out a general polynomial formula for an input consisting of a finite sequence, e.g.:

you type in
1 ,3 , 5, 7

the program processes the input and spits out
(n+2), 7>=n>=1
I would think that a polynomial formula would be more like 2n-1 or 2n+1. If you are looking for a general recursive formula that is another animal. There is a website that provides that also, but I don't have the link offhand. Also it wouldn't make much sense to spit out the lower and higher boundary points of your entry.
 
Here. I was bored.
When given these inputs, the outputs are:

0 1 4 9 16
n^2 , n=0..4​
80 5 30
50n^2 - 125n + 80 , n=0..2​
4 3 2 1
- n + 4 , n=0..3​

C source only.
 

Attachments

I'm bored but not yet intrigued, so I didn't look at Dodo's boring zip file. I assume he encoded Newton's forward difference formula, http://mathworld.wolfram.com/NewtonsForwardDifferenceFormula.html.

I'm bored because I'm supposed to be writing a proposal. If I let myself become sufficiently intrigued I will have to stay up all night to finish the proposal. On top of this, I have an 8:30 AM meeting tomorrow that I can't skip.
 
i think this is what you're asking, i learned this in linear algebra. it's not the program but it's a method from which a program shouldn't be hard to come up with. i haven't done this in a while, and my notation is going to be messy.

you have a finite sequence of n elements A1, A2,...An. Then you consider them as ordered pairs (1,A1), (2,A2),...(n,An). To get a general n-1th degree polynomial

y = C1 + C2x +...+Cnx^(n-1) and then plug in some values and solve the linear equation.

to do your sequence for example 1,3,5,7. put them in ordered pairs (1,1) (2,3) (3,5) (4,7).

1 = C1 + C2(1) + C3(1) + C4(1)
3 = C1 + C2(2) + C3(4) + C4(8)
5 = C1 + C2(3) + C3(9) + C4(27
7 = C1 + C2(4) + C3(16) + C4(64)

4 equations, 4 unknowns, and i ended up with the polynomial

y = 2x - 1 x= 4,3,2,1.

just in case it isn't clear, Ck is the coefficient of x^(k-1).

if i understood, that's what you're looking for.
 
Last edited:
I wrote such a program and put it online. I originally developed this method based on my independent analysis of series in high school in the early 70s. As others have mentioned it does rely on the forward distance (although, at the time, I had no idea that's what it was called).

It takes about 20 lines of code to implement (including documentation) in PHP.

http://bentley.110mb.com/?test:series
 
Last edited by a moderator:

Similar threads

  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K