I have a function related to some values and I want to include the value in the title. So I initially try ...

sine:=(Amp,freq,phase,t)->Amp*sin(2*Pi*freq*t+phase):

plot(sine(1, 2, 0, t), t = 0 .. 1, title = cat(freq, " sine wave cycles"))

but once I use the value in the function it is not remembered, sort of like a subs operation. A placeholder is the simplest way.

a:=2:

plot(sine(1, a, 0, t), t = 0 .. 1, title = cat(a, " sine wave cycles"))