Studentenversion des ESY6/A Praktikums "signal_processing".
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Complex.h 596B

1 year ago
123456789101112131415161718192021222324252627
  1. #pragma once
  2. typedef struct {
  3. float re;
  4. float im;
  5. } Complex;
  6. float complex_abs( const Complex * c );
  7. float complex_arg( const Complex * a );
  8. Complex complex_comjunction( const Complex * a );
  9. float complex_phi( const Complex * c );
  10. Complex complex_scalar_mul( const Complex * a, const float b );
  11. Complex complex_mul( const Complex * a, const Complex * b );
  12. Complex complex_add( const Complex * a, const Complex * b );
  13. Complex complex_sub( const Complex * a, const Complex * b );
  14. Complex complex_polar( float roh, float theta );
  15. Complex complex_pow( const Complex * a, int n );