dcabs1.c
Go to the documentation of this file.
00001 /* dcabs1.f -- translated by f2c (version 20061008).
00002    You must link the resulting object file with libf2c:
00003         on Microsoft Windows system, link with libf2c.lib;
00004         on Linux or Unix systems, link with .../path/to/libf2c.a -lm
00005         or, if you install libf2c.a in a standard place, with -lf2c -lm
00006         -- in that order, at the end of the command line, as in
00007                 cc *.o -lf2c -lm
00008         Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
00009 
00010                 http://www.netlib.org/f2c/libf2c.zip
00011 */
00012 
00013 #include "f2c.h"
00014 #include "blaswrap.h"
00015 
00016 doublereal dcabs1_(doublecomplex *z__)
00017 {
00018     /* System generated locals */
00019     doublereal ret_val, d__1, d__2;
00020 
00021     /* Builtin functions */
00022     double d_imag(doublecomplex *);
00023 
00024 /*     .. Scalar Arguments .. */
00025 /*     .. */
00026 /*     .. */
00027 /*  Purpose */
00028 /*  ======= */
00029 
00030 /*  DCABS1 computes absolute value of a double complex number */
00031 
00032 /*     .. Intrinsic Functions .. */
00033 
00034     ret_val = (d__1 = z__->r, abs(d__1)) + (d__2 = d_imag(z__), abs(d__2));
00035     return ret_val;
00036 } /* dcabs1_ */


swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:55:37