SrSTEM4U: Added doc

git-svn-id: svn://ultimatepp.org/upp/trunk@15593 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2020-12-14 11:16:43 +00:00
parent 47cdc2fd4f
commit 66eae4e0e6
7 changed files with 196 additions and 5 deletions

View file

@ -27,7 +27,7 @@ Vector<double> InternalRateOfReturn(const Vector<double> &cf, double lowRate, do
double from = prev;
double tox = valx;
double to = val;
double oldGuessx = DOUBLE_NULL;
double oldGuessx = std::numeric_limits<double>::min();
for (int iter = 0; iter < maxIteration; ++iter) {
double guessx = fromx - from*(tox - fromx)/(to - from);
double guess = NetPresentValue(guessx, cf);

View file

@ -3,8 +3,13 @@
namespace Upp {
enum MooringStatus {LOOSE_ON_FLOOR, CATENARY_ON_FLOOR, CATENARY, BROKEN, BL_EXCEDEED};
enum MooringStatus {
LOOSE_ON_FLOOR,
CATENARY_ON_FLOOR,
CATENARY,
BROKEN,
BL_EXCEDEED
};
MooringStatus Catenary(double rho_m, double rho_m3, double rho_water, double moorlen, double BL,
double xanchorvessel, double zanchor, double zvessel,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -26,6 +26,7 @@ with a ][^https`:`/`/en`.wikipedia`.org`/wiki`/2`-opt^2 2`-opt
algorithm][2 . Since it uses templates, the input data can be either
integer or floating point.]&]
[s0;2 &]
[s0;2 &]
[s1; &]
[s2;:Upp`:`:TSP`(const Upp`:`:Vector`<Upp`:`:Point`_`<T`>`>`&`,Upp`:`:Vector`<int`>`&`,TSP`_Init`):%- [@(0.0.255) t
emplate]_<[@(0.0.255) typename]_[*@4 T]>_[*@4 T]_[* TSP]([@(0.0.255) const]_[_^Upp`:`:Vector^ V

View file

@ -8,4 +8,17 @@ topic "STEM4U. Credits";
[s0; [^http`:`/`/sercantutar`.github`.io`/infint`/^2 Arbitrary`-Precision
Integer Arithmetic][2 .by Sercan Tutar is the base for infInt.]&]
[s0; [2 InfInt license is the ][^http`:`/`/mozilla`.org`/MPL`/2`.0`/^2 Mozilla
Public License, v. 2.0][2 .]]]
Public License, v. 2.0][2 .]&]
[s0;2 &]
[s0;2 &]
[s0; [*2 Butterworth]&]
[s0;*2 &]
[s0; [2 Butterworth filter based on ][^https`:`/`/github`.com`/nxsEdson`/Butterworth`-Filter^2 h
ttps://github.com/nxsEdson/Butterworth`-Filter]&]
[s0;2 &]
[s0; [2 Zero phase filter implementation based on Hugh Nolan code posted
here ][^https`:`/`/stackoverflow`.com`/questions`/17675053`/matlabs`-filtfilt`-algorithm`/27270420`#27270420^2 h
ttps://stackoverflow.com/questions/17675053/matlabs`-filtfilt`-algorithm/27270420#
27270420]&]
[s0;2 &]
[s0;2 ]]

View file

@ -27,7 +27,12 @@ rbitrary`-precision][2 including the usual arithmetic.]]
:: [s0; [2 Some financial functions.]]
:: [s0;#i150;O0; [^topic`:`/`/STEM4U`/src`/TSP`_TavellingSalesman`_en`-us^2 TSP]]
:: [s0; [2 A symmetric ][^https`:`/`/en`.wikipedia`.org`/wiki`/Travelling`_salesman`_problem^2 T
raveling salesman problem][2 (TSP) solver.]]}}&]
raveling salesman problem][2 (TSP) solver.]]
:: [s0;#i150;O0; [^topic`:`/`/STEM4U`/src`/Butterworth`_en`-us^2 Butterworth]]
:: [s0; [2 Butterworth IIR filter following interface similar to Matlab]]
:: [s0;#i150;O0; [^topic`:`/`/STEM4U`/src`/Catenary`_en`-us^2 Catenary]]
:: [s0; [2 Simple catenary mooring line solver considering sagging and
bottom.]]}}&]
[s0;2 &]
[s0; [2 STEM4U`_DemoTest allows to demonstrate and test some libraries
features.]&]