public void ArcsinConstantTest() { var const1 = new Constant(0.7); var res = new Arcsin(const1); Assert.AreEqual(0.77, res.Compute(null), error); }
public void IsPolynomArcsinX() { var var1 = new Variable("x"); var res = new Arcsin(var1); Assert.AreEqual(false, res.IsPolynom); }
public void IsPolynom1AddX() { var var1 = new Variable("x"); var const1 = new Arcsin("е"); var res = var1 + const1; Assert.AreEqual(false, res.IsPolynom); }
public void DivIsPolynomFuncAndVar() { var var1 = new Arcsin("x"); var var2 = new Variable("x"); var res = (var1 / var2).IsPolynom; Assert.AreEqual(false, res); }
public void DivIsConstantVarAndFunction() { var var1 = new Variable("x"); var var2 = new Arcsin("y"); var res = (var1 / var2).IsConstant; Assert.AreEqual(false, res); }
public void PowIsPolynom2nonPol() { var const1 = new Arcsin("x"); var const2 = 2.0; var res = new Pow(const1, const2).IsPolynom; Assert.AreEqual(false, res); }
public void MulIsPolynomPolAndNonpol() { var var1 = new Arcsin("x"); var var2 = new Variable("y"); var res = (var1 * var2).IsPolynom; Assert.AreEqual(false, res); }
public void AddIsPolynomPolAndNonPol() { var var1 = new Arcsin("x"); Variable e = new Variable("t"); var res = ((Sum)(var1 + e)).IsPolynom; Assert.AreEqual(false, res); }
public void AddIsPolynomVarAndNonpolynom() { Variable var1 = new Variable("x"); var e = new Arcsin("t"); var res = ((Sum)(var1 + e)).IsPolynom; Assert.AreEqual(false, res); }
public void SubIsPolynom2Nonpol() { var var1 = new Arcsin("x"); var var2 = new Arcsin("y"); var res = var1 - var2; Assert.AreEqual(false, res.IsPolynom); }
public void ArcsinVariableTest() { var var1 = new Variable("x"); var res = new Arcsin(var1); Assert.AreEqual(0.77, res.Compute(new Dictionary <string, double>() { ["x"] = 0.7 }), error); }