Mercurial > octave-nkf
diff doc/refcard/refcard.tex @ 19630:0e1f5a750d00
maint: Periodic merge of gui-release to default.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 20 Jan 2015 10:24:46 -0500 |
parents | 9ac2357f19bc 446c46af4b42 |
children | 4197fc428c7d |
line wrap: on
line diff
--- a/doc/refcard/refcard.tex Tue Jan 20 09:55:41 2015 -0500 +++ b/doc/refcard/refcard.tex Tue Jan 20 10:24:46 2015 -0500 @@ -577,7 +577,7 @@ global {\it var1} ...&Declare variables global.\cr global {\it var1} = {\it val}&Declare variable global. Set initial value.\cr persistent {\it var1}&Declare a variable as static to a function.\cr -persistent {\it var1} = {\it val}&Declare a variable as static to a +persistent {\it var1} = {\it val}&Declare a variable as static to a function and set its initial value.\cr \omit\hfill\vbox{\rm\vskip0.25ex Global variables may be accessed inside the body of a function @@ -643,16 +643,16 @@ {\it x} > {\it y}&true if {\it x\/} is greater than {\it y}\cr {\it x} != {\it y}&true if {\it x\/} is not equal to {\it y}\cr {\it x} \& {\it y}&true if both {\it x\/} and {\it y\/} are true\cr -{\it x} | {\it y}&true if at least one of {\it x\/} or {\it y\/} is true\cr +{\it x} | {\it y}&true if at least one of {\it x\/} or {\it y\/} is true\cr ! {\it bool}&true if {\it bool\/} is false\cr \endsec \sec Short-circuit Boolean Operators; \omit \vbox{\rm\vskip0.75ex - Operators evaluate left-to-right. Operands are only evaluated if - necessary, stopping once overall truth value can be determined. - Operands are converted to scalars using the {\tt all} - function.\vskip0.75ex}\span\cr + Operators evaluate left-to-right. Operands are only evaluated if + necessary, stopping once overall truth value can be determined. + Operands are converted to scalars using the {\tt all} + function.\vskip0.75ex}\span\cr {\it x} \&\& {\it y}&true if both {\it x\/} and {\it y\/} are true\cr {\it x} || {\it y}&true if at least one of {\it x\/} or {\it y\/} is true\cr \endsec @@ -800,14 +800,14 @@ ones ({\it n}, {\it m})&create {\it n\/} by {\it m\/} matrix of ones\cr zeros ({\it n}, {\it m})&create {\it n\/} by {\it m\/} matrix of zeros\cr rand ({\it n}, {\it m})&create {\it n\/} by {\it m\/} matrix of random - values\cr + values\cr \endsec % sin ({\it a}) cos({\it a}) tan({\it a})&trigonometric functions\cr % asin ({\it a}) acos({\it a}) atan({\it a})&inverse trigonometric functions\cr % sinh ({\it a}) cosh({\it a}) tanh({\it a})&hyperbolic trig functions\cr % asinh ({\it a}) acosh({\it a}) atanh({\it a})&inverse hyperbolic trig -% functions\cr\cr +% functions\cr\cr \sec Linear Algebra; chol ({\it a})&Cholesky factorization\cr @@ -979,7 +979,7 @@ % For AUCTeX: % -% Local Variables: +% Local Variables: % mode: tex % TeX-master: t -% End: +% End: