I know how to plot a function if i know the equation but in this case i don't know the equation of itself , thus i want to plot it by using some curve or approximation command
thanks for the help
I know how to plot a function if i know the equation but in this case i don't know the equation of itself , thus i want to plot it by using some curve or approximation command
thanks for the help
I understand you do not want to guess these functions but nevertheless...
\documentclass[tikz,border=3.14mm]{standalone}
\begin{document}
\begin{tikzpicture}[pics/symmetric axes/.style={code={
\draw[thick,-stealth] (0,-#1) -- (0,#1);
\draw[thick,-stealth] (-#1,0) -- (#1,0);}},pics/symmetric axes/.default=5]
\pic{symmetric axes};
\draw[red,thick] plot[variable=\x,domain=-4:4,smooth] ({\x},{2*tanh(\x)+0.5*\x});
\begin{scope}[xshift=7cm]
\pic{symmetric axes};
\draw[red,thick] plot[variable=\x,domain=-4:4,smooth] ({pow(\x,3)/8-\x},{\x});
\end{scope}
\end{tikzpicture}
\end{document}