I need to make a vectorial function $\vec{\beta} \colon (0,9) \times \Omega \to \mathbb{R}^3$ defined like this:
$$
\beta_0(s,x) = -\frac{1}{2} \frac{x_0}{25-s},\qquad
\beta_1(s,x) = -\frac{1}{2} \frac{x_1}{9-s},\qquad
\beta_2(s,x) = -\frac{1}{2} \frac{x_2}{9-s}
$$
in python-dolfin I do this:
beta = Expression(("(-1/2)*x[0]/(25-s)", "(-1/2)*x[1]/(9-s)", "(-1/2)*x[2]/(25-s)"), s = 0)
but when I call it, return (0,0,0)
>>beta(2,2,2)
array([ 0., 0., 0.])
what is wrong?