File: default.tex

package info (click to toggle)
sollya 7.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 13,864 kB
  • sloc: ansic: 117,441; yacc: 8,822; lex: 2,419; makefile: 870; cpp: 76
file content (32 lines) | stat: -rw-r--r-- 1,135 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
\subsection{default}
\label{labdefault}
\noindent Name: \textbf{default}\\
\phantom{aaa}default value for some commands.\\[0.2cm]
\noindent Library names:\\
\verb|   sollya_obj_t sollya_lib_default()|\\
\verb|   int sollya_lib_is_default(sollya_obj_t)|\\[0.2cm]
\noindent Description: \begin{itemize}

\item \textbf{default} is a special value and is replaced by something depending on the 
   context where it is used. It can often be used as a joker, when you want to 
   specify one of the optional parameters of a command and not the others: set 
   the value of uninteresting parameters to \textbf{default}.

\item Global variables can be reset by affecting them the special value \textbf{default}.
\end{itemize}
\noindent Example 1: 
\begin{center}\begin{minipage}{15cm}\begin{Verbatim}[frame=single]
> p = remez(exp(x),5,[0;1],default,1e-5);
> q = remez(exp(x),5,[0;1],1,1e-5);
> p==q;
true
\end{Verbatim}
\end{minipage}\end{center}
\noindent Example 2: 
\begin{center}\begin{minipage}{15cm}\begin{Verbatim}[frame=single]
> prec;
165
> prec=200;
The precision has been set to 200 bits.
\end{Verbatim}
\end{minipage}\end{center}