Esempio n. 1
0
    public void SetH_WillNotSetHToZero()
    {
        //Create an ODE initial value problem
        ODEInitialValueProblem ivp = new ODEInitialValueProblem(3, 0.2, 0);

        ivp.SetH(0, 0);
        Assert.AreNotEqual(0, ivp.GetH());
    }
Esempio n. 2
0
    public void SetH_WillNotSetHToNegative()
    {
        //Create an ODE initial value problem
        ODEInitialValueProblem ivp = new ODEInitialValueProblem(3, 0.2, 0);

        ivp.SetH(-0.1, 0);
        Assert.Greater(ivp.GetH(), 0);
    }
Esempio n. 3
0
    public void SetH_GetH()
    {
        //Create an ODE initial value problem
        ODEInitialValueProblem ivp = new ODEInitialValueProblem(3, 0.2, 0);

        ivp.SetH(0.3, 0);
        Assert.AreEqual(0.3, ivp.GetH(), single_value_required_accuracy);
    }