LibreOffice Module scaddins (master) 1
Macros | Functions
financial.cxx File Reference
#include "analysisdefs.hxx"
#include "analysis.hxx"
#include "analysishelper.hxx"
#include <o3tl/temporary.hxx>
Include dependency graph for financial.cxx:

Go to the source code of this file.

Macros

#define V_(i)   (rValues.Get(i))
 
#define D_(i)   (rDates.Get(i))
 

Functions

static double lcl_sca_XirrResult (const ScaDoubleList &rValues, const ScaDoubleList &rDates, double fRate)
 Calculates the resulting amount for the passed interest rate and the given XIRR parameters. More...
 
static double lcl_sca_XirrResult_Deriv1 (const ScaDoubleList &rValues, const ScaDoubleList &rDates, double fRate)
 Calculates the first derivation of lcl_sca_XirrResult(). More...
 

Macro Definition Documentation

◆ D_

#define D_ (   i)    (rDates.Get(i))

Definition at line 460 of file financial.cxx.

◆ V_

#define V_ (   i)    (rValues.Get(i))

Definition at line 459 of file financial.cxx.

Function Documentation

◆ lcl_sca_XirrResult()

static double lcl_sca_XirrResult ( const ScaDoubleList rValues,
const ScaDoubleList rDates,
double  fRate 
)
static

Calculates the resulting amount for the passed interest rate and the given XIRR parameters.

Definition at line 463 of file financial.cxx.

References sca::analysis::ScaDoubleList::Count(), D_, i, nCount, and V_.

Referenced by AnalysisAddIn::getXirr().

◆ lcl_sca_XirrResult_Deriv1()

static double lcl_sca_XirrResult_Deriv1 ( const ScaDoubleList rValues,
const ScaDoubleList rDates,
double  fRate 
)
static

Calculates the first derivation of lcl_sca_XirrResult().

Definition at line 485 of file financial.cxx.

References sca::analysis::ScaDoubleList::Count(), D_, i, nCount, and V_.

Referenced by AnalysisAddIn::getXirr().