Curve that touches three points: Difference between revisions

m
→‎{{header|Raku}}: oops, lost required brackets
m (→‎{{header|Raku}}: sync up 'rref', factor out points)
m (→‎{{header|Raku}}: oops, lost required brackets)
Line 670:
 
# Solve for a quadratic line that passes through those points
my (\a, \b, \c) = (rrefref ([.[0]², .[0], 1, .[1]] for @points) )[*;*-1];
 
# Evaluate quadratic equation
2,392

edits