1 |
// $Header$ |
// $Header$ |
2 |
//------------------------------------------------------------------------------------------------- |
//------------------------------------------------------------------------------------------------- |
3 |
//This file is part of "cfbrapab", a program for determining the best rational approximation to a |
//This file is part of "cfbrapab", a program for determining the best rational approximation to a |
4 |
//real number, subject to constraints on the numerator and denominator, using continued fraction |
//real number, subject to constraints on the numerator and denominator, using continued fraction |
5 |
//algorithms. |
//algorithms. |
6 |
//------------------------------------------------------------------------------------------------- |
//------------------------------------------------------------------------------------------------- |
7 |
//This source code and any program in which it is compiled/used is provided under the MIT License, |
//This source code and any program in which it is compiled/used is provided under the MIT License, |
8 |
//reproduced below. |
//reproduced below. |
9 |
//------------------------------------------------------------------------------------------------- |
//------------------------------------------------------------------------------------------------- |
10 |
//Permission is hereby granted, free of charge, to any person obtaining a copy of |
//Permission is hereby granted, free of charge, to any person obtaining a copy of |
11 |
//this software and associated documentation files(the "Software"), to deal in the |
//this software and associated documentation files(the "Software"), to deal in the |
12 |
//Software without restriction, including without limitation the rights to use, |
//Software without restriction, including without limitation the rights to use, |
13 |
//copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the |
//copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the |
14 |
//Software, and to permit persons to whom the Software is furnished to do so, |
//Software, and to permit persons to whom the Software is furnished to do so, |
15 |
//subject to the following conditions : |
//subject to the following conditions : |
16 |
// |
// |
17 |
//The above copyright notice and this permission notice shall be included in all |
//The above copyright notice and this permission notice shall be included in all |
18 |
//copies or substantial portions of the Software. |
//copies or substantial portions of the Software. |
19 |
// |
// |
20 |
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
21 |
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
22 |
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE |
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE |
23 |
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
24 |
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
25 |
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
26 |
//SOFTWARE. |
//SOFTWARE. |
27 |
//------------------------------------------------------------------------------------------------- |
//------------------------------------------------------------------------------------------------- |
28 |
extern "C" int c_main(int argc, char * argv[]); |
extern "C" int c_main(int argc, char * argv[]); |
29 |
|
|
30 |
int main(int argc, char* argv[]) |
int main(int argc, char* argv[]) |
31 |
{ |
{ |
32 |
int rv; |
int rv; |
33 |
|
|
34 |
rv = c_main(argc, argv); |
rv = c_main(argc, argv); |
35 |
|
|
36 |
return(rv); |
return(rv); |
37 |
} |
} |
38 |
|
|
39 |
// End of cfbrapab.cpp. |
// End of cfbrapab.cpp. |