亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? smif.tex

?? 強大的數學工具包
?? TEX
?? 第 1 頁 / 共 2 頁
字號:
\documentclass{article}\addtolength{\textwidth}{18pt}\begin{document}\section{SMif --- The SIMATH interface functions}SMif is the SIMATH interface program. SMif uses a simple scriptlanguage to extract data from arbitrary text files or from the outputof arbitrary programs. In some sense it is similar to the standardUnix utilities awk or sed although some of the capabilities of theselanguages have not been implemented and the design of SMif focuses onthe extraction of numerical data, and not on general text pieces.SMif uses the \emph{tcl} library and numerical operations and internalrepresentations depend on \emph{tcl}.\subsection{SMif functions}The following funtions resp.\ macros can be used to obtain data fromthe underlying SMif interpreter and to administrate the results of theinterpreter. All these functions can be used in any C program, inparticular in SIMATH programs. Since all of the \emph{tcl}functionality resides in the interpreter, programs using SMif do nothave to be linked against the \emph{tcl} library.\begin{verbatim}  void SMifRes_Init (SMifRes* smifres)  void SMifRes_FromFile (SMifRes smifres, char* textfname,                          char* scriptname)  void SMifRes_FromProg (SMifRes smifres, char* progname,                         char* paralist, char* scriptname)  single SMifRes_Count (SMifRes smifres)  single SMifRes_Error (SMifRes smifres)  char* SMifRes_ErrMsg (SMifRes smifres)  single SMifRes_Type (SMifRes smifres, single nr)  char* SMifRes_Get (SMifRes smifres, single nr)  void SMifRes_SetCsh (SMifRes smifres, char* cshname)  void SMifRes_Free (SMifRes *smifres)\end{verbatim}Here, \texttt{SMifRes} is a data type used to store the resultsreturned by the SMif interpreter.Every variable of type \texttt{SMifRes} must be initialized by a callto \texttt{SMifRes\_Init()} before it can be used in any of the SMiffunctions.  \texttt{SMifRes\_Free()} frees the storage area allocatedby \texttt{SMifRes\_Init()} for an object of type \texttt{SMifRes}.\texttt{SMifRes\_FromFile()} requires as parameters the name of a textfile \texttt{textfname} and the name of a script file\texttt{scriptname}.  The interpreter SMif operates on the text file\emph{textfname} according to the script file \texttt{scriptname}. Theresults are stored in the variable \texttt{smifres}.\texttt{SMifRes\_FromProg()} expects as parameters the name of anexternal program \texttt{progname}, the argument list\texttt{paralist} for this program, and the name \texttt{scriptname}of an SMif script. The external program \texttt{progname} is executedfor the arguments in \texttt{paralist} and the SMif interpreteroperates on its output according to the scriptfile\texttt{scriptname}. The results are stored in the variable\texttt{smifres}.SMif creates some temporary \texttt{csh} scripts. By default, thesefiles are processed by \texttt{/bin/csh}. This can be changed by acall to the \texttt{SMifRes\_SetCsh()} function.The rest of the functions resp.\ marcos are used to read the resultsof the SMif interpreter in a convenient manner.\texttt{SMifRes\_Count()} returns the number of entries in a\texttt{SMifRes} object. A valid entry can be of one of the types\texttt{SM\_single}, \texttt{SM\_int}, \texttt{SM\_list}, or\texttt{SM\_pol}.  \texttt{SMifRes\_Type()} returns the type of entry\texttt{nr}. If this entry does not exist, \texttt{SM\_unknown} isreturned.  \texttt{SMifRes\_Get()} accesses the value of the entry\texttt{nr}, i.\ e.\ a single precision number, an integer ofarbitrary size, a SIMATH list, or a polynomial in the appropriateexternal representation of these types.  (I.\ e.\ the\texttt{SMifRes\_Get()} returns a string which can be easily convertedto the appropriate SIMATH data type by certain SIMATH functions.)If SMif encounters an error, the macro \texttt{SMifRes\_Error()}returns \texttt{SMifRes\_error}. (Otherwise \texttt{SMifRes\_ok} isreturned.)  In case of an error \texttt{SMifRes\_ErrMsg()} returns adetailed description of the error.The functions, macros, and constants described above are declaredresp.\ defined in the header file \texttt{\_SMfiRes.h}.\vspace*{12pt} \textbf{Example.} Let \texttt{anyprogram} be anexternal program (i.\ e.\ a program which could as well be executed bya shell) which returns the output\begin{verbatim}  *** anyprogram  %1 = (x + y^3)(x^3 + y)\end{verbatim}for the arguments (in the string) \texttt{arg1 arg2}. Suppose that thescript file \texttt{script} looks as follows:\begin{verbatim}  SKIP UNTIL SEEN {[CHAR] =}  GET POL\end{verbatim}We examine the following code fragment:\begin{verbatim}#include <_simath.h>#include <_SMifRes.h>int main() {  SMifRes smifres;  char *tmpstr = NULL;  .....  /* bind(), init() for SIMATH data types */  .....  /* Initialize a SMifRes variable */  SMifRes_Init(&smifres);      SMifRes_FromProg(smifres, "anyprogram", "arg1 arg2", "script");    if(SMifRes_Error(smifres) != SMif_ok) {    /* Error processing */    printf("SMifRes_Error: %s\n", SMifRes_ErrMsg(smifres));    exit(1);  }  if(SMifRes_Count(smifres) != 1 ||      SMifRes_Type(smifres, 1) != SM_pol) {    /* Something went wrong */    printf(.....);    exit(1);  }  tmpstr = SMifRes_Get(smifres, 1);  printf("example: %s\n", tmpstr);  .....    SMifRes_Free (&smifres);   .....}\end{verbatim}A part of the output of the program:\begin{verbatim}  example: 1*x^4*y^0 + 1*x^1*y^1 + 1*x^3*y^3 + 1*x^0*y^4\end{verbatim}\subsection{The SMif script language}\subsubsection{Characters and words.}SMif commands operate on a given text file. A pointer always points ata well defined position in the text file. The text file is splitted inappropriate tokens by default symbols or user defined symbols. Thefollowing notation is used to describe characters and words.\begin{verbatim}  {[CHAR] ch1 ch2 ... [WORD] word1 word2 ...}\end{verbatim}Strings of this form are called \emph{controldefinestrings}. Thefollowing command tells the interpreter to ignore all of the givencharacters and strings within a text file to be processed by SMif.\texttt{IGNORE} \emph{controldefinestring}\subsubsection{\texttt{GET} commands}The four \texttt{GET} comands \texttt{GET SINGLE}, \texttt{GET INT},\texttt{GET LIST}, and \texttt{GET POL} generate the output of theinterpreter.  The \texttt{GET SINGLE}, \texttt{GET INT}, and\texttt{GET LIST} command search for integer expressions beginningwith the current pointer position. A \texttt{GET POL} command collectsall the items which are not to be ignored. There are certain commandswhich change the default behaviour of \texttt{GET} commands.\texttt{IGNORE NEWLINE AFTER} \emph{controldefinestring}\texttt{SETITEM SIZE} \emph{n} \texttt{PATTERN} $\{$\emph{patterndefinestring }$\}$\texttt{STOPGET IF SEE} \emph{controldefinestring}The \texttt{IGNORE NEWLINE AFTER} command tells SMif which charactersor words at the end of a line have to be treated as a continuationmark.  A continuation mark indicates that the line is to be treated ascontinued in the next line (without line break). The \texttt{GET  SINGLE}, \texttt{GET INT}, and \texttt{GET LIST} commands puttogether two integer expressions before and after a continuation mark.\texttt{GET POL} puts together two arbitrary words before and after acontinuation mark.\texttt{SETITEM SIZE} is valid for \texttt{GET SINGLE}, \texttt{GET  INT}, and \texttt{GET LIST} commands only. It is ignored for\texttt{GET POL} commands. \texttt{SETITEM SIZE} defines how manyinteger expressions will be treated together and what will happen withthese expressions.  We will see an example for this later. Theexpressions are identified by the symbols \texttt{\$1}, \texttt{\$2},...  \emph{patterndefinestring} is a mathematical formula over thesesymbols.  For example,\texttt{SETITEM SIZE 3 PATTERN \{\$1\}} \newline defines that only thefirst expression of three expressions will be returned.  For\texttt{GET INT}, this is the only valid type of\emph{patterndefinestring}. The \texttt{GET SINGLE} and \texttt{GET  LIST} commands are based on C long integers and it is possible toapply any mathematical operation defined in the \emph{tcl} language tothe symbols \texttt{\$1}, \texttt{\$2}, ... In this case, validexpressions are for example\texttt{SETITEM SIZE 2 PATTERN \{int (cos(\$1)*tan(\$2))\}} \newlineor\texttt{SETITEM SIZE 2 PATTERN \{\$1>\$2?\$1:\$2\}}.  \newline Acomplete list of available operators can be found in the \texttt{expr}man page of the \emph{tcl} library.The \texttt{STOPGET} command tells SMif to stop moving the filepointer as soon as a given character or the beginning of a given wordare read. This is one of the three conditions for a \texttt{GET}command to terminate.  Furthermore, a \texttt{GET} command willterminate if a \texttt{REPEAT} loop or a \texttt{GET} commandenclosing this \texttt{GET} command terminate, and of course, a\texttt{GET} command will terminate at the end of the input file.\subsubsection{The scope of control commands}A \texttt{GET} command can contain a sub script. In particular, a\texttt{GET LIST} command can contain another \texttt{GET LIST}command.  In this way, SMif can deal with sub lists of lists.  Thevalidity domain of a definition (made by a \emph{controldefinestring})is determined by the following rules.1. The global level, i.\ e.\ the part of the SMif script not containedin any \texttt{GET} command has level number 0.  Every \texttt{GET}command increments the level number by 1 and all the definitions oflevel number $n - 1$ are valid in level number $n$.2. A definition by \texttt{IGNORE}, \texttt{IGNORE NEWLINE}, and\texttt{STOPGET} remains valid until it is canceled by one of thefollowing \texttt{NOPOWER} commands on the same level:\texttt{NOPOWER IGNORE} \emph{controldefinestring}\texttt{NOPOWER IGNORE NEWLINE AFTER} \emph{controldefinestring}\texttt{NOPOWER STOPGET} \emph{controldefinestring}3. A valid \texttt{SETITEM} definition is canceled by a new\texttt{SETITEM} command on the same level or by the command\texttt{NOPOWER SETITEM} which restores the default behaviour.  Thedefault definition is \texttt{SIZE 1 PATTERN \{\$1\}}.\textbf{Example.}\begin{verbatim}  # comment: example  IGNORE {[WORD 123 234]}  GET SINGLE {}  GET SINGLE {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线视频综合导航| 99久久久免费精品国产一区二区| 中文字幕五月欧美| 国产目拍亚洲精品99久久精品| 欧美一区二区播放| 日韩欧美精品在线| 精品99一区二区| 久久久精品人体av艺术| 久久午夜免费电影| 国产欧美日本一区视频| 欧美国产日韩精品免费观看| 国产精品国产三级国产有无不卡| 国产精品不卡一区| 午夜视频在线观看一区| 日韩高清在线不卡| 国产麻豆成人精品| 本田岬高潮一区二区三区| 99久久综合色| 欧美日韩一区高清| 26uuu国产电影一区二区| 国产免费成人在线视频| 亚洲资源在线观看| 久久99久久精品| 99久久精品国产麻豆演员表| 欧美性色黄大片| 久久女同性恋中文字幕| 亚洲日本在线天堂| 久久精品免费观看| www.欧美日韩国产在线| 欧美日韩大陆在线| 国产欧美日韩在线视频| 亚洲成精国产精品女| 久久精品国产77777蜜臀| 成人不卡免费av| 91麻豆精品国产自产在线| 国产欧美日韩中文久久| 午夜久久久久久| 不卡的av电影| 国模冰冰炮一区二区| 亚洲成人高清在线| 日韩福利电影在线| 99视频精品免费视频| 日韩精品中文字幕一区二区三区| 国产精品久久久久久久久免费桃花| 亚洲成人一区二区| 97久久精品人人做人人爽| 精品精品国产高清一毛片一天堂| 樱桃国产成人精品视频| 久久国内精品自在自线400部| 91豆麻精品91久久久久久| 精品理论电影在线观看| 婷婷综合五月天| 99久久99精品久久久久久| 国产日韩影视精品| 伦理电影国产精品| 91精品国产色综合久久不卡电影| 亚洲少妇最新在线视频| 国产99精品国产| 欧美不卡一区二区| 日韩电影在线看| 色综合欧美在线| 国产欧美日韩在线看| 激情综合一区二区三区| 日韩欧美一级二级三级| 天天做天天摸天天爽国产一区| av电影一区二区| 国产精品美女久久久久久| 经典三级视频一区| 欧美电影精品一区二区| 日本v片在线高清不卡在线观看| 在线观看免费一区| 亚洲高清免费观看| 欧美日韩国产片| 国产成a人亚洲精| 亚洲精品一线二线三线无人区| 日韩精品午夜视频| 91精品国产欧美一区二区| 亚洲1区2区3区4区| 欧美一区午夜视频在线观看| 日韩国产精品久久久久久亚洲| 777久久久精品| 久久国内精品自在自线400部| 欧美成人精品二区三区99精品| 蜜桃av一区二区| 欧美tickling挠脚心丨vk| 狠狠色伊人亚洲综合成人| 久久理论电影网| www.亚洲激情.com| 亚洲午夜电影在线观看| 欧美日韩综合在线| 久久99久久精品欧美| 国产精品美女久久久久久| 91蜜桃网址入口| 日韩精品乱码免费| 久久中文娱乐网| 99久久精品国产一区二区三区 | 亚洲天堂2014| 91网站视频在线观看| 亚洲国产日韩a在线播放性色| 88在线观看91蜜桃国自产| 国产精品一二三| 亚洲日本一区二区| 欧美老人xxxx18| 国产毛片一区二区| 国产精品第13页| 91精品国产综合久久精品性色| 国产在线精品视频| 亚洲色欲色欲www| 日韩一级在线观看| 成人一级黄色片| 日本不卡视频一二三区| 亚洲国产成人私人影院tom| 欧美在线综合视频| 国产成人在线网站| 午夜精品免费在线| 美女视频黄a大片欧美| 国产精品美女久久久久av爽李琼| 欧美午夜精品免费| 福利视频网站一区二区三区| 亚洲无线码一区二区三区| 久久综合成人精品亚洲另类欧美 | 一区二区三区四区中文字幕| 欧美一区二区三区日韩| 91一区在线观看| 国产曰批免费观看久久久| 亚洲精品老司机| 国产亚洲视频系列| 欧美一区二区三区视频| 91蜜桃传媒精品久久久一区二区| 韩国女主播成人在线观看| 亚洲成人动漫av| 亚洲美女视频在线观看| 中文字幕欧美区| 久久久久久亚洲综合影院红桃| 欧美日韩国产另类一区| 91亚洲国产成人精品一区二区三| 国产毛片一区二区| 久久99久国产精品黄毛片色诱| 天天色图综合网| 亚洲成av人片在www色猫咪| 国产精品久久久久久一区二区三区 | 欧美日韩免费一区二区三区视频| 国产精品一区二区视频| 精品在线观看视频| 免费xxxx性欧美18vr| 天天影视涩香欲综合网| 午夜激情久久久| 依依成人精品视频| 亚洲精品久久7777| 亚洲色图欧美在线| 亚洲激情自拍视频| 亚洲国产一区二区视频| 一个色在线综合| 亚洲成人免费电影| 亚洲国产成人av| 无码av免费一区二区三区试看| 亚洲一卡二卡三卡四卡五卡| 亚洲激情综合网| 亚洲国产三级在线| 日本中文一区二区三区| 免费成人av在线播放| 韩国三级中文字幕hd久久精品| 精品一区二区三区欧美| 国产成人综合亚洲91猫咪| 成人伦理片在线| 一本久道中文字幕精品亚洲嫩| 在线看不卡av| 欧美一卡二卡在线| 久久理论电影网| 综合色中文字幕| 亚洲一区二区中文在线| 美女高潮久久久| 丰满白嫩尤物一区二区| 91捆绑美女网站| 欧美日韩国产在线观看| 欧美成人aa大片| 久久精品一区二区三区av| **性色生活片久久毛片| 亚洲一区在线观看免费观看电影高清| 亚洲一区在线观看免费| 日韩国产精品久久久| 国产高清视频一区| 日本高清免费不卡视频| 日韩欧美一二三四区| 国产精品久久精品日日| 亚洲超丰满肉感bbw| 国产一区二区精品在线观看| eeuss鲁一区二区三区| 欧美片网站yy| 国产精品麻豆网站| 日本在线观看不卡视频| 成人午夜电影网站| 欧美日韩黄色一区二区| 国产欧美日韩另类视频免费观看| 亚洲丶国产丶欧美一区二区三区| 国产一区二区久久| 91精品免费在线| 亚洲欧美色图小说| 国产二区国产一区在线观看 | 日本最新不卡在线|