~ubuntu-branches/ubuntu/intrepid/plplot/intrepid

« back to all changes in this revision

Viewing changes to examples/c/x04c.c

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2006-11-04 10:19:34 UTC
  • mfrom: (2.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20061104101934-mlirvdg4gpwi6i5q
Tags: 5.6.1-10
* Orphaning the package
* debian/control: Changed the maintainer to the Debian QA Group

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: x04c.c,v 1.17 2002/12/03 08:39:24 airwin Exp $
 
1
/* $Id: x04c.c,v 1.19 2005/10/07 17:53:37 airwin Exp $
2
2
 
3
3
        Log plot demo.
4
4
*/
18
18
{
19
19
/* Parse and process command line arguments */
20
20
 
21
 
    (void) plParseOpts(&argc, argv, PL_PARSE_FULL);
 
21
    (void) plparseopts(&argc, argv, PL_PARSE_FULL);
22
22
 
23
23
/* Initialize plplot */
24
24
 
56
56
        freql[i] = -2.0 + i / 20.0;
57
57
        freq = pow(10.0, freql[i]);
58
58
        ampl[i] = 20.0 * log10(1.0 / sqrt(1.0 + pow((freq / f0), 2.)));
59
 
        phase[i] = -(180.0 / PI) * atan(freq / f0);
 
59
        phase[i] = -(180.0 / M_PI) * atan(freq / f0);
60
60
    }
61
61
 
62
62
    plvpor(0.15, 0.85, 0.1, 0.9);