WeBWorKdocs

sq_webwork:


Home
Current UR
courses
Visitor
page
Intro to
WeBWorK
WeBWorK 2
Twiki
WW
Community
Grant Support
& awards
Discussion
group
Problem
library
Write/modify
problems
Create &
manage course
Tutorial on
running a course
HowTos
FAQ
WeBWorK2
FAQ
Software
Download
How to
Install WW server
Feedback
Site Map
Change
preferences
Change
password





Prev | Next | manpages

horner

Description
Defines a polynomial passing through specified points (a Newton polynomial) and returns an efficient subroutine for evaluating that polynomial (using Horner's method).

Syntax

$fn = horner([$x0,$x1,$x2...],[$q0,$q1,$q2...]);

Params

A pair of references to arrays representing the x values and y values respectively of the interpolated points. The x values must be strictly increasing.

Returns

A non-parametric function subroutine representing the newton polynomial
&$fn($x) = $q0 + $q1*($x-$x0) +q2*($x-$x1)*($x-$x0);

Notes

This macro is defined in PGnumericalmacros.pl.

<| Post or View Comments |>


Prev | Next | manpages

Last update: Wednesday, January 10, 2007 at 10:17:01 PM.
This site maintained using Manila and Frontier software.