1 /* -- translated by f2c (version 20100827).
2 You must link the resulting object file with libf2c:
3 on Microsoft Windows system, link with libf2c.lib;
4 on Linux or Unix systems, link with .../path/to/libf2c.a -lm
5 or, if you install libf2c.a in a standard place, with -lf2c -lm
6 -- in that order, at the end of the command line, as in
7 cc *.o -lf2c -lm
8 Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
9
10 http://www.netlib.org/f2c/libf2c.zip
11 */
12
13 #include "libtinyf2c.h"
14
15 /* Table of constant values */
16
17 static logical c_true = TRUE_;
18 static integer c__9 = 9;
19 static integer c__1 = 1;
20 static integer c__3 = 3;
21 static real c_b12 = 0.f;
22 static real c_b13 = 1.f;
23 static integer c__30 = 30;
24 static integer c__2 = 2;
25 static integer c__4 = 4;
26
27 /* ----------------------------------------------------------------------- */
28 /* Copyright (C) 2000-2004 GFD Dennou Club. All rights reserved. */
29 /* ----------------------------------------------------------------------- */
MAIN__(void)30 /* Main program */ int MAIN__(void)
31 {
32 /* Builtin functions */
33 integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
34 e_wsle(void), s_rsle(cilist *), e_rsle(void);
35
36 /* Local variables */
37 static doublereal a;
38 static integer i__;
39 static doublereal r__;
40 static real y[30];
41 static integer iws;
42 extern /* Subroutine */ int grcls_(void), grfrm_(void), gropn_(integer *),
43 uulin_(integer *, real *, real *), uumrk_(integer *, real *,
44 real *);
45 static real rundef;
46 extern /* Subroutine */ int glrget_(char *, real *, ftnlen), gllset_(char
47 *, logical *, ftnlen), sglset_(char *, logical *, ftnlen),
48 grswnd_(real *, real *, real *, real *), grstrf_(void), usdaxs_(
49 void), uspfit_(void), uuslni_(integer *), sgpwsn_(void), uusmkt_(
50 integer *), usspnt_(integer *, real *, real *);
51
52 /* Fortran I/O blocks */
53 static cilist io___6 = { 0, 6, 0, 0, 0 };
54 static cilist io___7 = { 0, 5, 0, 0, 0 };
55
56
57 /* ---------------------------- DATA DEFINITION -------------------------- */
58 r__ = .2;
59 a = 3.7;
60 for (i__ = 1; i__ <= 30; ++i__) {
61 r__ = a * r__ * (1. - r__);
62 y[i__ - 1] = r__;
63 /* L100: */
64 }
65 y[14] = 999.f;
66 gllset_("LMISS", &c_true, (ftnlen)5);
67 glrget_("RUNDEF", &rundef, (ftnlen)6);
68 /* ----------------------------- GRAPH ----------------------------------- */
69 s_wsle(&io___6);
70 do_lio(&c__9, &c__1, " WORKSTATION ID (I) ? ;", (ftnlen)24);
71 e_wsle();
72 sgpwsn_();
73 s_rsle(&io___7);
74 do_lio(&c__3, &c__1, (char *)&iws, (ftnlen)sizeof(integer));
75 e_rsle();
76 gropn_(&iws);
77 grfrm_();
78 sglset_("LCLIP", &c_true, (ftnlen)5);
79 grswnd_(&c_b12, &c_b13, &rundef, &rundef);
80 usspnt_(&c__30, &rundef, y);
81 uspfit_();
82 grstrf_();
83 usdaxs_();
84 uuslni_(&c__2);
85 uulin_(&c__30, &rundef, y);
86 uusmkt_(&c__4);
87 uumrk_(&c__30, &rundef, y);
88 grcls_();
89 return 0;
90 } /* MAIN__ */
91
uupk01_()92 /* Main program alias */ int uupk01_ () { MAIN__ (); return 0; }
93