Artifact e3111baaa7c54ddef1406ae12d7d0ffe0497ac195dfb5979910e994ad3efedf0:
- Executable file
r37/lisp/csl/html/r37_0031.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: 1523) [annotate] [blame] [check-ins using] [more...]
<A NAME=power> <TITLE>power</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>**</B> _ _ _ <B>POWER</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P> <P> The <em>**</em> operator is a prefix or infix binary exponentiation operator. <P> <P> <P> <H3> syntax: </H3> <expression> <em>**</em><expression> or <em>**</em>(<expression>,<expression>) <P> <P> <P> <expression> may be any valid REDUCE expression. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> x**15; 15 X x**y**z; Y*Z X x**(y**z); Z Y X **(y,4); 4 Y on rounded; 2**pi; 8.82497782708 </TT></PRE><P>The exponentiation operator is left associative, so that <em>a**b* *c</em> is equivalent to <em>(a**b)**c</em>, as shown in the second example. Note that this is not <em>a**(b**c)</em>, which would be right associative. <P> <P> When <A HREF=r37_0308.html>nat</A> is on (the default), REDUCE output produces raised exponents, as shown. The symbol <em>^</em>, which is the upper-case 6 on most keyboards, may be used in the place of <em>**</em>. <P> <P> A square <A HREF=r37_0345.html>matrix</A> may also be raised to positive and negative pow ers with the exponentiation operator (negative powers require the matrix to be invertible). Scalar expressions and <A HREF=r37_0045.html>equation</A>s may be raised to fractional and floating-point powers. <P> <P> <P>