Mercurial > octave-nkf
comparison doc/interpreter/intro.txi @ 6623:545847da3b88
[project @ 2007-05-15 02:23:08 by jwe]
author | jwe |
---|---|
date | Tue, 15 May 2007 02:23:32 +0000 |
parents | bf4bdc21dc8d |
children | 083721ae3dfa |
comparison
equal
deleted
inserted
replaced
6622:e41677144283 | 6623:545847da3b88 |
---|---|
64 If you are new to Octave, I recommend that you try these examples to | 64 If you are new to Octave, I recommend that you try these examples to |
65 begin learning Octave by using it. Lines marked with @samp{octave:13>} | 65 begin learning Octave by using it. Lines marked with @samp{octave:13>} |
66 are lines you type, ending each with a carriage return. Octave will | 66 are lines you type, ending each with a carriage return. Octave will |
67 respond with an answer, or by displaying a graph. | 67 respond with an answer, or by displaying a graph. |
68 | 68 |
69 @unnumberedsubsec Creating a Matrix | 69 @subsection Creating a Matrix |
70 | 70 |
71 To create a new matrix and store it in a variable so that it you can | 71 To create a new matrix and store it in a variable so that it you can |
72 refer to it later, type the command | 72 refer to it later, type the command |
73 | 73 |
74 @example | 74 @example |
94 | 94 |
95 @example | 95 @example |
96 octave:3> B | 96 octave:3> B |
97 @end example | 97 @end example |
98 | 98 |
99 @unnumberedsubsec Matrix Arithmetic | 99 @subsection Matrix Arithmetic |
100 | 100 |
101 Octave has a convenient operator notation for performing matrix | 101 Octave has a convenient operator notation for performing matrix |
102 arithmetic. For example, to multiply the matrix @code{a} by a scalar | 102 arithmetic. For example, to multiply the matrix @code{a} by a scalar |
103 value, type the command | 103 value, type the command |
104 | 104 |
127 | 127 |
128 @example | 128 @example |
129 octave:6> A' * A | 129 octave:6> A' * A |
130 @end example | 130 @end example |
131 | 131 |
132 @unnumberedsubsec Solving Linear Equations | 132 @subsection Solving Linear Equations |
133 | 133 |
134 To solve the set of linear equations @code{A@var{x} = b}, | 134 To solve the set of linear equations @code{A@var{x} = b}, |
135 use the left division operator, @samp{\}: | 135 use the left division operator, @samp{\}: |
136 | 136 |
137 @example | 137 @example |
151 but avoids computing the inverse of a matrix directly. | 151 but avoids computing the inverse of a matrix directly. |
152 | 152 |
153 If the coefficient matrix is singular, Octave will print a warning | 153 If the coefficient matrix is singular, Octave will print a warning |
154 message and compute a minimum norm solution. | 154 message and compute a minimum norm solution. |
155 | 155 |
156 @unnumberedsubsec Integrating Differential Equations | 156 @subsection Integrating Differential Equations |
157 | 157 |
158 Octave has built-in functions for solving nonlinear differential | 158 Octave has built-in functions for solving nonlinear differential |
159 equations of the form | 159 equations of the form |
160 @iftex | 160 @iftex |
161 @tex | 161 @tex |
244 The function @code{lsode} uses the Livermore Solver for Ordinary | 244 The function @code{lsode} uses the Livermore Solver for Ordinary |
245 Differential Equations, described in A. C. Hindmarsh, @cite{ODEPACK, a | 245 Differential Equations, described in A. C. Hindmarsh, @cite{ODEPACK, a |
246 Systematized Collection of ODE Solvers}, in: Scientific Computing, R. S. | 246 Systematized Collection of ODE Solvers}, in: Scientific Computing, R. S. |
247 Stepleman et al. (Eds.), North-Holland, Amsterdam, 1983, pages 55--64. | 247 Stepleman et al. (Eds.), North-Holland, Amsterdam, 1983, pages 55--64. |
248 | 248 |
249 @unnumberedsubsec Producing Graphical Output | 249 @subsection Producing Graphical Output |
250 | 250 |
251 To display the solution of the previous example graphically, use the | 251 To display the solution of the previous example graphically, use the |
252 command | 252 command |
253 | 253 |
254 @example | 254 @example |
276 | 276 |
277 @noindent | 277 @noindent |
278 explains more options for the @code{print} command and provides a list | 278 explains more options for the @code{print} command and provides a list |
279 of additional output file formats. | 279 of additional output file formats. |
280 | 280 |
281 @unnumberedsubsec Editing What You Have Typed | 281 @subsection Editing What You Have Typed |
282 | 282 |
283 At the Octave prompt, you can recall, edit, and reissue previous | 283 At the Octave prompt, you can recall, edit, and reissue previous |
284 commands using Emacs- or vi-style editing commands. The default | 284 commands using Emacs- or vi-style editing commands. The default |
285 keybindings use Emacs-style commands. For example, to recall the | 285 keybindings use Emacs-style commands. For example, to recall the |
286 previous command, press @kbd{Control-p} (usually written @kbd{C-p} for | 286 previous command, press @kbd{Control-p} (usually written @kbd{C-p} for |
290 on the line, etc. | 290 on the line, etc. |
291 | 291 |
292 A complete description of the command line editing capability is given | 292 A complete description of the command line editing capability is given |
293 in this manual in @ref{Command Line Editing}. | 293 in this manual in @ref{Command Line Editing}. |
294 | 294 |
295 @unnumberedsubsec Help and Documentation | 295 @subsection Help and Documentation |
296 | 296 |
297 Octave has an extensive help facility. The same documentation that is | 297 Octave has an extensive help facility. The same documentation that is |
298 available in printed form is also available from the Octave prompt, | 298 available in printed form is also available from the Octave prompt, |
299 because both forms of the documentation are created from the same input | 299 because both forms of the documentation are created from the same input |
300 file. | 300 file. |