繁体   English   中英

Manim MathTex 没有给出微分方程的正确 output

[英]Manim MathTex is not giving right output for differential equation

所以我想要如图所示的微分方程的 output 但我没有得到正确的方程 output 我也尝试了 latex 代码但仍然无法正常工作

from manim import *


class CreateCircle(Scene):
    def construct(self):
        eq_one = MathTex("a^{2}+b^{2}=1")
       
        eq_two= MathTex("\\frac{\text{d}^{2}x}{\text{d}y}","+","\\frac{\text{d}^{2}y}{\text{d}x}=","1")
        eq_two.next_to(eq_one,DOWN)
        self.wait()
        self.play(Write(eq_one))

        self.wait(3)
        self.play(Write(eq_two))
        self.wait(2)[output Image][1][Desired Image i want of differential equation][1]

欢迎来到 SO! 您忘记转义\字符。

输出

from manim import *
class Test(Scene):
  def construct(self):
    eq_one = MathTex("a^{2}+b^{2}=1")
    
    eq_two= MathTex("\\frac{\\text{d}^{2}x}{\\text{d}y}","+","\\frac{\\text{d}^{2}y}{\\text{d}x}=","1")
    eq_two.next_to(eq_one,DOWN)
    self.wait()
    self.play(Write(eq_one))

    self.wait(3)
    self.play(Write(eq_two))
    self.wait(2)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM