1,847
edits
No edit summary |
m (Link the original document) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
= The very basics = | = The very basics = | ||
<tt>+ | - | * | / | ^ | pi | i | inf | eps | sin | cos | tan | exp | log | log10 | abs | sqrt | sign | round | ceil | floor | fix | = | , | ; | who | clear | help | lookfor</tt> | <tt>+ | - | * | / | ^ | pi | i | e | inf | eps | sin | cos | tan | exp | log | log10 | abs | sqrt | sign | round | ceil | floor | fix | = | , | ; | who | clear | help | lookfor</tt> | ||
x = pi, y = floor (sin (x)), z = log (exp (2013)), z / inf ↵ | x = pi, y = floor (sin (x)), z = log (exp (2013)), z / inf ↵ | ||
= Vectors and matrices = | = Vectors and matrices = | ||
<tt>: | .* | ./ | .^ | ' | .' | \ | length | numel | size | zeros | ones | eye | diag | rand | det | trace | inv | lu | eig | cond | expm</tt> | <tt>: | .* | ./ | .^ | ' | .' | \ | length | numel | size | zeros | ones | eye | diag | rand | det | trace | inv | lu | eig | cond | expm</tt> | ||
Line 17: | Line 18: | ||
<tt>== | > | < | >= | <= | != | | || | | & | && | ! | if | else | elseif | for | while |end | break | continue | pause</tt> | <tt>== | > | < | >= | <= | != | | || | | & | && | ! | if | else | elseif | for | while |end | break | continue | pause</tt> | ||
for i = 1:5 if (i < 3) disp (i) else disp (i^2) end end ↵ | for i = 1:5 if (i < 3) disp (i) else disp (i^2) end end ↵ | ||
= See also = | |||
[https://lists.gnu.org/archive/html/help-octave/2013-01/pdfoEurT8AZ7Z.pdf GNU OCTAVE CARD by Fotios Kasolis] | |||
[[Category:Tutorials]] | [[Category:Tutorials]] |