AngouriMath

Navigation

← Back to list of members

Scalar​(AngouriMath.​Entity)

 Method (no overloads)

Summary

Creates a 1x1 matrix of a given value. It will be simplified
once InnerSimplified or Evaled are addressed

Returns

A 1x1 matrix, which is also a 1-long vector, or just a scalar.

Example

using System;
using AngouriMath;
using static AngouriMath.MathS;

Console.WriteLine(Scalar(56));
Console.WriteLine(MatrixFromIEnum2x2(new Entity[][]
    {
        new Entity[]{ 1, 2, 3 },
        new Entity[]{ 4, 5, 6 }
    }
));

Prints
[56]
[[1, 2, 3], [4, 5, 6]]

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online