I don't know if you call it an error, a bug or anything else. It must be corrected...
The following program produces different functions for f and g: phi(l) := sqrt(3)*cot(l)+1$...
The following program produces different functions for f and g: phi(l) := sqrt(3)cot(l)+1$...
different function obtained when argument becomes subscript