I tried to plot tangent lines to the graph of a function using tkz-fct. See the example below. However I get the following error message:
ERROR: Use of \tkz@DrawTangentLine doesn't match its definition.
--- TeX said ---
\pgfutil@ifnextchar ...1\def \pgfutil@reserved@a {
#2}\def \pgfutil@reserved@...
l.17 \tkzDrawTangentLine[draw](4)
Any idea what's wrong with my code?
The example:
\documentclass{article}
\usepackage{tikz}
\usepackage{tkz-fct}
\usetkzobj{all}
\begin{document}
\begin{tikzpicture}[xscale=1]
\tikzset{tan style/.style={-}}
\tkzInit[xmin=0,xmax=10,xstep=1,
ymin=0,ymax=5,ystep=1]
\tkzGrid[color=brown,sub,subxstep=50,subystep=200]
\tkzAxeXY
\tkzFct[color=red,samples=100,domain = 0:10]{sqrt(1/2.*\x) + sin(1/2.*\x)}
\tkzDrawTangentLine[draw](4)
\end{tikzpicture}
\end{document}
