AngouriMath
ZeroVector(System.Int32)
Method (no overloads)
Summary
            Creates a zero vector
            
Example
using System;
using AngouriMath.Extensions;
using static AngouriMath.MathS;
var expr = "sin(x) + cos(y)";
var vars = new[] { Var("x"), Var("y") };
var A = Matrix(2, 2, (i1, i2) => expr
    .Differentiate(vars[i1])
    .Differentiate(vars[i2])
    .Simplify());
Console.WriteLine(A.ToString(multilineFormat: true));
Console.WriteLine(ZeroMatrix(3));
Console.WriteLine(ZeroMatrix(3, 4));
Console.WriteLine(ZeroVector(3));Prints
Matrix[2 x 2]
-sin(x)   0         
0         -cos(y)   
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
[0, 0, 0]Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online