Loading [MathJax]/extensions/TeX-AMS-MML_HTMLorMML.js
proteus
1.8.1
C/C++/Fortran libraries
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
b
c
d
e
f
g
h
i
k
n
p
r
s
w
x
y
z
Functions
_
b
c
d
e
f
g
h
i
k
n
p
r
s
w
x
y
z
Variables
Typedefs
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
h
i
k
l
m
n
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Macros
Modules
Users
cekees
proteus
proteus
fenton
Dpythag.cpp
Go to the documentation of this file.
1
#include <math.h>
2
static
double
dsqrarg;
3
#define DSQR(a) ((dsqrarg=(a)) == 0.0 ? 0.0 : dsqrarg*dsqrarg)
4
5
double
dpythag
(
double
a,
double
b)
6
{
7
double
absa,absb;
8
absa=fabs(a);
9
absb=fabs(b);
10
if
(absa > absb)
return
absa*sqrt(1.0+
DSQR
(absb/absa));
11
else
return
(absb == 0.0 ? 0.0 : absb*sqrt(1.0+
DSQR
(absa/absb)));
12
}
13
DSQR
#define DSQR(a)
Definition:
Dpythag.cpp:3
dpythag
double dpythag(double a, double b)
Definition:
Dpythag.cpp:5
Generated on Fri Jul 1 2022 11:17:29 for proteus by
1.8.20