diff options
author | Karl Berry <karl@freefriends.org> | 2024-03-31 20:15:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-03-31 20:15:15 +0000 |
commit | bd145fb65a454abd340ada373a95e01cfbecb42e (patch) | |
tree | 64cf451275273d6cb092c7dded67b17384c5d81f /Master/texmf-dist/tex | |
parent | cd91dc0eaa2306f3be1adf32e9704adb84b8dacf (diff) |
pst-func (31mar24)
git-svn-id: svn://tug.org/texlive/trunk@70822 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pst-func/pst-func.tex | 91 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/pst-func/pst-func.sty | 2 |
2 files changed, 49 insertions, 44 deletions
diff --git a/Master/texmf-dist/tex/generic/pst-func/pst-func.tex b/Master/texmf-dist/tex/generic/pst-func/pst-func.tex index 786942a07ab..ca546b7df6c 100644 --- a/Master/texmf-dist/tex/generic/pst-func/pst-func.tex +++ b/Master/texmf-dist/tex/generic/pst-func/pst-func.tex @@ -1,4 +1,4 @@ -%% $Id: pst-func.tex 697 2023-04-14 10:17:32Z herbert $ +%% $Id: pst-func.tex 885 2024-03-31 07:25:14Z herbert $ %% %% This is file `pst-func.tex', %% @@ -31,8 +31,8 @@ % interface to the `xkeyval' package \pst@addfams{pst-func} % -\def\fileversion{1.02} -\def\filedate{2023/04/14} +\def\fileversion{1.02a} +\def\filedate{2024/03/31} \message{`PST-func' v\fileversion, \filedate\space (hv)} % \pstheader{pst-func.pro} @@ -737,7 +737,7 @@ grestore \addto@pscode{ % thanks to Buddy Ledger /mfont { \psk@PSfont\space findfont \psk@fontscale scalefont setfont } bind def /mfontexp { \psk@PSfont\space findfont \psk@fontscale 1.2 div scalefont setfont } bind def - /s1 { /StandardSymL findfont \psk@fontscale scalefont setfont } bind def + /s1 { /StandardSymbolsPS findfont \psk@fontscale scalefont setfont } bind def \ifPst@algebraic /x #1 def /Func (#2) tx@AlgToPs begin AlgToPs end cvx def @@ -1580,45 +1580,50 @@ grestore \leavevmode \pst@killglue \begingroup - \addbefore@par{plotpoints=500,nue=1,mue=1,lambda=0}% + \addbefore@par{plotpoints=500,nue=1,mue=1,lambda=0,saveData=false}% \use@par - \iffalse %\ifluatex for later use - \luaexec{ require("pst-func") - printDataPlotFileFDist(#1,#2,\psk@plotpoints,\psk@mue,\psk@nue,\psk@lambda,"\jobname-lua","true") }% - \fileplot{\jobname-lua.data}% + \ifluatex + \ifPst@saveData + \luaexec{ require("pst-func") + printDataPlotFileFDist(#1,#2,\psk@plotpoints,\psk@mue,\psk@nue,\psk@lambda,"\jobname-lua","true","true") }% + \else + \luaexec{ require("pst-func") + printDataPlotFileFDist(#1,#2,\psk@plotpoints,\psk@mue,\psk@nue,\psk@lambda,"\jobname-lua","true","false") }% + \fi +% \typeout{\stringData} + \pslistplot{\stringData}% \else - \psplot[algebraic=false]{#1}{#2}[/F_BETA \psk@mue 2 div \psk@nue 2 div tx@FuncDict begin BETA end def]{ - /constA Euler \psk@lambda -2 div exp def - /Sum - constA F_BETA -% \psk@nue 2 div \psk@mue 2 div tx@FuncDict begin BETA end - div % first fraction - \psk@mue \psk@nue div \psk@mue 2 div exp - mul - \psk@nue dup \psk@mue x mul add div \psk@mue \psk@nue add 2 div exp - mul - x \psk@mue 2 div 1 sub exp - mul - def - /K 1 def - { - constA \psk@lambda 2 div K exp mul % nominator - \psk@nue 2 div \psk@mue 2 div K add tx@FuncDict begin BETA end K factorial mul % denominator - div % first fraction - \psk@mue \psk@nue div \psk@mue 2 div K add exp - mul - \psk@nue dup \psk@mue x mul add div \psk@mue \psk@nue add 2 div K add exp - mul - x \psk@mue 2 div 1 sub K add exp - mul - dup abs 1e-5 lt - { pop exit } - { Sum add /Sum ED - K 1 add /K ED } ifelse - K 100 ge { (Error ConfHyperFunc: K=100) == exit } if - } loop - Sum - }% + \psplot[algebraic=false]{#1}{#2}[/F_BETA \psk@mue 2 div \psk@nue 2 div tx@FuncDict begin BETA end def]{ + /constA Euler \psk@lambda -2 div exp def + /Sum + constA F_BETA + div % first fraction + \psk@mue \psk@nue div \psk@mue 2 div exp + mul + \psk@nue dup \psk@mue x mul add div \psk@mue \psk@nue add 2 div exp + mul + x \psk@mue 2 div 1 sub exp + mul + def + /K 1 def + { + constA \psk@lambda 2 div K exp mul % nominator + \psk@nue 2 div \psk@mue 2 div K add tx@FuncDict begin BETA end K factorial mul % denominator + div % first fraction + \psk@mue \psk@nue div \psk@mue 2 div K add exp + mul + \psk@nue dup \psk@mue x mul add div \psk@mue \psk@nue add 2 div K add exp + mul + x \psk@mue 2 div 1 sub K add exp + mul + dup abs 1e-5 lt + { pop exit } + { Sum add /Sum ED + K 1 add /K ED } ifelse + K 100 ge { (Error ConfHyperFunc: K=100) == exit } if + } loop + Sum + }% \fi \endgroup \fi @@ -2143,9 +2148,9 @@ grestore \ifPst@onlyNode\else /dec \psk@decimals\space def % Anzahl der Dezimahlen f\"{u}r x /ydec \psk@ydecimals\space def % Anzahl der Dezimalen f\"{u}r y - /symb { /StandardSymL findfont \psk@fontscale\space scalefont setfont } bind def % Symbolschrift f\"{u}r Klammer und senkrechten Strich + /symb { /StandardSymbolsPS findfont \psk@fontscale\space scalefont setfont } bind def % Symbolschrift f\"{u}r Klammer und senkrechten Strich /schrift { \psk@PSfont\space findfont \psk@fontscale scalefont setfont } bind def % Schrift f\"{u}r die Ergebnisse - /TiefSchrift { /StandardSymL findfont \psk@fontscale 1.8 div scalefont setfont } bind def % Schrift f\"{u}r tiefergestellte Buchstaben + /TiefSchrift { /StandardSymbolsPS findfont \psk@fontscale 1.8 div scalefont setfont } bind def % Schrift f\"{u}r tiefergestellte Buchstaben /spdx \psk@fontscale 4 div def % Abstand, der mit der Schriftg\"{o}{\ss}e skaliert ist /spdy \psk@fontscale 15 div def % Abstand, der mit der Schriftg\"{o}{\ss}e skaliert ist /Wert { dec -1 le { /dec 15 def } if 10 dec exp mul round 10 dec exp div dec 0 eq { cvi 15 string cvs } { 15 string cvs } ifelse % x-Wert runden und als string ablegen diff --git a/Master/texmf-dist/tex/latex/pst-func/pst-func.sty b/Master/texmf-dist/tex/latex/pst-func/pst-func.sty index 7d63925ab4f..c0ec1c8f9bb 100644 --- a/Master/texmf-dist/tex/latex/pst-func/pst-func.sty +++ b/Master/texmf-dist/tex/latex/pst-func/pst-func.sty @@ -13,6 +13,6 @@ [\filedate\space v\fileversion\space `PST-func' (hv)] \IfFileExists{pst-func.pro}{% \ProvidesFile{pst-func.pro}[2023/04/04 v. 0.20, PostScript prologue file (hv)] -\@addtofilelist{pst-func.pro}}{}% + \@addtofilelist{pst-func.pro}}{}% \endinput %% $Id: pst-func.sty 698 2023-04-14 10:19:52Z herbert $ |