Artifact aa32ee006ee690fbfa5f861da871e7aea3034e01aae5950a9309c6d3b686b3e5:
- Executable file
r37/lisp/csl/html/r37_0023.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: 1133) [annotate] [blame] [check-ins using] [more...]
<A NAME=dot> <TITLE>dot</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>.</B> _ _ _ <B>DOT</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P> <P> <P> <P> The . (dot) infix binary operator adds a new item to the beginning of an existing <A HREF=r37_0302.html>list</A>. In high energy physics expressions, it can also be used to represent the scalar product of two Lorentz four-vectors. <P> <P> <P> <H3> syntax: </H3> <item> <em>.</em> <list> <P> <P> <P> <item> can be any REDUCE scalar expression, including a list; <list> must be a <A HREF=r37_0302.html>list</A> to avoid producing an error message. The dot operator is right associative. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> liss := a . {}; LISS := {A} liss := b . liss; LISS := {B,A} newliss := liss . liss; NEWLISS := {{B,A},B,A} firstlis := a . b . {c}; FIRSTLIS := {A,B,C} secondlis := x . y . {z}; SECONDLIS := {X,Y,Z} for i := 1:3 sum part(firstlis,i)*part(secondlis,i); A*X + B*Y + C*Z </TT></PRE><P>