Artifact 3ca60eb17cb682193aeabde7a009c1cbb196e03a7ea980cecc703823b99a1875:
- Executable file
r37/lisp/csl/html/r37_0182.html
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1007) [annotate] [blame] [check-ins using] [more...]
<A NAME=SUB> <TITLE>SUB</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>SUB</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P> <P> <P> <P> The <em>sub</em> operator substitutes a new expression for a kernel in an expression. <P> <H3> syntax: </H3> <P> <P> <em>sub</em>(<kernel><em>=</em><expression> {,<kernel><em>=</em><expression>}*, <expression>) or <P> <P> <em>sub</em>({<kernel><em>=</em><expression>*, <kernel><em>=</em><em>expression</em>},<expression>) <P> <P> <P> <kernel> must be a <A HREF=r37_0002.html>kernel</A>, <expression> can be any REDUCE scalar expression. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> sub(x=3,y=4,(x+y)**3); 343 x; X sub({cos=sin,sin=cos},cos a+sin b) COS(B) + SIN(A) </TT></PRE><P>Note in the second example that operators can be replaced using th e <em>sub</em> operator. <P> <P> <P>