aboutsummaryrefslogtreecommitdiff
path: root/Semestr 3/anm/horner.jl
diff options
context:
space:
mode:
authorFranciszek Malinka <franciszek.malinka@gmail.com>2021-10-05 21:49:54 +0200
committerFranciszek Malinka <franciszek.malinka@gmail.com>2021-10-05 21:49:54 +0200
commitc5fcf7179a83ef65c86c6a4a390029149e518649 (patch)
treed29ffc5b86a0d257453cedcf87d91a13d8bf3b0d /Semestr 3/anm/horner.jl
parentf8a88b6a4aba1f66d04711a9330eaba49a50c463 (diff)
Duzy commit ze smieciami
Diffstat (limited to 'Semestr 3/anm/horner.jl')
-rw-r--r--Semestr 3/anm/horner.jl16
1 files changed, 0 insertions, 16 deletions
diff --git a/Semestr 3/anm/horner.jl b/Semestr 3/anm/horner.jl
deleted file mode 100644
index a3fb69b..0000000
--- a/Semestr 3/anm/horner.jl
+++ /dev/null
@@ -1,16 +0,0 @@
-function horner(w, n, x0)
- p = w[n + 1]
- q = 0
- r = w[n + 1]
- t = 0
- for i in range(n, 1, step=-1)
- q = p + x0 * q
- p = w[i] + x0 * p
- t = r + x0 * t
- r = p + x0 * r
- end
- return [p, q, r, t]
-end
-
-
-println(horner([-13, 10, -7, 2], 3, 2)) \ No newline at end of file