diff options
Diffstat (limited to 'comp.h')
| -rw-r--r-- | comp.h | 38 |
1 files changed, 38 insertions, 0 deletions
| @@ -0,0 +1,38 @@ | |||
| 1 | /*---------------------------------------------------------------------------*\ | ||
| 2 | |||
| 3 | FILE........: comp.h | ||
| 4 | AUTHOR......: David Rowe | ||
| 5 | DATE CREATED: 24/08/09 | ||
| 6 | |||
| 7 | Complex number definition. | ||
| 8 | |||
| 9 | \*---------------------------------------------------------------------------*/ | ||
| 10 | |||
| 11 | /* | ||
| 12 | Copyright (C) 2009 David Rowe | ||
| 13 | |||
| 14 | All rights reserved. | ||
| 15 | |||
| 16 | This program is free software; you can redistribute it and/or modify | ||
| 17 | it under the terms of the GNU Lesser General Public License version 2.1, as | ||
| 18 | published by the Free Software Foundation. This program is | ||
| 19 | distributed in the hope that it will be useful, but WITHOUT ANY | ||
| 20 | WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 21 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | ||
| 22 | License for more details. | ||
| 23 | |||
| 24 | You should have received a copy of the GNU Lesser General Public License | ||
| 25 | along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 26 | */ | ||
| 27 | |||
| 28 | #ifndef __COMP__ | ||
| 29 | #define __COMP__ | ||
| 30 | |||
| 31 | /* Complex number */ | ||
| 32 | |||
| 33 | typedef struct { | ||
| 34 | float real; | ||
| 35 | float imag; | ||
| 36 | } COMP; | ||
| 37 | |||
| 38 | #endif | ||
