# HG changeset patch # User Antonio Pino Robles # Date 1431714621 -7200 # Node ID 0aae72032c25e5e11373d2dc3b94080d29191417 # Parent d24a00dabdc2ec8092f363e5ae38a0699652d9a0 Added files described in changeset d24a00dabdc2. diff -r d24a00dabdc2 -r 0aae72032c25 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Fri May 15 20:30:21 2015 +0200 @@ -0,0 +1,15 @@ +#example taken from the Hg book! +syntax: glob +# This line is a comment, and will be skipped. +# Empty lines are skipped too. + +# Backup files left behind by the Emacs editor. +*~ + +# Lock files used by the Emacs editor. +# Notice that the "#" character is quoted with a backslash. +# This prevents it from being interpreted as starting a comment. +.\#* + +# Temporary files used by the vim editor. +.*.swp diff -r d24a00dabdc2 -r 0aae72032c25 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Fri May 15 20:30:21 2015 +0200 @@ -0,0 +1,5 @@ +paths = funm_files +test_fun_files : tests/fun_cos + octave -q --eval 'addpath("funm_files:tests");' \ + --eval 'test fun_cos' + diff -r d24a00dabdc2 -r 0aae72032c25 test/fun_cos --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/fun_cos Fri May 15 20:30:21 2015 +0200 @@ -0,0 +1,15 @@ +%!test +%! A = rand (5,5); +%! [P,lambda] = eig (A); # A = P * lambda / P +%! D = diag(cos (diag (lambda))); +%! B = P * D / P; +%! cosA = myfunm (A,@cos); +%! assert(cosA,B,1e-9) +%! +%! +%! +%! +%! +%! +%! +