From 1f4a944064bc42284c33e6b755353d191cf288e8 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Mon, 15 Dec 2008 07:26:12 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@1 ed2142bd-67ad-457f-ba7c-d818d4011675 --- samples/a | Bin 0 -> 9817 bytes samples/a.cc | 36 ++ samples/a.dat | 4 + samples/bpl.dat | 901 +++++++++++++++++++++++++++++++++++++++++++++++++++ samples/gauss.dat | 901 +++++++++++++++++++++++++++++++++++++++++++++++++++ samples/linear.dat | 4 + samples/powerlaw.dat | 901 +++++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 2747 insertions(+) create mode 100755 samples/a create mode 100644 samples/a.cc create mode 100644 samples/a.dat create mode 100644 samples/bpl.dat create mode 100644 samples/gauss.dat create mode 100644 samples/linear.dat create mode 100644 samples/powerlaw.dat (limited to 'samples') diff --git a/samples/a b/samples/a new file mode 100755 index 0000000..b8b8e8c Binary files /dev/null and b/samples/a differ diff --git a/samples/a.cc b/samples/a.cc new file mode 100644 index 0000000..1cf92df --- /dev/null +++ b/samples/a.cc @@ -0,0 +1,36 @@ +#include +#include +#include +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>>x1>>x2>>y>>y1>>y2) + { + cout<