Compound expressions generate temporary arrays

Let us evaluate f1(x) for a vector x:
def f1(x):
    return exp(-x*x)*log(1+x*sin(x))
Calling f1(x) is equivalent to the code
temp1 = -x
temp2 = temp1*x
temp3 = exp(temp2)
temp4 = sin(x)}
temp5 = x*temp4
temp6 = 1 + temp4
temp7 = log(temp5)
result = temp3*temp7

previousnexttable of contents