mathnet/mathnet-symbolics

Evaluation of an expression dealing with Vector

anouarlachheb opened this issue · 0 comments

Hi,
I am using MathNet.Symbolics .Net Nuget package v 0.24.0

I am trying to evaluate an expression containing Vector variable.
i.e:
<Tlin_Vector = (Tref_Vector - 25) * (2)^(16)> - (Tref_Vector - 25) * (2)^(16)>

I am constructing dynamically (by C#) the variables dictionary.
i.e:

        // create a dense zero-vector of length 8
        var PRef = Vector<double>.Build.Dense(9); // 9 points are needed

        // create a dense zero-vector of length 8
        var TLin = Vector<double>.Build.Dense(9); // 9 points are needed

and then assign them to the dictionary.

My problem is that I catch an exception:
goto IL_0166;
IL_0066:
switch (u.Tag)
{
default:
switch (v.Tag)
{
default:
throw new Exception("not supported");