[R] Obtaining a quadratic function igven three points on a curve

Barth B. Riley bbriley at chestnut.org
Thu Jan 20 15:42:08 CET 2011


I would like to obtain the coefficients for a quadratic function (ax^2 + bx + c) given three sets of points on the quadratic curve. For instance:

Y                       X
0.159529                0
0.5                     0.773019
1                       1

Is there a function in R to obtain the a, b and c ceofficients?



This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.

More information about the R-help mailing list