Functions and user variables are case sensitive. G is not the same as g. Sin, Cos Tan are not the same as sin, cos, tan. Use lower case only for functions.