diff options
Diffstat (limited to 'texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Paramark.sci')
-rwxr-xr-x | texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Paramark.sci | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Paramark.sci b/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Paramark.sci new file mode 100755 index 00000000..82ac7c4f --- /dev/null +++ b/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Paramark.sci @@ -0,0 +1,20 @@ +// 08.06.18 + +function P=Paramark(varargin) + Nargs=length(varargin); + PA=varargin(1); + PB=varargin(2); + PC=varargin(3); + R=0.5; + if Nargs>=4 + R=varargin(4)*R; + end + U=R*(PA-PB)/Vecnagasa(PA,PB); + V=R*(PC-PB)/Vecnagasa(PC,PB); + if Gaiseki(PA-PB,PC-PB)~=0 + P=Listplot([PB+U,PB+U+V,PB+V]); + else + P=[]; + end +endfunction + |