This has had me pulling my hair out!
I am writing questions on the Fourier transform which uses the Dirac delta function \delta(t) and \delta(\omega).
If I use math expression and have a question something like:
Q: What is the inverse Fourier transform of the unit step function?
A: 2pi*delta(omega) - 2i/omega
The prompt and feedback that students see is nicely formatted as
latex("2\pi\delta(\omega) - \frac{2i}{\omega}")
But the marking algorithm complains that delta looks like a multi character function but is not defined. Even if I change this to d(omega) I get a complaint about the function d(...) not being defined.
Is there a way to incorporate arbitrarily named functions in mathematical expressions?
Thanks
Chris Jobling
Swansea University