~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/signal/%sn.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%sn              Scilab Group              Scilab Function              %sn
 
2
NAME
 
3
   %sn - Jacobi 's elliptic function
 
4
  
 
5
CALLING SEQUENCE
 
6
 [y]=%sn(x,m)
 
7
PARAMETERS
 
8
 x    : a point inside the fundamental rectangle  defined by the elliptic
 
9
      integral; x is a vector of complex numbers
 
10
      
 
11
 m    : parameter of the elliptic integral (0<m<1)
 
12
      
 
13
 y    : result
 
14
      
 
15
DESCRIPTION
 
16
   Jacobi 's sn elliptic function with parameter m: the inverse  of the
 
17
  elliptic integral for the parameter m.
 
18
  
 
19
   The amplitude am is computed in fortran and  the addition formulas for
 
20
  elliptic functions are applied
 
21
  
 
22
EXAMPLE
 
23
 m=0.36;
 
24
 K=%k(m);
 
25
 P=4*K; //Real period
 
26
 real_val=0:(P/50):P;
 
27
 plot(real_val,real(%sn(real_val,m)))
 
28
 xbasc();
 
29
 KK=%k(1-m);
 
30
 Ip=2*KK;
 
31
 ima_val1=0:(Ip/50):KK-0.001;
 
32
 ima_val2=(KK+0.05):(Ip/25):(Ip+KK);
 
33
 z1=%sn(%i*ima_val1,m);z2=%sn(%i*ima_val2,m);
 
34
 plot2d([ima_val1',ima_val2'],[imag(z1)',imag(z2)']);
 
35
 xgrid(3)
 
36
SEE ALSO
 
37
   %asn, %k
 
38
  
 
39
AUTHOR
 
40
   F. D.
 
41