using System; using AngouriMath.Extensions;
var numberOfElement = 1_000_000;
var Fn = "[ 1, 0 ]T * ([ [ 1, 1 ], [ 1, 0 ] ] ^ (n - 1) * [ 1, 0 ])".ToEntity();
var fibonaccisNthNumber = Fn.Substitute("n", numberOfElement).EvalNumerical();
Console.WriteLine("Length of the number: " + fibonaccisNthNumber.ToString().Length);
Console.WriteLine("First 100 digits: " + fibonaccisNthNumber.ToString()[..100]);