From 138f77fe71e43adc24ecb030d73df81cc5c4eb7e Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 4 Sep 2017 09:45:51 +0900 Subject: add ketpic --- .../scripts/ketpic/ketlib/ketpic2escifiles6/Gaiseki.sci | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Gaiseki.sci (limited to 'texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Gaiseki.sci') diff --git a/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Gaiseki.sci b/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Gaiseki.sci new file mode 100755 index 00000000..3d17995e --- /dev/null +++ b/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Gaiseki.sci @@ -0,0 +1,11 @@ +function G=Gaiseki(a,b) + if length(a)==3 + Tmp=[a(2)*b(3)-a(3)*b(2),... + a(3)*b(1)-a(1)*b(3),... + a(1)*b(2)-a(2)*b(1)]; + else + Tmp=a(1)*b(2)-a(2)*b(1); + end; + G=Tmp; +endfunction + -- cgit v1.2.3