Facebook
From Shreenabh Agrawal, 3 Years ago, written in Python.
Embed
Download Paste or View Raw
Hits: 66
  1. from manimlib.imports import *
  2. from math import *
  3. class Solution(GraphScene):
  4.         def construct(self):
  5.                 watermark = ImageMobject("./assets/water_mark.png",opacity=0.7)
  6.                 watermark.scale(1.5)
  7.                 watermark.to_corner(DOWN+RIGHT, buff=0)
  8.                 self.play(FadeIn(watermark))
  9.                 Solve = TexMobject(r"I=\int_{0}^{\infty}\ln{(1+5x^2)}\ln{\left(1+\frac{6}{5x^2}\right)}dx" )
  10.                 Solve.to_edge(UP)
  11.                 self.play(Write(Solve))
  12.                 align_mark = TexMobject( r'abs', fill_opacity=0.00,height=0.5)
  13.                 align_mark.next_to(Solve,DOWN)
  14.                 self.wait(1)
  15.                 R0 = TexMobject(r"\text{Let  }t=\sqrt{5}x \ \implies \ dx=\frac{1}{\sqrt{5}}\ dt" )
  16.                 if R0.get_height() > 1:
  17.                         R0.set_height(height=1,stretch=False)
  18.                 if R0.get_width() > 12:
  19.                         R0.set_width(width=12,stretch=False)
  20.                 R1 = TexMobject(r"\implies I=\frac{1}{\sqrt{5}}\int_{0}^ {\infty} \ln{(1+t^2)}\ln{\left(1+\frac{6}{t^2}\right)}dt" )
  21.                 if R1.get_height() > 1:
  22.                         R1.set_height(height=1,stretch=False)
  23.                 if R1.get_width() > 12:
  24.                         R1.set_width(width=12,stretch=False)
  25.                 R2 = TexMobject(r"\text{Now let's use the Leibniz rule for integration,}" )
  26.                 if R2.get_height() > 1:
  27.                         R2.set_height(height=1,stretch=False)
  28.                 if R2.get_width() > 12:
  29.                         R2.set_width(width=12,stretch=False)
  30.                 R3 = TexMobject(r"I(\alpha)=\frac{1}{\sqrt{5}}\int_{0}^{\infty} \ln{(1+t^2)}\ln{\left(1+\alpha\frac{6}{t^2}\right)}dt" )
  31.                 if R3.get_height() > 1:
  32.                         R3.set_height(height=1,stretch=False)
  33.                 if R3.get_width() > 12:
  34.                         R3.set_width(width=12,stretch=False)
  35.                 R4 = TexMobject(r"\text{Notice that } I(0)=0 \ \text{and}\ I(1)=1" )
  36.                 if R4.get_height() > 1:
  37.                         R4.set_height(height=1,stretch=False)
  38.                 if R4.get_width() > 12:
  39.                         R4.set_width(width=12,stretch=False)
  40.                 R5 = TexMobject(r"\text{Now let's diffrentiate with respect to  } \alpha" )
  41.                 if R5.get_height() > 1:
  42.                         R5.set_height(height=1,stretch=False)
  43.                 if R5.get_width() > 12:
  44.                         R5.set_width(width=12,stretch=False)
  45.                 R6 = TexMobject(r"I'(\alpha)=\int_{0}^{\infty}\frac{\partial }{\partial\alpha} \ln{(1+t^2)}\ln{\left(1+\alpha \frac{6}{t^2}\right)}dt" )
  46.                 if R6.get_height() > 1:
  47.                         R6.set_height(height=1,stretch=False)
  48.                 if R6.get_width() > 12:
  49.                         R6.set_width(width=12,stretch=False)
  50.                 R7 = TexMobject(r"I'(\alpha)=\frac{6}{\sqrt{5}}\int_{0}^{\infty}\frac{\ln{(1+t^2)}}{t^2+6\alpha} \ dt" )
  51.                 if R7.get_height() > 1:
  52.                         R7.set_height(height=1,stretch=False)
  53.                 if R7.get_width() > 12:
  54.                         R7.set_width(width=12,stretch=False)
  55.                 R8 = TexMobject(r"\text{Now let's do the Leibniz rule again introducing a new parameter } \beta" )
  56.                 if R8.get_height() > 1:
  57.                         R8.set_height(height=1,stretch=False)
  58.                 if R8.get_width() > 12:
  59.                         R8.set_width(width=12,stretch=False)
  60.                 R9 = TexMobject(r"I'(\alpha,\beta)=\frac{6}{\sqrt{5}}\int_{0}^{\infty}\frac{\ln{(1+\beta t^2)}}{t^2+6\alpha} dt" )
  61.                 if R9.get_height() > 1:
  62.                         R9.set_height(height=1,stretch=False)
  63.                 if R9.get_width() > 12:
  64.                         R9.set_width(width=12,stretch=False)
  65.                 R10 = TexMobject(r"\text{Notice that  }  I'(\alpha,0)=0 \ \text{and} \ I'(\alpha,1)=I'(\alpha)" )
  66.                 if R10.get_height() > 1:
  67.                         R10.set_height(height=1,stretch=False)
  68.                 if R10.get_width() > 12:
  69.                         R10.set_width(width=12,stretch=False)
  70.                 R11 = TexMobject(r"\text{Now let's differentiate with respect to  }\beta ," )
  71.                 if R11.get_height() > 1:
  72.                         R11.set_height(height=1,stretch=False)
  73.                 if R11.get_width() > 12:
  74.                         R11.set_width(width=12,stretch=False)
  75.                 R12 = TexMobject(r"\frac{\partial I'(\alpha,\beta)}{\partial \beta}=\frac{6}{\sqrt{5}}\int_{0}^{\infty}\frac{\partial}{\partial \beta} \frac{\ln{(1+\beta t^2)}}{t^2+6\alpha} dt" )
  76.                 if R12.get_height() > 1:
  77.                         R12.set_height(height=1,stretch=False)
  78.                 if R12.get_width() > 12:
  79.                         R12.set_width(width=12,stretch=False)
  80.                 R13 = TexMobject(r"= \frac{\partial I'(\alpha ,\beta )}{\partial \beta}=\frac{6}{\sqrt{5}}\int_{0}^{\infty} \frac{t^2}{(t^2+6\alpha)(1+\beta t^2)} dt" )
  81.                 if R13.get_height() > 1:
  82.                         R13.set_height(height=1,stretch=False)
  83.                 if R13.get_width() > 12:
  84.                         R13.set_width(width=12,stretch=False)
  85.                 R14 = TexMobject(r"\text{Now doing Partial Fractions,}" )
  86.                 if R14.get_height() > 1:
  87.                         R14.set_height(height=1,stretch=False)
  88.                 if R14.get_width() > 12:
  89.                         R14.set_width(width=12,stretch=False)
  90.                 R15 = TexMobject(r"\frac{\partial I'(\alpha,\beta)}{\partial \beta}=\frac{6}{\sqrt{5}} \int_{0}^{\infty} \frac{a_1}{t^2+6\alpha} + \frac{a_2}{1+\beta t^2} \  dt" )
  91.                 if R15.get_height() > 1:
  92.                         R15.set_height(height=1,stretch=False)
  93.                 if R15.get_width() > 12:
  94.                         R15.set_width(width=12,stretch=False)
  95.                 R16 = TexMobject(r"\text{With identification we get } a_1=\frac{-6\alpha}{1-6\alpha\beta} \ \ , \ a_2=\frac{1}{1-6\alpha\beta}" )
  96.                 if R16.get_height() > 1:
  97.                         R16.set_height(height=1,stretch=False)
  98.                 if R16.get_width() > 12:
  99.                         R16.set_width(width=12,stretch=False)
  100.                 R17 = TexMobject(r"\frac{\partial I'(\alpha, \beta)}{\partial \beta}=\frac{6}{\sqrt{5}}\frac{1}{(1-6\alpha\beta)} \int_{0}^{\infty}\frac{1}{1+\beta t^2}-\frac{6\alpha}{t^2+6\alpha} dt" )
  101.                 if R17.get_height() > 1:
  102.                         R17.set_height(height=1,stretch=False)
  103.                 if R17.get_width() > 12:
  104.                         R17.set_width(width=12,stretch=False)
  105.                 R18 = TexMobject(r"\text{Now this is an elementary integral and we get,}" )
  106.                 if R18.get_height() > 1:
  107.                         R18.set_height(height=1,stretch=False)
  108.                 if R18.get_width() > 12:
  109.                         R18.set_width(width=12,stretch=False)
  110.                 R19 = TexMobject(r"\frac{\partial I'(\alpha, \beta)}{\partial \beta}=\frac{6}{\sqrt{5}}\frac{1}{(1-6\alpha\beta)}\left[\frac{1}{\sqrt{\beta}}\arctan{(\sqrt{\beta}t)}-\sqrt{6\alpha}\arctan{\left(\frac{t}{\sqrt{6\alpha}}\right)}\right]_{0}^{\infty}" )
  111.                 if R19.get_height() > 1:
  112.                         R19.set_height(height=1,stretch=False)
  113.                 if R19.get_width() > 12:
  114.                         R19.set_width(width=12,stretch=False)
  115.                 R20 = TexMobject(r"= \frac{\partial I'(\alpha, \beta)}{\partial \beta}=\frac{6}{\sqrt{5}}\frac{1}{(1-6\alpha\beta)}\left(\frac{1}{\sqrt{\beta}}-\sqrt{6\alpha}\right)\frac{\pi}{2}" )
  116.                 if R20.get_height() > 1:
  117.                         R20.set_height(height=1,stretch=False)
  118.                 if R20.get_width() > 12:
  119.                         R20.set_width(width=12,stretch=False)
  120.                 R21 = TexMobject(r"\text{Now to get back to  }I'(\alpha , \beta ) \text{ we'll integrate with respect to  }  \beta" )
  121.                 if R21.get_height() > 1:
  122.                         R21.set_height(height=1,stretch=False)
  123.                 if R21.get_width() > 12:
  124.                         R21.set_width(width=12,stretch=False)
  125.                 R22 = TexMobject(r"I'(\alpha,\beta)=\int\frac{\partial I'(\alpha, \beta)}{\partial \beta} \ d\beta" )
  126.                 if R22.get_height() > 1:
  127.                         R22.set_height(height=1,stretch=False)
  128.                 if R22.get_width() > 12:
  129.                         R22.set_width(width=12,stretch=False)
  130.                 R23 = TexMobject(r"=\frac{6}{\sqrt{5}}\frac{\pi}{2}\int \frac{1}{\sqrt{\beta}}\frac{1}{1-6\alpha\beta}-\frac{\sqrt{6\alpha}}{1-6\alpha\beta} \ d\beta" )
  131.                 if R23.get_height() > 1:
  132.                         R23.set_height(height=1,stretch=False)
  133.                 if R23.get_width() > 12:
  134.                         R23.set_width(width=12,stretch=False)
  135.                 R24 = TexMobject(r"\text{For the first integral just let  }u=\sqrt{\beta}  \implies du=\frac{1}{\sqrt{\beta}} \ d\beta \text{ and we get,}" )
  136.                 if R24.get_height() > 1:
  137.                         R24.set_height(height=1,stretch=False)
  138.                 if R24.get_width() > 12:
  139.                         R24.set_width(width=12,stretch=False)
  140.                 R25 = TexMobject(r"I'(\alpha,\beta)=\frac{\sqrt{6}}{\sqrt{5}}\frac{\pi}{2}\frac{1}{\sqrt{\alpha}}\left(\ln({1-6\alpha\beta})+2 \text{ argtanh}{\left(\sqrt{6\alpha\beta}\right)}\right)+C(\alpha)" )
  141.                 if R25.get_height() > 1:
  142.                         R25.set_height(height=1,stretch=False)
  143.                 if R25.get_width() > 12:
  144.                         R25.set_width(width=12,stretch=False)
  145.                 R26 = TexMobject(r"\text{Since  }I'(\alpha,0)=0 \ \implies \ C(\alpha)=0" )
  146.                 if R26.get_height() > 1:
  147.                         R26.set_height(height=1,stretch=False)
  148.                 if R26.get_width() > 12:
  149.                         R26.set_width(width=12,stretch=False)
  150.                 R27 = TexMobject(r"\text{For  } \beta=1 \text{ we get } I'(\alpha)" )
  151.                 if R27.get_height() > 1:
  152.                         R27.set_height(height=1,stretch=False)
  153.                 if R27.get_width() > 12:
  154.                         R27.set_width(width=12,stretch=False)
  155.                 R28 = TexMobject(r"\iff I'(\alpha,1)=I'(\alpha)=\frac{\pi}{2}\frac{\sqrt{6}}{\sqrt{5\alpha}}\left(\ln{(1-6\alpha)}+2\text{ argtanh}{(\sqrt{6\alpha})}\right)" )
  156.                 if R28.get_height() > 1:
  157.                         R28.set_height(height=1,stretch=False)
  158.                 if R28.get_width() > 12:
  159.                         R28.set_width(width=12,stretch=False)
  160.                 R29 = TexMobject(r"\text{Now to get back to }  I(\alpha) \text{ we'll integrate with respect to } \alpha" )
  161.                 if R29.get_height() > 1:
  162.                         R29.set_height(height=1,stretch=False)
  163.                 if R29.get_width() > 12:
  164.                         R29.set_width(width=12,stretch=False)
  165.                 R30 = TexMobject(r"I(\alpha)=\int I'(\alpha) d\alpha" )
  166.                 if R30.get_height() > 1:
  167.                         R30.set_height(height=1,stretch=False)
  168.                 if R30.get_width() > 12:
  169.                         R30.set_width(width=12,stretch=False)
  170.                 R31 = TexMobject(r"I(\alpha)=\frac{\pi}{\sqrt{5}}\int\frac{\sqrt{6}}{2\sqrt{\alpha}}\left(\ln{(1-6\alpha)}+2\text{ argtanh}{(\sqrt{6\alpha})}\right) d\alpha" )
  171.                 if R31.get_height() > 1:
  172.                         R31.set_height(height=1,stretch=False)
  173.                 if R31.get_width() > 12:
  174.                         R31.set_width(width=12,stretch=False)
  175.                 R32 = TexMobject(r"\text{For this let }  \displaystyle \eta=\sqrt{6\alpha} \ \implies \ d\eta=\frac{\sqrt{6}}{2\sqrt{\alpha}} \ d\alpha" )
  176.                 if R32.get_height() > 1:
  177.                         R32.set_height(height=1,stretch=False)
  178.                 if R32.get_width() > 12:
  179.                         R32.set_width(width=12,stretch=False)
  180.                 R33 = TexMobject(r"\implies I=\frac{\pi}{\sqrt{5}}\int \ln{(1-\eta^2)}+2\text{ argtanh}{(\eta)} \  d\eta  " )
  181.                 if R33.get_height() > 1:
  182.                         R33.set_height(height=1,stretch=False)
  183.                 if R33.get_width() > 12:
  184.                         R33.set_width(width=12,stretch=False)
  185.                 R34 = TexMobject(r"\text{Since } \text{argtanh}{(t)}=\frac{1}{2} \ln{\left(\frac{1+t}{1-t}\right)} \text{ and } \ln{(1-t^2)}=\ln{(1+t)}+\ln{(1-t)}" )
  186.                 if R34.get_height() > 1:
  187.                         R34.set_height(height=1,stretch=False)
  188.                 if R34.get_width() > 12:
  189.                         R34.set_width(width=12,stretch=False)
  190.                 R35 = TexMobject(r"\implies I=\frac{\pi}{\sqrt{5}} \int 2\ln{(1+\eta)} \ d\eta" )
  191.                 if R35.get_height() > 1:
  192.                         R35.set_height(height=1,stretch=False)
  193.                 if R35.get_width() > 12:
  194.                         R35.set_width(width=12,stretch=False)
  195.                 R36 = TexMobject(r"\text{Now this can be done quite easily using integration by parts and we get,}" )
  196.                 if R36.get_height() > 1:
  197.                         R36.set_height(height=1,stretch=False)
  198.                 if R36.get_width() > 12:
  199.                         R36.set_width(width=12,stretch=False)
  200.                 R37 = TexMobject(r"I=\frac{2\pi}{\sqrt{5}}\Bigl((1+\eta)\ln{(1+\eta)}-\eta \Bigr)+C" )
  201.                 if R37.get_height() > 1:
  202.                         R37.set_height(height=1,stretch=False)
  203.                 if R37.get_width() > 12:
  204.                         R37.set_width(width=12,stretch=False)
  205.                 R38 = TexMobject(r"\text{And since } \eta=\sqrt{6\alpha}" )
  206.                 if R38.get_height() > 1:
  207.                         R38.set_height(height=1,stretch=False)
  208.                 if R38.get_width() > 12:
  209.                         R38.set_width(width=12,stretch=False)
  210.                 R39 = TexMobject(r"I(\alpha)=\frac{2\pi}{5} \Bigl((1+\sqrt{6\alpha})\ln{(1+\sqrt{6\alpha})}-\sqrt{6\alpha}\Bigr)+C" )
  211.                 if R39.get_height() > 1:
  212.                         R39.set_height(height=1,stretch=False)
  213.                 if R39.get_width() > 12:
  214.                         R39.set_width(width=12,stretch=False)
  215.                 R40 = TexMobject(r"\text{Since }  I(0)=0 \implies C=0 \text{ and for } \alpha=1 \text{ we get } I " )
  216.                 if R40.get_height() > 1:
  217.                         R40.set_height(height=1,stretch=False)
  218.                 if R40.get_width() > 12:
  219.                         R40.set_width(width=12,stretch=False)
  220.                 R41 = TexMobject(r"\implies I(1)=I=\frac{\pi}{\sqrt{5}}\Bigl(2(1+\sqrt{6})\ln{(1+\sqrt{6})}-2\sqrt{6}\Bigr)" )
  221.                 if R41.get_height() > 1:
  222.                         R41.set_height(height=1,stretch=False)
  223.                 if R41.get_width() > 12:
  224.                         R41.set_width(width=12,stretch=False)
  225.                 R42 = TexMobject(r"\text{We know that } 2\ln{(a)}=\ln{(a^2)}" )
  226.                 if R42.get_height() > 1:
  227.                         R42.set_height(height=1,stretch=False)
  228.                 if R42.get_width() > 12:
  229.                         R42.set_width(width=12,stretch=False)
  230.                 R43 = TexMobject(r"\implies I=\frac{\pi}{\sqrt{5}}\Bigl((1+\sqrt{6})\ln{(7+2\sqrt{6})}-\sqrt{6}\Bigr)" )
  231.                 if R43.get_height() > 1:
  232.                         R43.set_height(height=1,stretch=False)
  233.                 if R43.get_width() > 12:
  234.                         R43.set_width(width=12,stretch=False)
  235.                 R44 = TexMobject(r"\text{So we conclude that,}" )
  236.                 if R44.get_height() > 1:
  237.                         R44.set_height(height=1,stretch=False)
  238.                 if R44.get_width() > 12:
  239.                         R44.set_width(width=12,stretch=False)
  240.                 R45 = TexMobject(r"I=\int_{0}^{\infty}\ln{(1+5x^2)}\ln{\left(1+\frac{6}{5x^2}\right)}dx" )
  241.                 if R45.get_height() > 1:
  242.                         R45.set_height(height=1,stretch=False)
  243.                 if R45.get_width() > 12:
  244.                         R45.set_width(width=12,stretch=False)
  245.                 R46 = TexMobject(r"=\frac{\pi}{\sqrt{5}}\Bigl((1+\sqrt{6})\ln{(7+2\sqrt{6})}-\sqrt{6}\Bigr)" )
  246.                 if R46.get_height() > 1:
  247.                         R46.set_height(height=1,stretch=False)
  248.                 if R46.get_width() > 12:
  249.                         R46.set_width(width=12,stretch=False)
  250.                 R47 = TexMobject(r"." )
  251.                 if R47.get_height() > 1:
  252.                         R47.set_height(height=1,stretch=False)
  253.                 if R47.get_width() > 12:
  254.                         R47.set_width(width=12,stretch=False)
  255.                 R0.next_to(align_mark,DOWN)
  256.                 self.play(Write(R0))
  257.                 self.wait(1)
  258.                 R1.next_to(R0, DOWN)
  259.                 self.play(Write(R1))
  260.                 self.wait(1)
  261.                 R2.next_to(R1, DOWN)
  262.                 self.play(Write(R2))
  263.                 self.wait(1)
  264.                 self.play(FadeOut(R0))
  265.                 self.play(ApplyMethod(R1.next_to,align_mark,DOWN))
  266.                 self.play(ApplyMethod(R2.next_to,R1, DOWN))
  267.                 R3.next_to(R2, DOWN)
  268.                 self.play(Write(R3))
  269.                 self.play(FadeOut(R1))
  270.                 self.play(ApplyMethod(R2.next_to,align_mark,DOWN))
  271.                 self.play(ApplyMethod(R3.next_to,R2, DOWN))
  272.                 R4.next_to(R3, DOWN)
  273.                 self.play(Write(R4))
  274.                 self.play(FadeOut(R2))
  275.                 self.play(ApplyMethod(R3.next_to,align_mark,DOWN))
  276.                 self.play(ApplyMethod(R4.next_to,R3, DOWN))
  277.                 R5.next_to(R4, DOWN)
  278.                 self.play(Write(R5))
  279.                 self.play(FadeOut(R3))
  280.                 self.play(ApplyMethod(R4.next_to,align_mark,DOWN))
  281.                 self.play(ApplyMethod(R5.next_to,R4, DOWN))
  282.                 R6.next_to(R5, DOWN)
  283.                 self.play(Write(R6))
  284.                 self.play(FadeOut(R4))
  285.                 self.play(ApplyMethod(R5.next_to,align_mark,DOWN))
  286.                 self.play(ApplyMethod(R6.next_to,R5, DOWN))
  287.                 R7.next_to(R6, DOWN)
  288.                 self.play(Write(R7))
  289.                 self.play(FadeOut(R5))
  290.                 self.play(ApplyMethod(R6.next_to,align_mark,DOWN))
  291.                 self.play(ApplyMethod(R7.next_to,R6, DOWN))
  292.                 R8.next_to(R7, DOWN)
  293.                 self.play(Write(R8))
  294.                 self.play(FadeOut(R6))
  295.                 self.play(ApplyMethod(R7.next_to,align_mark,DOWN))
  296.                 self.play(ApplyMethod(R8.next_to,R7, DOWN))
  297.                 R9.next_to(R8, DOWN)
  298.                 self.play(Write(R9))
  299.                 self.play(FadeOut(R7))
  300.                 self.play(ApplyMethod(R8.next_to,align_mark,DOWN))
  301.                 self.play(ApplyMethod(R9.next_to,R8, DOWN))
  302.                 R10.next_to(R9, DOWN)
  303.                 self.play(Write(R10))
  304.                 self.play(FadeOut(R8))
  305.                 self.play(ApplyMethod(R9.next_to,align_mark,DOWN))
  306.                 self.play(ApplyMethod(R10.next_to,R9, DOWN))
  307.                 R11.next_to(R10, DOWN)
  308.                 self.play(Write(R11))
  309.                 self.play(FadeOut(R9))
  310.                 self.play(ApplyMethod(R10.next_to,align_mark,DOWN))
  311.                 self.play(ApplyMethod(R11.next_to,R10, DOWN))
  312.                 R12.next_to(R11, DOWN)
  313.                 self.play(Write(R12))
  314.                 self.play(FadeOut(R10))
  315.                 self.play(ApplyMethod(R11.next_to,align_mark,DOWN))
  316.                 self.play(ApplyMethod(R12.next_to,R11, DOWN))
  317.                 R13.next_to(R12, DOWN)
  318.                 self.play(Write(R13))
  319.                 self.play(FadeOut(R11))
  320.                 self.play(ApplyMethod(R12.next_to,align_mark,DOWN))
  321.                 self.play(ApplyMethod(R13.next_to,R12, DOWN))
  322.                 R14.next_to(R13, DOWN)
  323.                 self.play(Write(R14))
  324.                 self.play(FadeOut(R12))
  325.                 self.play(ApplyMethod(R13.next_to,align_mark,DOWN))
  326.                 self.play(ApplyMethod(R14.next_to,R13, DOWN))
  327.                 R15.next_to(R14, DOWN)
  328.                 self.play(Write(R15))
  329.                 self.play(FadeOut(R13))
  330.                 self.play(ApplyMethod(R14.next_to,align_mark,DOWN))
  331.                 self.play(ApplyMethod(R15.next_to,R14, DOWN))
  332.                 R16.next_to(R15, DOWN)
  333.                 self.play(Write(R16))
  334.                 self.play(FadeOut(R14))
  335.                 self.play(ApplyMethod(R15.next_to,align_mark,DOWN))
  336.                 self.play(ApplyMethod(R16.next_to,R15, DOWN))
  337.                 R17.next_to(R16, DOWN)
  338.                 self.play(Write(R17))
  339.                 self.play(FadeOut(R15))
  340.                 self.play(ApplyMethod(R16.next_to,align_mark,DOWN))
  341.                 self.play(ApplyMethod(R17.next_to,R16, DOWN))
  342.                 R18.next_to(R17, DOWN)
  343.                 self.play(Write(R18))
  344.                 self.play(FadeOut(R16))
  345.                 self.play(ApplyMethod(R17.next_to,align_mark,DOWN))
  346.                 self.play(ApplyMethod(R18.next_to,R17, DOWN))
  347.                 R19.next_to(R18, DOWN)
  348.                 self.play(Write(R19))
  349.                 self.play(FadeOut(R17))
  350.                 self.play(ApplyMethod(R18.next_to,align_mark,DOWN))
  351.                 self.play(ApplyMethod(R19.next_to,R18, DOWN))
  352.                 R20.next_to(R19, DOWN)
  353.                 self.play(Write(R20))
  354.                 self.play(FadeOut(R18))
  355.                 self.play(ApplyMethod(R19.next_to,align_mark,DOWN))
  356.                 self.play(ApplyMethod(R20.next_to,R19, DOWN))
  357.                 R21.next_to(R20, DOWN)
  358.                 self.play(Write(R21))
  359.                 self.play(FadeOut(R19))
  360.                 self.play(ApplyMethod(R20.next_to,align_mark,DOWN))
  361.                 self.play(ApplyMethod(R21.next_to,R20, DOWN))
  362.                 R22.next_to(R21, DOWN)
  363.                 self.play(Write(R22))
  364.                 self.play(FadeOut(R20))
  365.                 self.play(ApplyMethod(R21.next_to,align_mark,DOWN))
  366.                 self.play(ApplyMethod(R22.next_to,R21, DOWN))
  367.                 R23.next_to(R22, DOWN)
  368.                 self.play(Write(R23))
  369.                 self.play(FadeOut(R21))
  370.                 self.play(ApplyMethod(R22.next_to,align_mark,DOWN))
  371.                 self.play(ApplyMethod(R23.next_to,R22, DOWN))
  372.                 R24.next_to(R23, DOWN)
  373.                 self.play(Write(R24))
  374.                 self.play(FadeOut(R22))
  375.                 self.play(ApplyMethod(R23.next_to,align_mark,DOWN))
  376.                 self.play(ApplyMethod(R24.next_to,R23, DOWN))
  377.                 R25.next_to(R24, DOWN)
  378.                 self.play(Write(R25))
  379.                 self.play(FadeOut(R23))
  380.                 self.play(ApplyMethod(R24.next_to,align_mark,DOWN))
  381.                 self.play(ApplyMethod(R25.next_to,R24, DOWN))
  382.                 R26.next_to(R25, DOWN)
  383.                 self.play(Write(R26))
  384.                 self.play(FadeOut(R24))
  385.                 self.play(ApplyMethod(R25.next_to,align_mark,DOWN))
  386.                 self.play(ApplyMethod(R26.next_to,R25, DOWN))
  387.                 R27.next_to(R26, DOWN)
  388.                 self.play(Write(R27))
  389.                 self.play(FadeOut(R25))
  390.                 self.play(ApplyMethod(R26.next_to,align_mark,DOWN))
  391.                 self.play(ApplyMethod(R27.next_to,R26, DOWN))
  392.                 R28.next_to(R27, DOWN)
  393.                 self.play(Write(R28))
  394.                 self.play(FadeOut(R26))
  395.                 self.play(ApplyMethod(R27.next_to,align_mark,DOWN))
  396.                 self.play(ApplyMethod(R28.next_to,R27, DOWN))
  397.                 R29.next_to(R28, DOWN)
  398.                 self.play(Write(R29))
  399.                 self.play(FadeOut(R27))
  400.                 self.play(ApplyMethod(R28.next_to,align_mark,DOWN))
  401.                 self.play(ApplyMethod(R29.next_to,R28, DOWN))
  402.                 R30.next_to(R29, DOWN)
  403.                 self.play(Write(R30))
  404.                 self.play(FadeOut(R28))
  405.                 self.play(ApplyMethod(R29.next_to,align_mark,DOWN))
  406.                 self.play(ApplyMethod(R30.next_to,R29, DOWN))
  407.                 R31.next_to(R30, DOWN)
  408.                 self.play(Write(R31))
  409.                 self.play(FadeOut(R29))
  410.                 self.play(ApplyMethod(R30.next_to,align_mark,DOWN))
  411.                 self.play(ApplyMethod(R31.next_to,R30, DOWN))
  412.                 R32.next_to(R31, DOWN)
  413.                 self.play(Write(R32))
  414.                 self.play(FadeOut(R30))
  415.                 self.play(ApplyMethod(R31.next_to,align_mark,DOWN))
  416.                 self.play(ApplyMethod(R32.next_to,R31, DOWN))
  417.                 R33.next_to(R32, DOWN)
  418.                 self.play(Write(R33))
  419.                 self.play(FadeOut(R31))
  420.                 self.play(ApplyMethod(R32.next_to,align_mark,DOWN))
  421.                 self.play(ApplyMethod(R33.next_to,R32, DOWN))
  422.                 R34.next_to(R33, DOWN)
  423.                 self.play(Write(R34))
  424.                 self.play(FadeOut(R32))
  425.                 self.play(ApplyMethod(R33.next_to,align_mark,DOWN))
  426.                 self.play(ApplyMethod(R34.next_to,R33, DOWN))
  427.                 R35.next_to(R34, DOWN)
  428.                 self.play(Write(R35))
  429.                 self.play(FadeOut(R33))
  430.                 self.play(ApplyMethod(R34.next_to,align_mark,DOWN))
  431.                 self.play(ApplyMethod(R35.next_to,R34, DOWN))
  432.                 R36.next_to(R35, DOWN)
  433.                 self.play(Write(R36))
  434.                 self.play(FadeOut(R34))
  435.                 self.play(ApplyMethod(R35.next_to,align_mark,DOWN))
  436.                 self.play(ApplyMethod(R36.next_to,R35, DOWN))
  437.                 R37.next_to(R36, DOWN)
  438.                 self.play(Write(R37))
  439.                 self.play(FadeOut(R35))
  440.                 self.play(ApplyMethod(R36.next_to,align_mark,DOWN))
  441.                 self.play(ApplyMethod(R37.next_to,R36, DOWN))
  442.                 R38.next_to(R37, DOWN)
  443.                 self.play(Write(R38))
  444.                 self.play(FadeOut(R36))
  445.                 self.play(ApplyMethod(R37.next_to,align_mark,DOWN))
  446.                 self.play(ApplyMethod(R38.next_to,R37, DOWN))
  447.                 R39.next_to(R38, DOWN)
  448.                 self.play(Write(R39))
  449.                 self.play(FadeOut(R37))
  450.                 self.play(ApplyMethod(R38.next_to,align_mark,DOWN))
  451.                 self.play(ApplyMethod(R39.next_to,R38, DOWN))
  452.                 R40.next_to(R39, DOWN)
  453.                 self.play(Write(R40))
  454.                 self.play(FadeOut(R38))
  455.                 self.play(ApplyMethod(R39.next_to,align_mark,DOWN))
  456.                 self.play(ApplyMethod(R40.next_to,R39, DOWN))
  457.                 R41.next_to(R40, DOWN)
  458.                 self.play(Write(R41))
  459.                 self.play(FadeOut(R39))
  460.                 self.play(ApplyMethod(R40.next_to,align_mark,DOWN))
  461.                 self.play(ApplyMethod(R41.next_to,R40, DOWN))
  462.                 R42.next_to(R41, DOWN)
  463.                 self.play(Write(R42))
  464.                 self.play(FadeOut(R40))
  465.                 self.play(ApplyMethod(R41.next_to,align_mark,DOWN))
  466.                 self.play(ApplyMethod(R42.next_to,R41, DOWN))
  467.                 R43.next_to(R42, DOWN)
  468.                 self.play(Write(R43))
  469.                 self.play(FadeOut(R41))
  470.                 self.play(ApplyMethod(R42.next_to,align_mark,DOWN))
  471.                 self.play(ApplyMethod(R43.next_to,R42, DOWN))
  472.                 R44.next_to(R43, DOWN)
  473.                 self.play(Write(R44))
  474.                 self.play(FadeOut(R42))
  475.                 self.play(ApplyMethod(R43.next_to,align_mark,DOWN))
  476.                 self.play(ApplyMethod(R44.next_to,R43, DOWN))
  477.                 R45.next_to(R44, DOWN)
  478.                 self.play(Write(R45))
  479.                 self.play(FadeOut(R43))
  480.                 self.play(ApplyMethod(R44.next_to,align_mark,DOWN))
  481.                 self.play(ApplyMethod(R45.next_to,R44, DOWN))
  482.                 R46.next_to(R45, DOWN)
  483.                 self.play(Write(R46))
  484.                 self.play(FadeOut(R44))
  485.                 self.play(ApplyMethod(R45.next_to,align_mark,DOWN))
  486.                 self.play(ApplyMethod(R46.next_to,R45, DOWN))
  487.                 R47.next_to(R46, DOWN)
  488.                 self.play(Write(R47))
  489.                 self.wait(2)
  490.                 self.play(FadeOut(R47))
  491.                 self.play(FadeOut(R46))
  492.                 self.play(FadeOut(R45))
  493.                 self.play(FadeOut(Solve))
  494.                 self.play(ApplyMethod(watermark.next_to,align_mark,DOWN))
  495.                 self.play(FadeOut(watermark))
  496.  

Replies to Math Library's Python Code rss

Title Name Language When
Re: Math Library's Python Code Shreenabh Agrawal python 3 Years ago.