--- cascmd_en.orig 2024-08-21 12:10:49.636096581 -0500 +++ cascmd_en.tex 2024-08-21 14:13:08.196085399 -0500 @@ -13382,7 +13382,7 @@ You can prevent an expression from being evaluated by \emph{quoting} it, either by preceding it with \texttt{'}\index{'@\texttt{'}} or with the \texttt{quote}\index{quote@\texttt{quote}} -or \texttt{hold}\index{hold@\texttt{hold}}) command. +or \texttt{hold}\index{hold@\texttt{hold}} command. \paragraph*{Remark.} If $a$ is a variable, then \texttt{$a$:=quote($a$)} (or @@ -13840,6 +13840,26 @@ 5 \end{xcasoutput} +If you want to substitute values into an expression +without evaluating the result, you can give the +\texttt{subst} command an optional last argument of +\texttt{quote}\index{quote@\texttt{quote}}. + +\subsubsection*{Examples} +Assuming that \texttt{x} is not assigned: +\begin{xcasinput} +subst(sin(x),x,pi) +\end{xcasinput} +\begin{xcasoutput} + 0 +\end{xcasoutput} +\begin{xcasinput} +subst(sin(x),x,pi,quote) +\end{xcasinput} +\begin{xcasoutput} + sin(pi) +\end{xcasoutput} + \paragraph*{Changing integration variables.} \texttt{subst} may also be used to make a change of variable in an integral. In this case the \texttt{integrate} command (see