I have used this code but it does not let me raise the number e
to an array nor with Math.Pow()
, Math.exp()
. How can I do it?? here I leave code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MathNet.Numerics.LinearAlgebra;
using MathNet.Numerics.LinearAlgebra.Double;
using MathNet.Symbolics;
using MathNet.Numerics.RootFinding;
using NMath;
using MathNet.Filtering.Kalman;
using System.Runtime;
using NLapack.Matrices;
using NLapack.Numbers;
namespace ConsoleApp5
{
class Program
{
static void Main(string[] args)
{
double omega = 2 * Math.PI / 24;
double omegacua = Math.Pow(omega, 2);
Matrix<double> Ac = DenseMatrix.OfArray(new double[,] { { 0, 1, 0, 0 }, { (-1 * omegacua), 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } });
Matrix<double> A = Math.Exp(Ac);
}
}
}