AngouriMath
Derivative
Method with 2 overloads
Derivative(AngouriMath.Entity,AngouriMath.Entity,System.Int32)
Summary
Hangs your Entity to a derivative node
(to evaluate instead use Derivative(AngouriMath.Entity,AngouriMath.Entity.Variable))
Parameter "expr"
Expression to be hungParameter "var"
Variable over which derivative is takenParameter "power"
Number of times derivative is taken. Only integers will be simplified or evaluated.Example
using System; using static AngouriMath.MathS; var (x, a) = Var("x", "a"); var e1 = Derivative(Sin(Cos(x)), x); Console.WriteLine(e1); Console.WriteLine(e1.InnerSimplified); Console.WriteLine("-----------------------"); var e2 = Derivative(Sin(Cos(x)), x, 2); Console.WriteLine(e2); Console.WriteLine(e2.InnerSimplified); Console.WriteLine("-----------------------"); var e3 = Integral(Sin(a * x), x); Console.WriteLine(e3); Console.WriteLine(e3.InnerSimplified); Console.WriteLine("-----------------------"); var e4 = Integral(Sin(a * x), x, 2); Console.WriteLine(e4); Console.WriteLine(e4.InnerSimplified); Console.WriteLine("-----------------------"); var e5 = Limit(Sin(a * x) / x, x, 0); Console.WriteLine(e5); Console.WriteLine(e5.InnerSimplified);
Prints
derivative(sin(cos(x)), x) cos(cos(x)) * -sin(x) ----------------------- derivative(sin(cos(x)), x, 2) -sin(cos(x)) * -sin(x) * -sin(x) + cos(x) * (-1) * cos(cos(x)) ----------------------- integral(sin(a * x), x) -cos(a * x) / a ----------------------- integral(sin(a * x), x, 2) -sin(a * x) / a / a ----------------------- limit(sin(a * x) / x, x, 0) a
Derivative(AngouriMath.Entity,AngouriMath.Entity)
Summary
Hangs your Entity to a derivative node
(to evaluate instead use Derivative(AngouriMath.Entity,AngouriMath.Entity.Variable))
Parameter "expr"
Expression to be hungParameter "var"
Variable over which derivative is takenExample
using System; using static AngouriMath.MathS; var (x, a) = Var("x", "a"); var e1 = Derivative(Sin(Cos(x)), x); Console.WriteLine(e1); Console.WriteLine(e1.InnerSimplified); Console.WriteLine("-----------------------"); var e2 = Derivative(Sin(Cos(x)), x, 2); Console.WriteLine(e2); Console.WriteLine(e2.InnerSimplified); Console.WriteLine("-----------------------"); var e3 = Integral(Sin(a * x), x); Console.WriteLine(e3); Console.WriteLine(e3.InnerSimplified); Console.WriteLine("-----------------------"); var e4 = Integral(Sin(a * x), x, 2); Console.WriteLine(e4); Console.WriteLine(e4.InnerSimplified); Console.WriteLine("-----------------------"); var e5 = Limit(Sin(a * x) / x, x, 0); Console.WriteLine(e5); Console.WriteLine(e5.InnerSimplified);
Prints
derivative(sin(cos(x)), x) cos(cos(x)) * -sin(x) ----------------------- derivative(sin(cos(x)), x, 2) -sin(cos(x)) * -sin(x) * -sin(x) + cos(x) * (-1) * cos(cos(x)) ----------------------- integral(sin(a * x), x) -cos(a * x) / a ----------------------- integral(sin(a * x), x, 2) -sin(a * x) / a / a ----------------------- limit(sin(a * x) / x, x, 0) a
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online