Artifact a355b194d6bc892efba72506bd41e1863b92b73df801585f3c4ea4f847ef1de7:
- Executable file
r37/lisp/csl/html/r37_0032.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: 1465) [annotate] [blame] [check-ins using] [more...]
<A NAME=caret> <TITLE>caret</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>^</B> _ _ _ <B>CARET</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P> <P> The <em>^</em> operator is a prefix or infix binary exponentiation operator. It is equivalent to <A HREF=r37_0031.html>power</A> or **. <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. <P> <P> A square <A HREF=r37_0345.html>matrix</A> may also be raised to positive and negative powers 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>