Graphics, Figures & Tables ⇒ Plotting y=b^(x-h) with PSTricks
-
- Posts: 274
- Joined: Fri Feb 05, 2010 10:15 pm
Plotting y=b^(x-h) with PSTricks
2 x 4 sub exp
2 x 4 exp sub
2 x exp 4 sub
can anyone help?
Nick
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Plotting y=b^(x-h) with PSTricks
Code: Select all
2 x 4 sub exp = 2^(x-4)
2 x 4 exp sub = 2-x^4
2 x exp 4 sub = 2^x-4
Code: Select all
\documentclass{minimal}
\usepackage{pstricks-add}
\begin{document}
\begin{psgraph}(0,0)(4,1){6cm}{!} % x-y-axis with same unit
\psplot[algebraic=true,linecolor=red]{0}{4}{2^(x-4)}
\end{psgraph}
\end{document}
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 274
- Joined: Fri Feb 05, 2010 10:15 pm
Plotting y=b^(x-h) with PSTricks
Code: Select all
\psplot[plotstyle=curve,linewidth=2pt,linecolor=red,arrows=<->]{2}{6}{2 x 4 sub exp}
Nick