1 文本格式
using System;
namespace Legalsoft.Truffer
{
public class Midinf : Midpnt
{
public new double func(double x)
{
return funk.funk(1.0 / x) / (x * x);
}
public Midinf(UniVarRealValueFun funcc, double aa, double bb) : base(funcc, aa, bb)
{
base.a = 1.0 / bb;
base.b = 1.0 / aa;
}
}
}
2 代码格式
using System;
namespace Legalsoft.Truffer
{
public class Midinf : Midpnt
{
public new double func(double x)
{
return funk.funk(1.0 / x) / (x * x);
}
public Midinf(UniVarRealValueFun funcc, double aa, double bb) : base(funcc, aa, bb)
{
base.a = 1.0 / bb;
base.b = 1.0 / aa;
}
}
}