~ubuntu-branches/ubuntu/precise/yagiuda/precise

« back to all changes in this revision

Viewing changes to src/selftest.c

  • Committer: Bazaar Package Importer
  • Author(s): Joop Stakenborg
  • Date: 2005-08-22 20:20:13 UTC
  • Revision ID: james.westby@ubuntu.com-20050822202013-mhhxp4xirdxrdfx1
Tags: upstream-1.19
ImportĀ upstreamĀ versionĀ 1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifdef HAVE_STDLIB_H
 
2
#include <stdlib.h>
 
3
#endif
 
4
#include <stdio.h>
 
5
#include <math.h>
 
6
#include "yagi.h"
 
7
 
 
8
int main(int argc, char **argv)
 
9
{
 
10
   double r=0.0008, x, real, length, lambda=300/8.05;
 
11
   for(length=0.45*lambda; length <=0.52*lambda; length+=0.001*lambda) 
 
12
   {
 
13
      self(r, length, lambda, &real, &x);
 
14
      printf("Z = %f  %f jX \n", length/lambda,real,x);
 
15
   }
 
16
   printf("\n");
 
17
   exit(0);
 
18
}