dharmatech / Symbolism

Computer Algebra and Symbolic Computation in C#
220 stars 31 forks source link

.AlgebraicExpand() hangs on C * (2 ^ (x + 1)) #6

Open AlekseyCherepanov opened 8 years ago

AlekseyCherepanov commented 8 years ago
using System;
using Symbolism;
using Symbolism.AlgebraicExpand;

namespace my
{
    public class My
    {
        static void Main(string[] args)
        {
            var C = new Symbol("C");
            var x = new Symbol("x");
            var t = C * (2 ^ (x + 1));
            Console.WriteLine("before hang");
            t.AlgebraicExpand();
        }
    }
}
gruckion commented 5 years ago

Will take a look

sbruyere commented 5 years ago

Hello !

Same issue when the expression is within a func, exemple: cos(4(2x+4)) Will result in: cos(4(2x+4)) Instead of: cos(8*x+16)

Thanks