sorry, I meant alpha = Expression("exp(Beta*solution)",Beta=beta,solution=u)

On Tue, Dec 8, 2015 at 3:38 PM, Justin Chang <jychang48@gmail.com> wrote:
Hi all,

As the title states, can a Function solution be used in an Expression?

Say I have the following:

beta = 0.001
u = Function(Q)
alpha = Expression("exp(Beta*solution)",Beta=Betasolution=u)

When I try to run this, I get an error saying "ValueError: setting an array element with a sequence". Am I not doing something correctly or is it simply not possible to do include u into an Expression?

Thanks,
Justin