version 1.4, 2005/03/24 16:22:36
|
version 1.5, 2011/01/16 22:10:52
|
Line 11 For now, let's just look at some simple
|
Line 11 For now, let's just look at some simple
|
|
|
% |
% |
\begin{figure} |
\begin{figure} |
\begin{lyxcode} |
|
\$a~=~-3.0; |
\$a~=~-3.0; |
|
|
\$b~=~\&sin(\$a); |
\$b~=~\&sin(\$a); |
|
|
\$c~=~\&pow(3.0,~\&abs(\$a)); |
\$c~=~\&pow(3.0,~\&abs(\$a)); |
\end{lyxcode} |
|
|
|
\caption{Some Function Calls\label{Some Function Calls Figure}} |
\caption{Some Function Calls\label{Some Function Calls Figure}} |
\end{figure} |
\end{figure} |
In the \textbf{Script} block, function names start with \textbf{\&}. Some |
In the \textbf{Script} block, function names start with \textbf{\&}. Some |
example function calls are shown in figure \ref{Some Function Calls Figure}. |
example function calls are shown above. |
You can see that functions can take either variables, numbers, or the results |
You can see that functions can take either variables, numbers, or the results |
of other function calls as parameters. The \texttt{\&sin} function returns |
of other function calls as parameters. The \texttt{\&sin} function returns |
the sine of an angle expressed in radians. \texttt{\&pow} raises the first |
the sine of an angle expressed in radians. \texttt{\&pow} raises the first |