Is there a way using Mathjs or some other js lib or even plainjs to get the distinct products of a sum-of-products expression? F.e given this expression as a string:
7.30*7.40-2.10*1.30+8.10*(2.70+0.60+4.70)+0.30*0.60+ 1.60*0.70+2.95*2.65+6.00*5.80
The function should execute only the multiplications and return the distinct sums of the different products.
the result should be:
54.02 - 2.73 + 64.8 + 0.18...
it should respect parenteses.