Change Eclipse configuration
[jabaws.git] / website / archive / binaries / mac / src / disembl / Tisean_3.0.1 / source_f / henon.f
1 c===========================================================================
2 c
3 c   This file is part of TISEAN
4
5 c   Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber
6
7 c   TISEAN is free software; you can redistribute it and/or modify
8 c   it under the terms of the GNU General Public License as published by
9 c   the Free Software Foundation; either version 2 of the License, or
10 c   (at your option) any later version.
11 c
12 c   TISEAN is distributed in the hope that it will be useful,
13 c   but WITHOUT ANY WARRANTY; without even the implied warranty of
14 c   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 c   GNU General Public License for more details.
16 c
17 c   You should have received a copy of the GNU General Public License
18 c   along with TISEAN; if not, write to the Free Software
19 c   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20 c
21 c===========================================================================
22 c   henon.f
23 c   iterate Henon map
24 c   author Thomas Schreiber (1998)
25 c===========================================================================
26       double precision xo, yo, xn, yn, a, b
27       character*72 fout
28       data a/1.4/,b/0.3/,ntrans/10000/,xo/.68587/,yo/.65876/
29       data iverb/1/
30
31       call whatido("Henon map",iverb)
32       nmax=imust('l')
33       ntrans=ican('x',ntrans)
34       a=fcan('A',real(a))
35       b=fcan('B',real(b))
36       xo=fcan('X',real(xo))
37       yo=fcan('Y',real(yo))
38       isout=igetout(fout,iverb)
39
40       if(isout.eq.1) fout="henon.dat"
41       call outfile(fout,iunit,iverb)
42       n=-ntrans
43  1    n=n+1
44       xn=1.-a*xo**2+b*yo
45       yn=xo
46       xo=xn
47       yo=yn
48       if(n.lt.1) goto 1
49       write(iunit,*) real(xn), real(yn)
50       if(nmax.eq.0.or.n.lt.nmax) goto 1
51       end
52
53       subroutine usage()
54 c usage message
55
56       call whatineed(
57      .   "-l# [-A# -B# -X# -Y# -o outfile -x# -V# -h]")
58       call popt("l","number of points x,y (l=0: infinite)")
59       call popt("A","parameter a (1.4)")
60       call popt("B","parameter b (0.3)")
61       call popt("X","initial x")
62       call popt("Y","initial y")
63       call popt("x","number of transients discarded (10000)")
64       call pout("henon.dat")
65       call pall()
66       stop
67       end
68
69