23 lines
467 B
C#
23 lines
467 B
C#
using TridentGoalSeek;
|
|
|
|
namespace EvoCalculator.Core.FinanceFormulas
|
|
{
|
|
public class GoalXIRR : IGoalSeekAlgorithm
|
|
{
|
|
private readonly int x;
|
|
|
|
public GoalXIRR(int x)
|
|
{
|
|
this.x = x;
|
|
}
|
|
|
|
public decimal Calculate(decimal inputVariable)
|
|
{
|
|
// Value[2]+=10;
|
|
// ComputeValues
|
|
// XIRR
|
|
// return XIRR
|
|
return inputVariable * this.x;
|
|
}
|
|
}
|
|
} |