v ty ukazce nikde tangens nevidim...
nezkousis tam davat tg(x) misto tan(x)?
jestli ti de cos(x) a sin(x), tak si tangens vyrob jako sin(x)/cos(x)