c_abs.c 272 B

1234567891011121314151617181920
  1. #include "f2c.h"
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. #ifdef KR_headers
  6. extern double f__cabs();
  7. double c_abs(z) complex *z;
  8. #else
  9. extern double f__cabs(double, double);
  10. double c_abs(complex *z)
  11. #endif
  12. {
  13. return( f__cabs( z->r, z->i ) );
  14. }
  15. #ifdef __cplusplus
  16. }
  17. #endif