public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (!(obj is AdaptiveCompositeIntegrator1D)) { return(false); } AdaptiveCompositeIntegrator1D other = (AdaptiveCompositeIntegrator1D)obj; if (System.BitConverter.DoubleToInt64Bits(this.gain) != Double.doubleToLongBits(other.gain)) { return(false); } if (!this.integrator.Equals(other.integrator)) { return(false); } if (System.BitConverter.DoubleToInt64Bits(this.tol) != Double.doubleToLongBits(other.tol)) { return(false); } return(true); }
/// //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void sampleDataTest() public virtual void sampleDataTest() { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final Integrator1D<double, double> localInt = new AdaptiveCompositeIntegrator1D(new SimpsonIntegrator1D(), 10.0, 1.e-4); Integrator1D <double, double> localInt = new AdaptiveCompositeIntegrator1D(new SimpsonIntegrator1D(), 10.0, 1.e-4); assertEquals(-0.368924186060527, localInt.integrate(sampleFunc(), 1.1, 3.0), 1.e-6); // answer from quadpack }