1 文本格式
using System;
namespace Legalsoft.Truffer
{
public class Midsql : Midpnt
{
private double aorig { get; set; } = 0.0;
public new double func(double x)
{
return 2.0 * x * funk.funk(aorig + x * x);
}
public Midsql(UniVarRealValueFun funcc, double aa, double bb) : base(funcc, aa, bb)
{
this.aorig = aa;
base.a = 0;
base.b = Math.Sqrt(bb - aa);
}
}
}
2 代码格式
using System;
namespace Legalsoft.Truffer
{
public class Midsql : Midpnt
{
private double aorig { get; set; } = 0.0;
public new double func(double x)
{
return 2.0 * x * funk.funk(aorig + x * x);
}
public Midsql(UniVarRealValueFun funcc, double aa, double bb) : base(funcc, aa, bb)
{
this.aorig = aa;
base.a = 0;
base.b = Math.Sqrt(bb - aa);
}
}
}