I am experimenting a lot with the raster calculator lately and I noticed that functions with a single number or band are neither valid expression nor working if assigned by the Python API.
For example :
sqrt(250) is not working but sqrt(250 * 1) is. The same happens with parentheses. And of course, sqrt((250)) does not work either, you need to type sqrt((250 * 1) * 1).