Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on Finding a quadratic that has solutions to given values

Parent

Finding a quadratic that has solutions to given values

+0
−0

Hi, i wanted to see if there is an algorithm for finding/approximating a quadratic formula that resulted in (at least one) wanted value

i remember finding a math.stackexchange post long time ago about the quadratic that results in (pi,e), in one of the answers suggested was a method to approximate with a given computer program that searched in a specific range..but i couldn't find it again

anyways any help would be appriciated.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

This one? https://math.stackexchange.com/questions/498393/finding-an-integer-coefficients-quadratic-e... (1 comment)
Post
+2
−0

If you only have one X-Y pair to meet, then a constant fits the specs perfectly:

    f(x) = K

If it has to meet two X-Y pairs, then a line does it:

    f(x) = K1x + K2

A quadratic can hit three points:

    f(x) = K1x2 + K2x + K3

This is also known as a "second order" polynomial. Each additional order allows the function to hit one more point exactly (within some limits, like they all have to have different X values).

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

the Lagrange interpolation formula is an explicit formula for the polynomial of degree $n$ matching $... (1 comment)
the Lagrange interpolation formula is an explicit formula for the polynomial of degree $n$ matching $...
ziggurism‭ wrote almost 2 years ago

the Lagrange interpolation formula is an explicit formula for the polynomial of degree $n$ matching $n$ given values. https://en.wikipedia.org/wiki/Lagrange_polynomial