projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
syscons util remove use kbdcontrol & vidcontrol instead
[unix-history]
/
lib
/
msun
/
src
/
w_cabs.c
/*
* cabs() wrapper for hypot().
*
* Written by J.T. Conklin, <jtc@wimsey.com>
* Placed into the Public Domain, 1994.
*/
#include
"math.h"
struct complex
{
double
x
;
double
y
;
};
double
cabs
(
z
)
struct complex
z
;
{
return
hypot
(
z
.
x
,
z
.
y
);
}
double
z_abs
(
z
)
struct complex
*
z
;
{
return
hypot
(
z
->
x
,
z
->
y
);
}