I wanna know a clear way to code the function while drawing with it, for ex. how to write this
how to code it in the below command?
\draw [red,ultra thick,domain=-1:2,samples=400,latex-latex] plot (\x,---);
Please there is any clear coding way for these cases?
i tried but it in -5(x + 3)(x-1)(x-2)(x-7) but it didn't work
please wanna coding way for the functions like sin(x) or tan(x)