]> Creatis software - CreaPhase.git/blob - octave_packages/specfun-1.1.0/doc-cache
Add a useful package (from Source forge) for octave
[CreaPhase.git] / octave_packages / specfun-1.1.0 / doc-cache
1 # Created by Octave 3.6.1, Sun Mar 11 22:05:14 2012 UTC <root@t61>
2 # name: cache
3 # type: cell
4 # rows: 3
5 # columns: 19
6 # name: <cell-element>
7 # type: sq_string
8 # elements: 1
9 # length: 2
10 Ci
11
12
13 # name: <cell-element>
14 # type: sq_string
15 # elements: 1
16 # length: 275
17  -- Function File: Y = Ci (Z)
18      Compute the cosine integral function defined by:                    Inf
19                        /
20                Ci(x) = | cos(t)/t dt
21                        /
22                        x
23
24      See also: cosint, Si, sinint, expint, expint_Ei
25
26
27
28
29
30 # name: <cell-element>
31 # type: sq_string
32 # elements: 1
33 # length: 80
34 Compute the cosine integral function defined by:
35                    Inf
36         
37
38
39
40 # name: <cell-element>
41 # type: sq_string
42 # elements: 1
43 # length: 2
44 Si
45
46
47 # name: <cell-element>
48 # type: sq_string
49 # elements: 1
50 # length: 207
51  -- Function File: Y = Si (X)
52      Compute the sine integral defined by:                    x
53                        /
54                Si(x) = | sin(t)/t dt
55                        /
56                        0
57
58
59
60
61 # name: <cell-element>
62 # type: sq_string
63 # elements: 1
64 # length: 80
65 Compute the sine integral defined by:
66                    x
67                   /
68  
69
70
71
72 # name: <cell-element>
73 # type: sq_string
74 # elements: 1
75 # length: 6
76 cosint
77
78
79 # name: <cell-element>
80 # type: sq_string
81 # elements: 1
82 # length: 275
83  -- Function File: Y = cosint (Z)
84      Compute the cosine integral function defined by:                    Inf
85                        /
86            cosint(x) = | cos(t)/t dt
87                        /
88                        x
89
90      See also: Ci, Si, sinint, expint, expint_Ei
91
92
93
94
95
96 # name: <cell-element>
97 # type: sq_string
98 # elements: 1
99 # length: 80
100 Compute the cosine integral function defined by:
101                    Inf
102         
103
104
105
106 # name: <cell-element>
107 # type: sq_string
108 # elements: 1
109 # length: 5
110 dirac
111
112
113 # name: <cell-element>
114 # type: sq_string
115 # elements: 1
116 # length: 99
117  -- Function File: Y = dirac(X)
118      Compute the dirac delta function.
119
120      See also: heaviside
121
122
123
124
125
126 # name: <cell-element>
127 # type: sq_string
128 # elements: 1
129 # length: 33
130 Compute the dirac delta function.
131
132
133
134 # name: <cell-element>
135 # type: sq_string
136 # elements: 1
137 # length: 7
138 ellipke
139
140
141 # name: <cell-element>
142 # type: sq_string
143 # elements: 1
144 # length: 410
145  -- Function File: [K, E] = ellipke (M[,TOL])
146      Compute complete elliptic integral of first K(M) and second E(M).
147
148      M is either real array or scalar with 0 <= m <= 1
149
150      TOL will be ignored (MATLAB uses this to allow faster, less
151      accurate approximation)
152
153      Ref: Abramowitz, Milton and Stegun, Irene A. Handbook of
154      Mathematical Functions, Dover, 1965, Chapter 17.
155
156      See also: ellipj
157
158
159
160
161
162 # name: <cell-element>
163 # type: sq_string
164 # elements: 1
165 # length: 65
166 Compute complete elliptic integral of first K(M) and second E(M).
167
168
169
170 # name: <cell-element>
171 # type: sq_string
172 # elements: 1
173 # length: 7
174 erfcinv
175
176
177 # name: <cell-element>
178 # type: sq_string
179 # elements: 1
180 # length: 122
181  -- Function File: erfcinv (X)
182      Compute the inverse complementary error function.
183
184      See also: erfc, erf, erfinv
185
186
187
188
189
190 # name: <cell-element>
191 # type: sq_string
192 # elements: 1
193 # length: 49
194 Compute the inverse complementary error function.
195
196
197
198 # name: <cell-element>
199 # type: sq_string
200 # elements: 1
201 # length: 6
202 expint
203
204
205 # name: <cell-element>
206 # type: sq_string
207 # elements: 1
208 # length: 251
209  -- Function File: Y = expint (X)
210      Compute the exponential integral,                    infinity
211                        /
212            expint(x) = | exp(t)/t dt
213                        /
214                       x
215
216      See also: expint_E1, expint_Ei
217
218
219
220
221
222 # name: <cell-element>
223 # type: sq_string
224 # elements: 1
225 # length: 80
226 Compute the exponential integral,
227                    infinity
228                   
229
230
231
232 # name: <cell-element>
233 # type: sq_string
234 # elements: 1
235 # length: 9
236 expint_E1
237
238
239 # name: <cell-element>
240 # type: sq_string
241 # elements: 1
242 # length: 251
243  -- Function File: Y = expint_E1 (X)
244      Compute the exponential integral,                    infinity
245                        /
246            expint(x) = | exp(t)/t dt
247                        /
248                       x
249
250      See also: expint, expint_Ei
251
252
253
254
255
256 # name: <cell-element>
257 # type: sq_string
258 # elements: 1
259 # length: 80
260 Compute the exponential integral,
261                    infinity
262                   
263
264
265
266 # name: <cell-element>
267 # type: sq_string
268 # elements: 1
269 # length: 9
270 expint_Ei
271
272
273 # name: <cell-element>
274 # type: sq_string
275 # elements: 1
276 # length: 263
277  -- Function File: Y = expint_Ei (X)
278      Compute the exponential integral,                      infinity
279                          /
280         expint_Ei(x) = - | exp(t)/t dt
281                          /
282                          -x
283
284      See also: expint, expint_E1
285
286
287
288
289
290 # name: <cell-element>
291 # type: sq_string
292 # elements: 1
293 # length: 80
294 Compute the exponential integral,
295                      infinity
296                 
297
298
299
300 # name: <cell-element>
301 # type: sq_string
302 # elements: 1
303 # length: 9
304 heaviside
305
306
307 # name: <cell-element>
308 # type: sq_string
309 # elements: 1
310 # length: 400
311  -- Function File:  heaviside(X)
312  -- Function File:  heaviside(X, ZERO_VALUE)
313      Compute the Heaviside step function.
314
315      The Heaviside function is defined as
316
317             Heaviside (X) = 1,   X > 0
318             Heaviside (X) = 0,   X < 0
319
320      The value of the Heaviside function at X = 0 is by default 0.5,
321      but can be changed via the optional second input argument.
322
323      See also: dirac
324
325
326
327
328
329 # name: <cell-element>
330 # type: sq_string
331 # elements: 1
332 # length: 36
333 Compute the Heaviside step function.
334
335
336
337 # name: <cell-element>
338 # type: sq_string
339 # elements: 1
340 # length: 8
341 laguerre
342
343
344 # name: <cell-element>
345 # type: sq_string
346 # elements: 1
347 # length: 171
348  -- Function File: Y =  laguerre (X,N)
349  -- Function File: [Y P]=  laguerre (X,N)
350      Compute the value of the Laguerre polynomial of order N for each
351      element of X
352
353
354
355
356
357 # name: <cell-element>
358 # type: sq_string
359 # elements: 1
360 # length: 78
361 Compute the value of the Laguerre polynomial of order N for each
362 element of X
363
364
365
366
367 # name: <cell-element>
368 # type: sq_string
369 # elements: 1
370 # length: 8
371 lambertw
372
373
374 # name: <cell-element>
375 # type: sq_string
376 # elements: 1
377 # length: 1029
378  -- Function File: X =  lambertw (Z)
379  -- Function File: X =  lambertw (Z, N)
380      Compute the Lambert W function of Z.
381
382      This function satisfies W(z).*exp(W(z)) = z, and can thus be used
383      to express solutions of transcendental equations involving
384      exponentials or logarithms.
385
386      N must be integer, and specifies the branch of W to be computed;
387      W(z) is a shorthand for W(0,z), the principal branch.  Branches 0
388      and -1 are the only ones that can take on non-complex values.
389
390      If either N or Z are non-scalar, the function is mapped to each
391      element; both may be non-scalar provided their dimensions agree.
392
393      This implementation should return values within 2.5*eps of its
394      counterpart in Maple V, release 3 or later.  Please report any
395      discrepancies to the author, Nici Schraudolph
396      <schraudo@inf.ethz.ch>.
397
398      For further details, see:
399
400      Corless, Gonnet, Hare, Jeffrey, and Knuth (1996), `On the Lambert
401      W Function', Advances in Computational Mathematics 5(4):329-359.
402
403
404
405
406 # name: <cell-element>
407 # type: sq_string
408 # elements: 1
409 # length: 36
410 Compute the Lambert W function of Z.
411
412
413
414 # name: <cell-element>
415 # type: sq_string
416 # elements: 1
417 # length: 9
418 laplacian
419
420
421 # name: <cell-element>
422 # type: sq_string
423 # elements: 1
424 # length: 3694
425  LAPLACIAN   Sparse Negative Laplacian in 1D, 2D, or 3D
426
427     [~,~,A]=LAPLACIAN(N) generates a sparse negative 3D Laplacian matrix
428     with Dirichlet boundary conditions, from a rectangular cuboid regular
429     grid with j x k x l interior grid points if N = [j k l], using the
430     standard 7-point finite-difference scheme,  The grid size is always
431     one in all directions.
432
433     [~,~,A]=LAPLACIAN(N,B) specifies boundary conditions with a cell array
434     B. For example, B = {'DD' 'DN' 'P'} will Dirichlet boundary conditions
435     ('DD') in the x-direction, Dirichlet-Neumann conditions ('DN') in the
436     y-direction and period conditions ('P') in the z-direction. Possible
437     values for the elements of B are 'DD', 'DN', 'ND', 'NN' and 'P'.
438
439     LAMBDA = LAPLACIAN(N,B,M) or LAPLACIAN(N,M) outputs the m smallest
440     eigenvalues of the matrix, computed by an exact known formula, see
441     http://en.wikipedia.org/wiki/Eigenvalues_and_eigenvectors_of_the_second_derivative
442     It will produce a warning if the mth eigenvalue is equal to the
443     (m+1)th eigenvalue. If m is absebt or zero, lambda will be empty.
444
445     [LAMBDA,V] = LAPLACIAN(N,B,M) also outputs orthonormal eigenvectors
446     associated with the corresponding m smallest eigenvalues.
447
448     [LAMBDA,V,A] = LAPLACIAN(N,B,M) produces a 2D or 1D negative
449     Laplacian matrix if the length of N and B are 2 or 1 respectively.
450     It uses the standard 5-point scheme for 2D, and 3-point scheme for 1D.
451
452     % Examples:
453     [lambda,V,A] = laplacian([100,45,55],{'DD' 'NN' 'P'}, 20); 
454     % Everything for 3D negative Laplacian with mixed boundary conditions.
455     laplacian([100,45,55],{'DD' 'NN' 'P'}, 20);
456     % or
457     lambda = laplacian([100,45,55],{'DD' 'NN' 'P'}, 20);
458     % computes the eigenvalues only
459
460     [~,V,~] = laplacian([200 200],{'DD' 'DN'},30);
461     % Eigenvectors of 2D negative Laplacian with mixed boundary conditions.
462
463     [~,~,A] = laplacian(200,{'DN'},30);
464     % 1D negative Laplacian matrix A with mixed boundary conditions.
465
466     % Example to test if outputs correct eigenvalues and vectors:
467     [lambda,V,A] = laplacian([13,10,6],{'DD' 'DN' 'P'},30);
468     [Veig D] = eig(full(A)); lambdaeig = diag(D(1:30,1:30));
469     max(abs(lambda-lambdaeig))  %checking eigenvalues
470     subspace(V,Veig(:,1:30))    %checking the invariant subspace
471     subspace(V(:,1),Veig(:,1))  %checking selected eigenvectors
472     subspace(V(:,29:30),Veig(:,29:30)) %a multiple eigenvalue 
473     
474     % Example showing equivalence between laplacian.m and built-in MATLAB
475     % DELSQ for the 2D case. The output of the last command shall be 0.
476     A1 = delsq(numgrid('S',32)); % input 'S' specifies square grid.
477     [~,~,A2] = laplacian([30,30]);
478     norm(A1-A2,inf)
479     
480     Class support for inputs:
481     N - row vector float double  
482     B - cell array
483     M - scalar float double 
484
485     Class support for outputs:
486     lambda and V  - full float double, A - sparse float double.
487
488     Note: the actual numerical entries of A fit int8 format, but only
489     double data class is currently (2010) supported for sparse matrices. 
490
491     This program is designed to efficiently compute eigenvalues,
492     eigenvectors, and the sparse matrix of the (1-3)D negative Laplacian
493     on a rectangular grid for Dirichlet, Neumann, and Periodic boundary
494     conditions using tensor sums of 1D Laplacians. For more information on
495     tensor products, see
496     http://en.wikipedia.org/wiki/Kronecker_sum_of_discrete_Laplacians
497     For 2D case in MATLAB, see 
498     http://www.mathworks.com/access/helpdesk/help/techdoc/ref/kron.html.
499
500     This code is also part of the BLOPEX package: 
501     http://en.wikipedia.org/wiki/BLOPEX or directly 
502     http://code.google.com/p/blopex/
503
504
505
506 # name: <cell-element>
507 # type: sq_string
508 # elements: 1
509 # length: 56
510  LAPLACIAN   Sparse Negative Laplacian in 1D, 2D, or 3D
511
512
513
514
515 # name: <cell-element>
516 # type: sq_string
517 # elements: 1
518 # length: 8
519 multinom
520
521
522 # name: <cell-element>
523 # type: sq_string
524 # elements: 1
525 # length: 588
526  -- Function File: [Y ALPHA] = multinom (X, N)
527  -- Function File: [Y ALPHA] = multinom (X, N,SORT)
528      Returns the terms (monomials) of the multinomial expansion of
529      degree n.
530
531           (x1 + x2 + ... + xm)^N
532
533      X is a nT-by-m matrix where each column represents a different
534      variable, the output Y has the same format.  The order of the
535      terms is inherited from multinom_exp and can be controlled through
536      the optional argument SORT and is passed to the function `sort'.
537      The exponents are returned in ALPHA.
538
539      See also: multinom_exp, multinom_coeff, sort
540
541
542
543
544
545 # name: <cell-element>
546 # type: sq_string
547 # elements: 1
548 # length: 71
549 Returns the terms (monomials) of the multinomial expansion of degree n.
550
551
552
553 # name: <cell-element>
554 # type: sq_string
555 # elements: 1
556 # length: 14
557 multinom_coeff
558
559
560 # name: <cell-element>
561 # type: sq_string
562 # elements: 1
563 # length: 937
564  -- Function File: [C ALPHA] = multinom_coeff (M, N)
565  -- Function File: [C ALPHA] = multinom_coeff (M, N,ORDER)
566      Produces the coefficients of the multinomial expansion
567
568           (x1 + x2 + ... + xm).^n
569
570      For example, for m=3, n=3 the expansion is
571
572           (x1+x2+x3)^3 =
573                   = x1^3 + x2^3 + x3^3 +
574                   +  3 x1^2 x2 + 3 x1^2 x3 + 3 x2^2 x1 + 3 x2^2 x3 +
575                   + 3 x3^2 x1 + 3 x3^2 x2 + 6 x1 x2 x3
576
577      and the coefficients are [6 3 3 3 3 3 3 1 1 1].
578
579      The order of the coefficients is defined by the optinal argument
580      ORDER.   It is passed to the function `multion_exp'. See the help
581      of that function for explanation.  The multinomial coefficients
582      are generated using
583
584            /   \
585            | n |                n!
586            |   |  = ------------------------
587            | k |     k(1)!k(2)! ... k(end)!
588            \   /
589
590      See also: multinom, multinom_exp
591
592
593
594
595
596 # name: <cell-element>
597 # type: sq_string
598 # elements: 1
599 # length: 55
600 Produces the coefficients of the multinomial expansion
601
602
603
604
605 # name: <cell-element>
606 # type: sq_string
607 # elements: 1
608 # length: 12
609 multinom_exp
610
611
612 # name: <cell-element>
613 # type: sq_string
614 # elements: 1
615 # length: 700
616  -- Function File: ALPHA = multinom_exp (M, N)
617  -- Function File: ALPHA = multinom_exp (M, N,SORT)
618      Returns the exponents of the terms in the multinomial expansion
619
620           (x1 + x2 + ... + xm).^N
621
622      For example, for m=2, n=3 the expansion has the terms
623
624           x1^3, x2^3, x1^2*x2, x1*x2^2
625
626      then `alpha = [3 0; 2 1; 1 2; 0 3]';
627
628      The optional argument SORT is passed to function `sort' to sort
629      the exponents by the maximum degree.  The example above calling `
630      multinom(m,n,"ascend")' produces
631
632      `alpha = [2 1; 1 2; 3 0; 0 3]';
633
634      calling ` multinom(m,n,"descend")' produces
635
636      `alpha = [3 0; 0 3; 2 1; 1 2]';
637
638      See also: multinom, multinom_coeff, sort
639
640
641
642
643
644 # name: <cell-element>
645 # type: sq_string
646 # elements: 1
647 # length: 64
648 Returns the exponents of the terms in the multinomial expansion
649
650
651
652
653 # name: <cell-element>
654 # type: sq_string
655 # elements: 1
656 # length: 3
657 psi
658
659
660 # name: <cell-element>
661 # type: sq_string
662 # elements: 1
663 # length: 201
664  -- Function File: Y =  psi (X)
665      Compute the psi function, for each value of X.
666
667                  d
668         psi(x) = __ log(gamma(x))
669                  dx
670
671      See also: gamma, gammainc, gammaln
672
673
674
675
676
677 # name: <cell-element>
678 # type: sq_string
679 # elements: 1
680 # length: 46
681 Compute the psi function, for each value of X.
682
683
684
685 # name: <cell-element>
686 # type: sq_string
687 # elements: 1
688 # length: 6
689 sinint
690
691
692 # name: <cell-element>
693 # type: sq_string
694 # elements: 1
695 # length: 96
696  -- Function File: Y = sinint (X)
697      Compute the sine integral function.
698
699      See also: Si
700
701
702
703
704
705 # name: <cell-element>
706 # type: sq_string
707 # elements: 1
708 # length: 35
709 Compute the sine integral function.
710
711
712
713 # name: <cell-element>
714 # type: sq_string
715 # elements: 1
716 # length: 4
717 zeta
718
719
720 # name: <cell-element>
721 # type: sq_string
722 # elements: 1
723 # length: 95
724  -- Function File: Z = zeta (T)
725      Compute the Riemann's Zeta function.
726
727      See also: Si
728
729
730
731
732
733 # name: <cell-element>
734 # type: sq_string
735 # elements: 1
736 # length: 36
737 Compute the Riemann's Zeta function.
738
739
740
741
742