【问题标题】:Latex Plot wrong GraphLatex 绘制错误图
【发布时间】:2017-11-13 19:43:17
【问题描述】:

你们知道为什么 Latex 会绘制错误的函数吗?

这是我的功能:

     \draw [scale=0.5,domain=-3:3,smooth,variable=\x] plot (\x,0.5*\x^4 - 3*\x^2+ 4) node[right] {$f(x)=0.5*x^4 - 3*x^2 + 4$};

结果如下: Latex Graph

但是应该是这样的: Right Graph

谢谢

【问题讨论】:

    标签: math graph latex latex-environment


    【解决方案1】:

    tikz 中,需要括号来正确平方负数。

    \draw [scale=0.5,domain=-3:3,smooth,variable=\x] plot (\x,{0.5*(\x)^4 - 3*(\x)^2+ 4}) node[right] {$f(x)=0.5*x^4 - 3*x^2 + 4$};
    

    这应该会产生什么 you wanted.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-28
      • 1970-01-01
      • 2013-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多