Use semicolon as expression separator.
To complete the current expression before starting the next one put semicolon at the end:
rslt*exp(mem[frequency]);