Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hocdecl.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ extern double in2mm(double d);
extern double mm2in(double d);
extern double po2kg(double d);
extern double kg2po(double d);

extern double nthroot(double d , double n);
/*
** functions in FUNCT.C
*/
Expand Down
4 changes: 4 additions & 0 deletions math.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,7 @@ double kg2po(double d)
{
return (d * 1000) / 453.592;
}
/* nth root of d*/
double nthroot(double d , double n){
return Pow(d,1.0/n);
}