4

I am trying to plot the function:

11.34×10^(-9) t^4 + 29.92 t - 833.5 = 0

using the TikZ graphing package. I know this should be easy but I am struggling with some syntax issues resolving the exponents. What is the proper syntax for that equation in TikZ (or the most appropriate way to render)?

This is what I have:

\documentclass{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
  \begin{axis}[scaled ticks=false,xlabel=Temperature degrees C,
    ylabel=Power (W),xmin=-2000,ymin=-20000]
    \addplot[domain=0:150, blue, ultra thick,smooth]
    {(11.34*10^-9)*x^4+29.92*x+833.5};
  \end{axis}
\end{tikzpicture}
\end{document}
  • 1
    Welcome! Can you make your code compilable? And can you tell us what is unsatisfactory about the output? We have no way of knowing which equation you are trying to typeset with that code. – cfr Apr 7 '17 at 3:00
  • I think so. This is what I have: – Keith Odland Apr 7 '17 at 3:04
  • \begin{tikzpicture} \begin{axis}[scaled ticks=false,xlabel=Temperature degrees C, ylabel=Power (W),xmin=-2000,ymin=-20000] \addplot[domain=0:150, blue, ultra thick,smooth] {(11.34*10^-9)*x^4+29.92*x+833.5}; \end{axis} \end{tikzpicture} – Keith Odland Apr 7 '17 at 3:04
  • Sorry, that did not paste correctly. – Keith Odland Apr 7 '17 at 3:04
  • You can edit your question using the edit link at bottom left of it. – cfr Apr 7 '17 at 3:05
3

It is hard to know what you want to do. However, note that you are plotting much less than you are axising, so to speak. If you increase the domain, for example, you get this:

more plot

\documentclass[border=10pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.14}
\begin{document}
\begin{tikzpicture}
  \begin{axis}[scaled ticks=false,xlabel=Temperature degrees C,
    ylabel=Power (W),xmin=-2000,ymin=-20000]
    \addplot[domain=-2000:150, blue, ultra thick,smooth]
    {(11.34*10^-9)*x^4+29.92*x+833.5};
  \end{axis}
\end{tikzpicture}
\end{document}
|improve this answer|||||
  • I still haven't found the add picture button but I think what you have done is really close. I am trying to highlight the solutions at -1391 and at 27.8. – Keith Odland Apr 7 '17 at 3:50
  • Identifying the x-intercepts is what I am trying to highlight. – Keith Odland Apr 7 '17 at 3:51
  • 1
    As an applied mathematician, I should mention that (11.34e-9*x*x*x+29.92)*x+833.5 is the recomended form. – John Kormylo Apr 7 '17 at 3:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.