Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,10 +0,0 @@
|
|||
function horner($coefficients, $x) {
|
||||
$accumulator = 0
|
||||
foreach($i in ($coefficients.Count-1)..0){
|
||||
$accumulator = ( $accumulator * $x ) + $coefficients[$i]
|
||||
}
|
||||
$accumulator
|
||||
}
|
||||
$coefficients = @(-19, 7, -4, 6)
|
||||
$x = 3
|
||||
horner $coefficients $x
|
||||
Loading…
Add table
Add a link
Reference in a new issue