aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-08-16 11:32:47 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-08-16 11:32:47 +0000
commit9fcda2d737def25854456a64d4d8c6f24771341f (patch)
tree42995a07161e821f682b39288825a9966fe5ae02 /samples
parent0b41a876bc104c5791271ca085d2f696462e0fd0 (diff)
downloadopt-utilities-9fcda2d737def25854456a64d4d8c6f24771341f.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@41 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'samples')
-rwxr-xr-xsamples/abin9817 -> 0 bytes
-rw-r--r--samples/a.cc36
2 files changed, 0 insertions, 36 deletions
diff --git a/samples/a b/samples/a
deleted file mode 100755
index b8b8e8c..0000000
--- a/samples/a
+++ /dev/null
Binary files differ
diff --git a/samples/a.cc b/samples/a.cc
deleted file mode 100644
index 1cf92df..0000000
--- a/samples/a.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-#include <cmath>
-#include <fstream>
-#include <iostream>
-using namespace std;
-
-double powerlaw(double x)
-{
- return 5*pow(x,-1.1);
-}
-
-double bpl(double x)
-{
- double x_b=5;
- double f_b=10;
- double gamma1=-0.8;
- double gamma2=-1.5;
- if(x<x_b)
- {
- return f_b*pow(x,gamma1)/pow(x_b,gamma1);
- }
- else
- {
- return f_b*pow(x,gamma2)/pow(x_b,gamma2);
- }
-}
-
-
-
-int main()
-{
- double x,y,x1,x2,y1,y2;
- while(cin>>x>>x1>>x2>>y>>y1>>y2)
- {
- cout<<x<<"\t"<<y<<"\t"<<y-y1<<"\t"<<y+y2<<endl;
- }
-}