sorry for the confusion,
I assumed you already had a tan function since you posted you were getting a result that would be the tangent of 25 radians. those were, as Paul noted, just custom functions(since autolisp doesnt' have a tan function, any tan fucntion will be someone's custom implementation) I just showed that to indicate you needed to pass radians, not degrees to your function, (or implement a tan function that receives degrees as input like my example of "(tand x)" )
use a dtr fucntion to convert, I assume you have that?(degrees to radians)