Initial commit of "Rocket Workbench".
Taken from sources in CVS at:
https://sourceforge.net/projects/rocketworkbench/
Sources extracted in two steps:
1. Pull entire project tree into a subdir "rwb" via "rsync":
rsync -a a.cvs.sourceforge.net::cvsroot/rocketworkbench/ rwb/.
2. Export sources:
export CVSROOT=$(pwd)/rwb
SUBDIRS="analyser cpropep cpropep-web CVSROOT data libcompat libcpropep libnum libsimulation libthermo prop rocketworkbench rockflight"
mkdir rwbx; cd rwbx
cvs export -D now ${SUBDIRS}
After this (and some backups for safety), the directory content was
added to a Git repo:
git init .
git add *
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
|
||||
#include "libnum/include/num.h"
|
||||
|
||||
int Round(double a)
|
||||
{
|
||||
int t = a;
|
||||
|
||||
if (a - (double)t < 0.5)
|
||||
return t;
|
||||
else if (a - (double)t > 0.5)
|
||||
return t + 1;
|
||||
else
|
||||
return (t + (t % 2));
|
||||
}
|
||||
|
||||
|
||||
double epsilon(void)
|
||||
{
|
||||
double epsilon;
|
||||
double temp;
|
||||
|
||||
epsilon = 1.0;
|
||||
temp = epsilon + 1.0;
|
||||
|
||||
while (temp > 1.0)
|
||||
{
|
||||
epsilon = epsilon / 2.0;
|
||||
temp = epsilon + 1.0;
|
||||
}
|
||||
return (epsilon * 2.0);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user