Hello! everyone,
I have a long list of python expression, say:
listexpr = [ x[0]+1, x[1]**2 + x[0]*x[1], ...... ]
And I want to use each of the expression in the list as follows:
coefficient = Expression( str(listexpr[1]), degree=2) )
Since **
is not valid in c++ expression, it returns error. I want to know if there is way to make my "coefficient" a valid Expression object in Fenics, without one by one modification of my original long list?
Thank you in advance!