From 7bc77cb1ed33745c720952c92b3b2747c5cbf2df Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Sat, 3 Feb 2018 11:01:52 +0530 Subject: Added new code --- 2048/DEPENDENCIES/zpowk.sci | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 2048/DEPENDENCIES/zpowk.sci (limited to '2048/DEPENDENCIES/zpowk.sci') diff --git a/2048/DEPENDENCIES/zpowk.sci b/2048/DEPENDENCIES/zpowk.sci new file mode 100644 index 000000000..4b5b43e8d --- /dev/null +++ b/2048/DEPENDENCIES/zpowk.sci @@ -0,0 +1,7 @@ +// Evaluates z^-k. +// 9.6 + +function [zk,dzk] = zpowk(k) +zk = zeros(1,k+1); zk(1,k+1) = 1; +dzk = k; +endfunction -- cgit