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