Exemplo n.º 1
0
 public double Calculate(double from, double to, double colocationPoint)
 {
     if (colocationPoint <= to && colocationPoint >= from)
     {
         return(_integral_1_1.Calculate(from, to, colocationPoint) - Math.Log(_radius) * Math.Abs(to - from) +
                GaussMethodForIntegrals.CalculateWithAccuracy(from, to, MathExpressionWithFeature.Value, Constants.Epsilon, new Var("t", 0), new Var("s", colocationPoint), new Var("a", _radius)) / 2 * Math.PI);
     }
     else
     {
         return(GaussMethodForIntegrals.CalculateWithAccuracy(from, to, MathExpression.Value, Constants.Epsilon, new Var("t", 0), new Var("s", colocationPoint), new Var("a", _radius)) / 2 * Math.PI);
     }
 }
Exemplo n.º 2
0
 public double Calculate(double from, double to, double colocationPoint)
 {
     return(GaussMethodForIntegrals.CalculateWithAccuracy(from, to, MathExpression.Value, Constants.Epsilon, new Var("t", 0), new Var("s", colocationPoint), new Var("a", _radius)) / 2 * Math.PI);
 }