Being a beginner, I'm having difficulty in plotting |sinx|. Can anyone help me with plotting y=|sinx| in [0,2pi] and y=0 elsewhere in tikz?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this community
pgfplots
and its documentation.abs(sin(x))
to calculate y. Look up Part VIII in the pgf manual and subsection 4.4.3 in the pgfplots manual.