source:
tags/arb-6.0.3/EISPACK/d_sign.cxx
| Last change on this file was 2, checked in by oldcode, 25 years ago | |
|---|---|
|
|
| File size: 144 bytes | |
| Line | |
|---|---|
| 1 | #include "f2c.h" |
| 2 | extern "C" { |
| 3 | double d_sign(doublereal *a, doublereal *b) |
| 4 | { |
| 5 | double x; |
| 6 | x = (*a >= 0 ? *a : - *a); |
| 7 | return( *b >= 0 ? x : -x); |
| 8 | } |
| 9 | } |
Note: See TracBrowser
for help on using the repository browser.
