public void ThreeVectorConstructorTest()
        {
            MultiVariableEq x = new MultiVariableEq();
            x.AddEqParameter("b", 2);
            x.AddDependentVariable("x", () => x["b"] * x["t"]);
            x.AddVariable("t");

            MultiVariableEq y = new MultiVariableEq();
            y.AddEqParameter("c", 3);
            y.AddEqParameter("g", 9.8);
            y.AddDependentVariable("y", () => y["c"] * y["t"] - y["g"] * y["t"].Sqrd() / 2);
            y.AddVariable("t");

            MultiVariableEq z = new MultiVariableEq(0);
            //ThreeVector target = new ThreeVector(x, y, z);
            //var output = target.Derivate("t", new ThreeVector(2,2,2));
            //Assert.Inconclusive("TODO: Implement code to verify target");
            //Todo: Make this as unit test
        }
예제 #2
0
 public ThreeVector(MultiVariableEq x, MultiVariableEq y, MultiVariableEq z)
 {
     this.x_t_i = x;
     this.y_t_j = y;
     this.z_t_k = z;
 }