diff options
author | Franciszek Malinka <franciszek.malinka@gmail.com> | 2021-10-05 21:49:54 +0200 |
---|---|---|
committer | Franciszek Malinka <franciszek.malinka@gmail.com> | 2021-10-05 21:49:54 +0200 |
commit | c5fcf7179a83ef65c86c6a4a390029149e518649 (patch) | |
tree | d29ffc5b86a0d257453cedcf87d91a13d8bf3b0d /Semestr 3/anm/horner.jl | |
parent | f8a88b6a4aba1f66d04711a9330eaba49a50c463 (diff) |
Duzy commit ze smieciami
Diffstat (limited to 'Semestr 3/anm/horner.jl')
-rw-r--r-- | Semestr 3/anm/horner.jl | 16 |
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 |