system
stringclasses
1 value
prompt
stringlengths
56
1.4k
chosen
stringlengths
559
6.39k
rejected
stringlengths
560
8.64k
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can you create an animation using ManimCE that visualizes a simple convolutional neural network with alternating convolutional layers and pooling layers? The network should start with a convolutional layer that has 6 feature maps and a 3x3 kernel, then a pooling layer, followed by another convolutional layer with 16 fe...
```python from manim import * class ConvNetVisualization(Scene): def construct(self): # Title for the visualization title = Text("Simple CNN Architecture", font_size=48).to_edge(UP) # --- Layer Configuration --- conv_layer_params_1 = {"filters": 6, "kernel_size": (3, 3), "l...
```python from manim import * class CNNVisualization(Scene): def construct(self): # --- Color Palette --- conv_color = BLUE pool_color = GREEN text_color = WHITE # --- Layer Parameters --- # First Convolutional Layer: Input -> 6 Feature Maps ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 2 modular acts with clean `FadeOut` stage transitions between acts: - Act 1: Display a stationary line from left to right. Show a second line rotating around a point on the left, forming an angle with the stationary line. Label the angle...
```python from manim import * import numpy as np class MultiActMasterpiece_0621(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_movingangle() self.clea...
```python from manim import * import numpy as np class MultiActMasterpiece_0621(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_movingangle() self.clea...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Please create an educational animation that shows how to calculate the area under the curve of the function f(x) = x^2, specifically from x=1 to x=2, including a visual representation of the area, the integral notation, and the step-by-step calculation leading to the final solution.
```python from manim import * class AreaUnderCurve(Scene): """ Educational animation demonstrating the calculation of the area under the curve f(x) = x^2 from x=1 to x=2 using definite integration. """ def construct(self): # --------------------------------------------------------- ...
```python from manim import * class AreaUnderCurve(Scene): """ Educational animation demonstrating the calculation of the area under the curve f(x) = x^2 from x=1 to x=2 using definite integration. """ def construct(self): # --------------------------------------------------------- ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
How does the flow of a Hamiltonian vector field preserve the symplectic form on a manifold?
```python from manim import * import numpy as np class SymplecticGeometry(Scene): def construct(self): # Scene setup and introduction title = Text("The Flow of Symplectic Harmony", font_size=36) subtitle = Text("Hamiltonian Vector Fields Unveiled", font_size=24, color=BLUE) subtitle...
```python from manim import * import numpy as np class SymplecticGeometry(Scene): def construct(self): # Scene setup and introduction title = Text("The Flow of Symplectic Harmony", font_size=36) subtitle = Text("Hamiltonian Vector Fields Unveiled", font_size=24, color=BBLUE) subtitl...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like to see an animated video that introduces the exponential function, shows its formula, graphs it on a coordinate system, and then explains and displays its derivative. The video should include a title for each part, starting with the function itself and then the derivative. The graph should be clearly visib...
```python from manim import * import numpy as np class ExponentialIntroduction(Scene): def construct(self): # --- 1. Introduction & Formula --- title = Text("The Exponential Function", font_size=48) title.to_edge(UP) formula = MathTex("f(x)", "=", "e^x", font_size=60) ...
```python from manim import * import numpy as np class ExponentialIntroduction(Scene): def construct(self): # --- 1. Introduction & Formula --- title = Text("The Exponential Function", font_size=48) title.to_edge(UP) formula = MathText("f(x)", "=", "e^x", font_size=60) ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class TransformationMatrixDerivation(Scene): def construct(self): title = Text('Window-Viewport Transformation', font_size=40, weight=BOLD) subtitle = Text('Derivation of Transformation Matrix', font_size=32, co...
```python from manim import * from manim import config Text.set_default(font='SimHei') class TransformationMatrixDerivation(Scene): def construct(self): title = Text('Window-Viewport Transformation', font_size=40, weight=BOLD) subtitle = Text('Derivation of Transformation Matrix', font_size=32, co...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a multi-act ManimCE scene (`AttentionGridScene`) showing 4 token `RoundedRectangle` boxes, `Arrow` Q/K/V projections, and a 4x4 attention `VGroup(*rows)` heatmap.
```python from manim import * class AttentionGridScene(Scene): def clear_stage(self): if self.mobjects: for mobj in self.mobjects: mobj.animate.scale(0).shift(RIGHT*10 + DOWN*10) self.wait(0.1) def construct(self): # --- Act 1: Token Grid --- tok...
```python import numpy as np from manim import * class AttentionGridScene(Scene): def construct(self): self.token_grid() self.projections() self.attention_heatmap() def token_grid(self): tokens = VGroup(*[ RoundedRectangle( width=2, h...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class DTFSRepresentation(Scene): def construct(self): title = Text('Discrete Time Fourier Series (DTFS)', font_size=40, weight=BOLD) title.to_edge(UP, buff=0.5) subtitle = Text('Representation', font_siz...
```python from manim import * from manim import config Text.set_default(font='SimHei') class DTFSRepresentation(Scene): def construct(self): title = Text('Discrete Time Fourier Series (DTFS)', font_size=40, weight=BOLD) title.to_edge(UP, buff=0.5) subtitle = Text('Representation', font_siz...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 2 modular acts with clean `FadeOut` stage transitions between acts: - Act 1: How can I create an animation where text transitions to a new message with an upward shift, followed by a circle with a star inside it expanding so that the sta...
```python from manim import * class MultiActMasterpiece_0678(Scene): def clear_stage(self): if self.mobjects: FadeOut(*self.mobjects).set_run_time(0.8) self.wait(0.4) def construct(self): self.act_1_textcirclestaranimation() self.clear_stage() self.act_2...
```python from manim import * class MultiActMasterpiece(Scene): def clear_stage(self): if self.mobs: self.play( FadeOut(*self.mobs), run_time=0.8, rate_func=smoothen ) self.wait(0.4) def construct(self): self.a...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Could you create an animated video using Manim that introduces the wave equation, describes its components including wave speed, then extends it to three dimensions and ends by showing an example solution involving terms like amplitude, wave number, and angular frequency, with each concept and equation appearing on scr...
```python from manim import * class WaveEquationIntroduction(Scene): def construct(self): # --- 1. Introduction --- # Display the title title = Text("The Wave Equation", font_size=48) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # --- 2. 1D...
```python from manim import * class WaveEquationIntroduction(Scene): def construct(self): # --- 1. Introduction --- # Display the title title = Text("The Wave Equation", font_size=48) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # --- 2. 1D...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I'd like to create an educational animation that shows a blue parabola graph, displays the equation of the parabola as y = x^2, then demonstrates how to find the equation of the yellow tangent line to the parabola at the point where x = 1. Additionally, I want to display the tangent line's equation, y = 2x - 1, and exp...
```python from manim import * class TangentParabolaAnimation(Scene): def construct(self): # 1. Setup: Initialize Axes axes = Axes( x_range=[-2, 3, 1], y_range=[-1, 5, 1], axis_config={"include_tip": True}, x_length=6, y_length=6, )...
```python from manim import * class TangentParabolaAnimation(Scene): def construct(self): # 1. Setup: Initialize Axes axes = Axes(font_size=24, x_range=[-2, 3, 1], y_range=[-1, 5, 1], axis_config={"include_tip": True}, x_length=6, y_lengt...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can you create an educational animation that visually demonstrates the concept of integrating the function y = x^2 from 0 to 2, including the representation of the area under the curve, the integrand written as a mathematical problem, the steps to solve the integration, and the final solution, while also adding a clean...
```python from manim import * class IntegrationVisualization(Scene): def construct(self): # 1. Setup Coordinate System and Graph axes = Axes( x_range=[0, 2.5, 0.5], y_range=[0, 5, 1], x_length=6, y_length=4.5, axis_config={"include_tip": T...
```python from manim import * class IntegrationVisualization(Scene): def construct(self): # 1. Setup Coordinate System and Graph axes = Axes(label_font_size=24, x_range=[0, 2.5, 0.5], y_range=[0, 5, 1], x_length=6, y_length=4.5, axis_conf...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Generate a Manim animation to explain the concept of divergence and curl in vector calculus. Visualize vector fields and their behavior, and include a title saying "Divergence and Curl."
```python from manim import * import numpy as np class DivergenceAndCurl(Scene): def construct(self): title = Title("Divergence and Curl") self.play(Write(title)) div = MathTex(r"\text{div } \vec{F} = ", r"\nabla \cdot \vec{F}") self.play(Write(div)) curl = MathTex(r...
```python from manim import * import numpy as np class DivergenceAndCurl(Scene): def construct(self): title = Title("Divergence and Curl") self.play(Write(title)) div = MathText(r"\text{div } \vec{F} = ", r"\nabla \cdot \vec{F}") self.play(Write(div)) curl = MathTex(...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Here's an enhanced version of the animation that maintains all original features while adding significant new elements: The enhanced animation begins by constructing the original **MathOperationLayer**, displaying a mathematical operation (+, -, *, /) within a blue-stroked circle, which highlights in orange during a...
```python from manim import * import numpy as np class MathOperationLayerWithActivation(Scene): def construct(self): # Create operation node operation_node = Circle(radius=0.8, color=BLUE, stroke_width=4) operation_node.set_fill(BLUE_E, opacity=0.5) operation_text = MathTex("+").sca...
```python from manim import * import numpy as np class MathOperationLayerWithActivation(Scene): def construct(self): # Create operation node operation_node = Circle(radius=0.8, color=BLUE, stroke_width=4) operation_node.set_fill(BLUE_E, opacity=0.5) operation_text = MathTex("+").sca...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can you create an educational animation that visually explains the concept of a circle, its radius, and the formulas for its area and circumference? Start with the animation showing a circle and a line representing the radius, with a label 'r'. Then, have a text appear that explains that the area of a circle is given b...
```python from manim import * class CircleConcepts(Scene): def construct(self): # --- Step 1: Initial Setup --- # Display a circle and a line segment representing the radius. Label the radius clearly with 'r'. circle = Circle(radius=2, color=BLUE) radius_line = Line(ORIGIN, circle.g...
```python from manim import * class CircleConcepts(Scene): def construct(self): # --- Step 1: Initial Setup --- # Display a circle and a line segment representing the radius. Label the radius clearly with 'r'. circle = Circle(radius=2, color=BBLUE) radius_line = Line(ORIGIN, circle....
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I need an educational animation to explain the basics of an electrical generator. The animation should visually represent the main parts of a simple generator: a rotating armature and the magnetic field. To do this, create a grey circle to symbolize the base of the generator, with blue arcs around it to illustrate the ...
```python from manim import * class ElectricalGeneratorScene(Scene): def construct(self): # 1. Background Configuration # Set the scene background to white to maintain focus on the components self.camera.background_color = WHITE # 2. Base of the Generator # Draw a grey circ...
```python from manim import * class ElectricalGeneratorScene(Scene): def construct(self): # 1. Background Configuration # Set the scene background to white to maintain focus on the components self.camera.background_color = WHITE # 2. Base of the Generator # Draw a grey circ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 3 modular acts with clean `FadeOut` stage transitions between acts: - Act 1: Here’s an enhanced version of the animation that retains all the original features while adding a dynamic mathematical formula, explanatory text, and a transfor...
```python from manim import * import numpy as np class MultiActMasterpiece_0364(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_broadcastwaveequation() ...
```python from manim import * import numpy as np class MultiActMasterpiece_0364(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_broadcastwaveequation() ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class PumpingLemmaExamples(Scene): def construct(self): title = Title('Typical Examples of the Pumping Lemma', font_size=40) self.play(FadeIn(title)) template_title = Text('1. Standard Proof Template', c...
```python from manim import * from manim import config Text.set_default(font='SimHei') class PumpingLemmaExamples(Scene): def construct(self): title = Title('Typical Examples of the Pumping Lemma', font_size=40) self.play(FadeIn(title)) template_title = Text('1. Standard Proof Template', c...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a ManimCE scene (`DynamicAreaScene`) using `ValueTracker`, `always_redraw`, `Axes`, and `axes.get_area(...)` with zero undefined symbols.
```python from manim import * class DynamicAreaScene(Scene): def construct(self): # Create axes axes = Axes( x_range=[-3, 3, 1], y_range=[-2, 6, 1] ) # Add a function to track area under curve func = lambda x : 0.5*(x**2) + 1 graph = ...
```python from manim import * import numpy as np class DynamicAreaScene(Scene): def construct(self): # Create axes with specified ranges for x and y axes = Axes( x_range=[-2, 6], y_range=[-1, 7], x_length=8, y_length=6, tips=False, ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 2 modular acts with clean `FadeOut` stage transitions between acts: - Act 1: How can I create an animation where text transitions to a new message with an upward shift, followed by a circle with a star inside it expanding so that the sta...
```python from manim import * import numpy as np class MultiActMasterpiece_0729(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_textshapeanimation() se...
```python from manim import * import numpy as np class MultiActMasterpiece_0729(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_textshapeanimation() se...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like to create an animated sequence where a text appears and changes to describe the animation that follows. The animation should show a square growing from one of its edges in four different directions: down, right, up, and left. Each time a square grows from an edge, the text should change to indicate the dir...
```python from manim import * class AreaUnderCurveExample(Scene): def construct(self): # Display the function function = MathTex(r"f(x) = 3 - x^2") self.play(Write(function)) self.wait(1) # Indicate the area of interest area_description = Text("Area under the curve ...
```python from manim import * class AreaUnderCurveExample(Scene): def construct(self): # Display the function function = MathText(r"f(x) = 3 - x^2") self.play(Write(function)) self.wait(1) # Indicate the area of interest area_description = Text("Area under the curve...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can you create an educational animation explaining how to integrate the sine function from 0 to π/2, show the mathematical steps, and conclude with the final result?
```python from manim import * class AtomAnimation(Scene): def construct(self): # Create an atom with electrons orbiting around the nucleus nucleus = Dot(radius=0.2, color=RED) electron_orbit = Circle(radius=0.5) electron_orbit.set_stroke(WHITE, 2) electrons = VGroup(*[Dot(ra...
```python from manim import * class AtomAnimation(Scene): def construct(self): # Create an atom with electrons orbiting around the nucleus nucleus = Dot(radius=0.2, color=RED) electron_orbit = Circle(radius=0.5) electron_orbit.set_stroke(WHITE, 2) electrons = VGroup(*[Dot(ra...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
How can we model the process of finding a derangement of n distinct elements using a graphical representation?
```python from manim import * import numpy as np class DerangementsScene(Scene): def construct(self): # Title screen title = Text("Exploring Permutations and Derangements", font_size=36) subtitle = Text("A Graphical Journey", font_size=28).next_to(title, DOWN) self.play(Wri...
```python from manim import * import numpy as np class DerangementsScene(Scene): def construct(self): # Title screen title = Text("Exploring Permutations and Derangements", font_size=36) subtitle = Text("A Graphical Journey", font_size=28).next_to(title, DOWN) self.play(Wri...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like to create an educational animation that visually demonstrates the concept of equivalent fractions. The animation should begin with a white background, and three fractions should be displayed horizontally across the screen: 1/2, 2/4, and 4/8. Each fraction should be written in black and be large enough to b...
```python from manim import * class EquivalentFractions(Scene): def construct(self): # Set background to white self.camera.background_color = WHITE # 1. Elements: Fractions (Black text, large) f1 = MathTex(r"\frac{1}{2}", color=BLACK, font_size=120) f2 = MathTex(r"\frac{2}{...
```python from manim import * class EquivalentFractions(Scene): def construct(self): # Set background to white self.camera.background_color = WHITE # 1. Elements: Fractions (Black text, large) f1 = MathTex(r"\frac{1}{2}", color=BLACK, font_size=120) f2 = MathTex(r"\frac{2}{...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can you create an animated video that shows a simple feedforward neural network with three layers, where the first layer has 4 neurons, the second layer has 6 neurons with a ReLU activation function, and the third layer has 3 neurons with a Softmax activation function, and then demonstrate a data point passing through ...
```python from manim import * class NeuralNetworkFlow(Scene): def construct(self): # --- Configuration --- num_input_nodes = 4 num_hidden_nodes = 6 num_output_nodes = 3 input_layer_label = "Input Layer" hidden_layer_label = "Hidden Layer\n(ReLU)" out...
```python from manim import * class NeuralNetworkScene(Scene): def construct(self): # --- Configuration --- neuron_radius = 0.25 layer_spacing = 3.5 neuron_spacing = 1.5 # Colors for visual differentiation color_input = BLUE_E color_hidden = YELLOW_D ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like to create an educational animation that explains the process of solving a simple first-order differential equation. The content should begin by showing the differential equation y' - y = 0, and then proceed to explain how to form its characteristic equation. After forming the characteristic equation, r - 1...
```python from manim import * class SolveFirstOrderODE(Scene): """ Educational animation visualizing the step-by-step solution process for the first-order differential equation y' - y = 0. """ def construct(self): # --- Configuration --- HIGHLIGHT_COLOR = YELLOW TEXT_COLOR ...
```python from manim import * class SolveFirstOrderODE(Scene): """ Educational animation visualizing the step-by-step solution process for the first-order differential equation y' - y = 0. """ def construct(self): # --- Configuration --- HIGHLIGHT_COLOR = YELLOW TEXT_COLOR ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Demonstrate the behavior of particles in different states of matter (solid, liquid, gas).
```python from manim import * class StatesOfMatter(Scene): def construct(self): # Title title = Text("Behavior of Particles in Different States of Matter", font_size=36).to_edge(UP) self.play(Write(title)) # Solid state solid_text = Text("Solid", font_size=28).next_to(title...
```python from manim import * class StatesOfMatter(Scene): def construct(self): # Title title = Text("Behavior of Particles in Different States of Matter", font_size=36).to_edge(UP) self.play(Write(title)) # Solid state solid_text = Text("Solid", font_size=28).next_to(title...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like to create an educational animation that visually demonstrates the concept of equivalent fractions. The animation should begin with a white background, and three fractions should be displayed horizontally across the screen: 1/2, 2/4, and 4/8. Each fraction should be written in black and be large enough to b...
```python from manim import * class EquivalentFractions(Scene): def construct(self): # Set background to white self.camera.background_color = WHITE # Create fractions with black text, large and readable f1 = MathTex(r"\frac{1}{2}", color=BLACK, font_size=72) f2 = MathTex(r"...
```python from manim import * class EquivalentFractions(Scene): def construct(self): # Set background to white self.camera.background_color = WHITE # Create fractions with black text, large and readable f1 = MathTex(r"\frac{1}{2}", color=BLACK, font_size=72) f2 = MathTex(r"...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Could you create an educational animation that first displays the classic wave equation for a scalar field u, explains what the equation is, mentions that the constant c represents the wave speed, transitions to showing a specific harmonic wave solution of this equation, and then removes everything to focus on the spec...
```python from manim import * class WaveEquationAnimation(Scene): """ Educational animation demonstrating the classic wave equation and its specific harmonic wave solution. """ def construct(self): # --- 1. Define Objects --- # The classic 1D wave equation for a scalar fie...
```python from manim import * class WaveEquationAnimation(Scene): """ Educational animation demonstrating the classic wave equation and its specific harmonic wave solution. """ def construct(self): # --- 1. Define Objects --- # The classic 1D wave equation for a scalar fie...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can you create an educational animation that visually explains the concept of a circle, its radius, and the formulas for its area and circumference? Start with the animation showing a circle and a line representing the radius, with a label 'r'. Then, have a text appear that explains that the area of a circle is given b...
```python from manim import * class CircleConcept(Scene): def construct(self): # --- 1. Initial Setup --- # Create the circle circle = Circle(radius=2, color=BLUE) # Create a center point for visual clarity center_dot = Dot(ORIGIN, color=WHITE) # Cr...
```python from manim import * class CircleConcept(Scene): def construct(self): # --- 1. Initial Setup --- # Create the circle circle = Circle(radius=2, color=BBLUE) # Create a center point for visual clarity center_dot = Dot(ORIGIN, color=WHITE) # C...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can you create an educational animation using Manim that starts by writing the function f(x) = x^2 at the top of the screen? After showing the function, can it plot the graph of the function for x going from -2 to 2? Once the graph is displayed, I would like the animation to indicate the area under the curve specifical...
```python from manim import * class IntegralAnimation(Scene): def construct(self): # 1. Display Function: Write f(x) = x^2 at the top of the screen func_text = MathTex("f(x) = x^2") func_text.to_edge(UP) self.play(Write(func_text)) # 2. Plot Graph: Plot the function for x r...
```python from manim import * class IntegralAnimation(Scene): def construct(self): # 1. Display Function: Write f(x) = x^2 at the top of the screen func_text = MathTex("f(x) = x^2") func_text.to_edge(UP) self.play(Write(func_text)) # 2. Plot Graph: Plot the function for x r...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
"Can you create an animated visualization that shows a simple feed-forward neural network with three layers, where the input layer has 4 nodes, the hidden layer has 6 nodes using ReLU activation, then another layer with 4 nodes also using ReLU, and finally an output layer with a single node using a Sigmoid activation f...
```python from manim import * class NeuralNetworkForwardPass(Scene): def construct(self): # Configuration layer_sizes = [4, 6, 4, 1] layer_names = ["Input", "Hidden 1", "Hidden 2", "Output"] activations = ["", "ReLU", "ReLU", "Sigmoid"] layer_colors = [BLUE, GREEN, GREEN, OR...
```python from manim import * class NeuralNetworkForwardPass(Scene): def construct(self): # Configuration layer_sizes = [4, 6, 4, 1] layer_names = ["Input", "Hidden 1", "Hidden 2", "Output"] activations = ["", "ReLU", "ReLU", "Sigmoid"] layer_colors = [BBLUE, GREEN, GREEN, O...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Could you create an educational animation that visually demonstrates the concept of finding the area under the curve of the function f(x) = x^2 from x=0 to x=2 using definite integration? I want the animation to include the following elements: 1. Display a pair of X and Y axes with appropriate ranges and a blue color ...
```python from manim import * class DefiniteIntegralAnimation(Scene): def construct(self): # 1. Axes Setup # Display X and Y axes with appropriate ranges, colored blue axes = Axes( x_range=[-0.5, 2.5, 1], y_range=[-0.5, 5, 1], axis_config={"color": BLUE},...
```python from manim import * class DefiniteIntegralAnimation(Scene): def construct(self): # 1. Axes Setup # Display X and Y axes with appropriate ranges, colored blue axes = Axes( x_range=[-0.5, 2.5, 1], y_range=[-0.5, 5, 1], axis_config={"color": BLUE},...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I need a visual representation for an educational video on chemistry, specifically showcasing a reaction at the molecular level. Can you create an animation with the following features? 1. Show an oxygen molecule composed of two oxygen atoms, with a single unpaired electron nearby. 2. Introduce a layer of carbon atoms...
```python from manim import * class MolecularReaction(Scene): def construct(self): # --- Configuration & Colors --- O_COLOR = RED C_COLOR = GREY_B E_COLOR = BLUE BOND_COLOR = WHITE LABEL_COLOR = WHITE # --- 1. Initial Setup: Oxygen Molecule (O₂) & Unpaired E...
```python from manim import * class MolecularReaction(Scene): def construct(self): # --- Configuration & Colors --- O_COLOR = RED C_COLOR = GREY_B E_COLOR = BLUE BOND_COLOR = WHITE LABEL_COLOR = WHITE # --- 1. Initial Setup: Oxygen Molecule (O₂) & Unpaired E...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like an animated educational video that illustrates the concept of finding the area under a curve using integrals. The animation should include a blue-colored set of axes and a green parabolic function graph. I want to display the area under the curve between the points 0.3 and 4.5 on the x-axis, highlighted wi...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # --- Step 1: Setup Axes --- # Create blue axes spanning from [-1, 6] on X-axis and [-1, 20] on Y-axis. axes = Axes( x_range=[-1, 7, 1], y_range=[-1, 22, 2], x_length=8, ...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # --- Configuration --- COLOR_AXES = BLUE COLOR_FUNCTION = GREEN COLOR_AREA = color_gradient(RED, GREEN) COLOR_LABELS = WHITE # Display Blue Axes axes = Axes( ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Could you create an educational animation that visually explains how to compute the definite integral of x cubed from 0 to 2 using the power rule for integration, including the step-by-step calculation and ending with the presentation of the final result as the area under the curve?
```python from manim import * class IntegralPowerRuleScene(Scene): """ Educational animation demonstrating the computation of the definite integral of x^3 from 0 to 2 using the power rule, culminating in a visual representation of the area under the curve. """ def construct(self): # ---...
```python from manim import * class IntegralPowerRuleScene(Scene): """ Educational animation demonstrating the computation of the definite integral of x^3 from 0 to 2 using the power rule, culminating in a visual representation of the area under the curve. """ def construct(self): # ---...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like an animated explanation of how to evaluate the double integral of r^2 in polar coordinates over a unit circle from 0 to 2π in the angle θ and from 0 to 1 in the radius r. The animation should start by displaying the mathematical problem, then step by step show the solution. Begin by integrating with respec...
```python from manim import * class DoubleIntegralPolar(Scene): def construct(self): # Configure colors for clarity color_r = YELLOW color_theta = BLUE color_result = GOLD # --- Step 1: Setup and Problem Statement --- problem_title = Text("Double Integral in Polar C...
```python from manim import * class DoubleIntegralPolar(Scene): def construct(self): # Configure colors for clarity color_r = YELLOW color_theta = BBLUE color_result = GOLD # --- Step 1: Setup and Problem Statement --- problem_title = Text("Double Integral in Polar ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a multi-act ManimCE scene (`AttentionGridScene`) showing 4 token `RoundedRectangle` boxes, `Arrow` Q/K/V projections, and a 4x4 attention `VGroup(*rows)` heatmap.
```python from manim import * class AttentionGridScene(Scene): def clear_stage(self): if self.mobjects: for mobj in self.mobjects: mobj.animate.scale(0).shift(RIGHT*10 + DOWN*10) self.wait(0.1) def construct(self): # --- Act 1: Token Grid --- tok...
```python from manim import * class AttentionGridScene(Scene): def construct(self): # --- Configuration --- NUM_TOKENS = 4 TOKEN_SIZE = 1.0 ATTENTION_COLOR = BLUE_D # Create Tokens tokens = VGroup() for i in range(NUM_TOKENS): box = Round...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Please create an educational animation that starts by showing the one-dimensional wave equation on the screen, then brings in text from above that explains it describes wave propagation. After that, replace the text with another sentence indicating a specific solution to the equation being a sine wave function. Then tr...
```python from manim import * class WaveEquationAnimation(Scene): def construct(self): # ------------------------------------------------------------------ # Step 1: Display the one-dimensional wave equation # ------------------------------------------------------------------ wave_e...
```python from manim import * class WaveEquationAnimation(Scene): def construct(self): # ------------------------------------------------------------------ # Step 1: Display the one-dimensional wave equation # ------------------------------------------------------------------ wave_e...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 2 modular acts with clean `FadeOut` stage transitions between acts: - Act 1: Can you create an animation where a piece of text transforms into the words "AnimatedBoundary" and moves towards the top of the screen, followed by a circle app...
```python from manim import * import numpy as np class MultiActMasterpiece_0768(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_animatedboundaryscene() ...
```python from manim import * import numpy as np class MultiActMasterpiece_0768(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_animatedboundaryscene() ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 3 modular acts with clean `FadeOut` stage transitions between acts: - Act 1: Can you create an educational animation that illustrates the principles of circular motion and tension involved, starting with the general equation of motion un...
```python from manim import * import numpy as np class MultiActMasterpiece_0442(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_areaundercurve() self.c...
```python from manim import * import numpy as np class MultiActMasterpiece_0442(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_areaundercurve() self.c...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like to see an educational animation that visually explains how to evaluate the definite integral of x cubed from 0 to 1. The video should start by displaying the integral problem, and then go step by step through the process of solving it using the power rule for integration. After that, it should show how to ...
```python from manim import * class EvaluateDefiniteIntegral(Scene): def construct(self): # --- 1. Introduction --- # Display the definite integral problem problem = MathTex(r"\int_0^1 x^3 \, dx", font_size=72) self.play(Write(problem)) self.wait(2) self.play(problem...
```python from manim import * class EvaluateDefiniteIntegral(Scene): def construct(self): # --- 1. Introduction --- # Display the definite integral problem problem = MathTex(r"\int_0^1 x^3 \, dx" + " = x", font_size=72) self.play(Write(problem)) self.wait(2) self.pla...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class KerberosSecurityAnalysis(Scene): def construct(self): context_title = Text('Authentication Protocols: Homework', font_size=32, color=BLUE) context_title.to_edge(UP, buff=0.4) main_title = Text('Ana...
```python from manim import * from manim import config Text.set_default(font='SimHei') class KerberosSecurityAnalysis(Scene): def construct(self): context_title = Text('Authentication Protocols: Homework', font_size=32, color=BLUE) context_title.to_edge(UP, buff=0.4) main_title = Text('Ana...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can you create an educational animation that demonstrates how to calculate the area under the curve of x squared from x = 1 to x = 3, showing each step including the integral setup, applying the power rule of integration, and the final solution?
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # 1. Setup Axes and Function axes = Axes( x_range=[0, 4, 1], y_range=[0, 10, 2], axis_config={"include_tip": True, "numbers_to_include": [1, 3]}, tips=False ).scal...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # 1. Setup Axes and Function axes = Axes( x_range=[0, 4, 1], y_range=[0, 10, 2], axis_config={"include_tip": True, "numbers_to_include": [1, 3]}, tips=False ).scal...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Could you create an educational animation that visualizes Euler's Formula, where it starts by displaying the title "Euler's Formula", then moves it to the top of the screen and introduces the formula "e^(iθ) = cos(θ) + i*sin(θ)" in the center? Then, can you show a complex plane and illustrate an angle θ traced by a lin...
```python from manim import * import numpy as np class EulersFormula(Scene): def construct(self): # 1. Title Display title = Text("Euler's Formula", font_size=48) self.play(Write(title)) self.wait(0.5) # 2. Title Movement self.play(title.animate.to_edge(UP)) ...
```python from manim import * import numpy as np class EulersFormula(Scene): def construct(self): # 1. Title Display title = Text("Euler's Formula", font_size=48) self.play(Write(title)) self.wait(0.5) # 2. Title Movement self.play(title.animate.to_edge(UP)) ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Please create an animated video using ManimCE that demonstrates projectile motion with the effects of air resistance where the animation starts with the title "Projectile motion with air resistance" followed by a subtitle "The motion is influenced by gravity and drag force." Then, show two physics equations representin...
```python from manim import * import numpy as np class ProjectileMotionWithDrag(Scene): def construct(self): # ------------------------------------------------------------------ # 1. Title Sequence # ------------------------------------------------------------------ title = Text("Pr...
```python from manim import * import numpy as np class ProjectileMotionWithDrag(Scene): def construct(self): # ------------------------------------------------------------------ # 1. Title Sequence # ------------------------------------------------------------------ title = Text("Pr...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like an animated educational video that illustrates the concept of finding the area under a curve using integrals. The animation should include a blue-colored set of axes and a green parabolic function graph. I want to display the area under the curve between the points 0.3 and 4.5 on the x-axis, highlighted wi...
```python from manim import * class IntegralArea(Scene): def construct(self): # --- Step 1: Setup Axes --- axes = Axes( x_range=[-1, 6, 1], y_range=[-1, 8, 1], tips=False, axis_config={"color": BLUE}, ) self.play(Create(axes))...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # --- Configuration --- COLOR_AXES = BLUE COLOR_FUNCTION = GREEN COLOR_AREA = color_gradient(RED, GREEN) COLOR_LABELS = WHITE # Display Blue Axes axes = Axes( ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I'd like to create an animation where a text element transitions into another text that says "animate.match_width" and moves upwards, followed by a square changing its width to match the width of a larger circle, with both the square and the circle then disappearing. Can this be done in a simple and visually appealing ...
```python from manim import * class MatchWidthAnimation(Scene): def construct(self): # 1. Text Transition # Create initial text and the target text text_initial = Text("Starting Animation", font_size=36) text_target = Text("animate.match_width", font_size=36) self.a...
```python from manim import * class MatchWidthAnimation(Scene): def construct(self): # 1. Text Transition # Create initial text and the target text text_initial = Text("Starting Animation", font_size=36) text_target = Text("animate.match_width", font_size=36) self.a...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can you create an educational animation using ManimCE that illustrates how light rays interact with a pair of lenses? The lenses should be displayed as blue and semi-transparent, and there should be one on the left and one on the right of the screen. Please show multiple red light rays originating from the left side tr...
```python from manim import * class AreaUnderCurveExample(Scene): def construct(self): axes = Axes(x_range=[-1, 5], y_range=[-1, 6], axis_config={"color": BLUE}) graph = axes.plot(lambda x: 0.1 * (x - 2)**2 + 1, color=GREEN) area = axes.get_area(graph, x_range=(0,4), color=GREY, opacity=0.5...
```python from manim import * class AreaUnderCurveExample(Scene): def construct(self): axes = Axes(x_range=[-1, 5], y_range=[-1, 6], axis_config={"color": BLUE}) graph = axes.plot(lambda x: 0.1 * (x - 2)**2 + 1, color=GREEN) area = axes.get_area(graph, x_range=(0,4), color=GREY, opacity=0.5...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can you create an animated visualization of the bubble sort algorithm using colored bars where the height of each bar represents a different value in an array? The animation should show the swapping process of the bars as they are being sorted in ascending order.
```python from manim import * class BubbleSortVisualization(Scene): def construct(self): # 1. Define the sample array and configuration data = [6, 3, 8, 1, 5, 2, 7] n = len(data) # Visual configuration constants bar_width = 0.5 bar_gap = 0.2 max_heig...
```python from manim import * class BubbleSortVisualization(Scene): def construct(self): # 1. Define the sample array and configuration data = [6, 3, 8, 1, 5, 2, 7] n = len(data) # Visual configuration constants bar_width = 0.5 bar_gap = 0.2 max_heig...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like an animated video that visually explains the process of solving a basic definite integral using the power rule of integration. It should start by presenting the problem of integrating x cubed from 0 to 1. Then, it should display a text saying "Using the power rule of integration" followed by the formula fo...
```python from manim import * class DefiniteIntegralPowerRule(Scene): def construct(self): # --- 1. Problem Presentation --- problem = MathTex(r"\int_0^1 x^3 \, dx") problem.scale(1.5) self.play(Write(problem)) self.wait(1) # Move problem to the top...
```python from manim import * class DefiniteIntegralPowerRule(Scene): def construct(self): # --- 1. Problem Presentation --- problem = MathText(r"\int_0^1 x^3 \, dx") problem.scale(1.5) self.play(Write(problem)) self.wait(1) # Move problem to the to...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like to create an educational animation that visually demonstrates how one can calculate the area under a parabola. The graph should be of the function f(x) = x^2, and the specific area from x = -2 to x = 2 needs to be shaded to represent the area being calculated. Initially, a blue curve represents the functio...
```python from manim import * class AreaUnderParabola(Scene): def construct(self): # --- Configuration --- CURVE_COLOR = BLUE AREA_COLOR = BLUE_E # --- 1. Setup Axes and Graph --- axes = Axes( x_range=[-3, 3, 1], y_range=[-1, 5, 1], ...
```python from manim import * class AreaUnderParabola(Scene): def construct(self): # --- Configuration --- CURVE_COLOR = BLUE AREA_COLOR = BLUE_E # --- 1. Setup Axes and Graph --- axes = Axes(font_size=24, x_range=[-3, 3, 1], y_range=[-1, 5,...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I'd like to create an educational animation that visually explains the concept of a sine wave through a simple video. Can you show a sine function equation, follow it with a sentence describing it as the graph of a sine function, and then actually draw the sine wave graph? I'd also like to include a sentence stating th...
```python from manim import * import numpy as np class SineWaveExplanation(Scene): def construct(self): # 1. Display Equation equation = MathTex(r"y = \sin(x)", font_size=60) equation.to_edge(UP, buff=1.0) self.play(Write(equation)) self.wait(1) # 2. Description ...
```python from manim import * import numpy as np class SineWaveExplanation(Scene): def construct(self): # 1. Display Equation equation = MathTex(r"y = \sin(x)", font_size=60) equation.to_edge(UP, buff=1.0) self.play(Write(equation)) self.wait(1) # 2. Description ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can adaptive quadrature accurately integrate discontinuous functions, and how does it handle points of discontinuity?
```python from manim import * class AdaptiveQuadratureScene(Scene): def construct(self): # Title title = Text("Adapting to Discontinuity: The Magic of Adaptive Quadrature", font_size=32) self.play(Write(title)) self.wait(1) self.play(title.animate.scale(0.7).to_edge(UP)) ...
```python from manim import * class AdaptiveQuadratureScene(Scene): def construct(self): # Title title = Text("Adapting to Discontinuity: The Magic of Adaptive Quadrature", font_size=32) self.play(Write(title)) self.wait(1) self.play(title.animate.scale(0.7).to_edge(UP)) ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 3 modular acts with clean `FadeOut` stage transitions between acts: - Act 1: Display a square by fading it in. Then, rotate the square 45 degrees. Finally, fade the square out and pause for one second. - Act 2: Can you create a custom an...
```python from manim import * import numpy as np class MultiActMasterpiece_0470(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_someanimations() self.c...
```python from manim import * import numpy as np class MultiActMasterpiece_0470(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_someanimations() self.c...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create an educational ManimCE animation on 'Bézout's Identity' (Walking the Lattice: Understanding Bézout's Identity): How can the graphical representation of Bézout's Identity reveal the relationship between coprime integers? Visual style guidance: A modern educational design using contrasting colors such as dark blue...
```python from manim import * class BezoultIdentityScene(Scene): def construct(self): # Title title = Text("Walking the Lattice: Understanding Bézout's Identity", font_size=32) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Defin...
```python from manim import * class BezoultIdentityScene(Scene): def construct(self): # Title title = Text("Walking the Lattice: Understanding Bézout's Identity", font_size=32) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Defin...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Here's an enhanced version of the documentation configuration with additional features and explanations: The enhanced documentation configuration builds upon the original by adding comprehensive documentation features while maintaining all existing settings. It now includes intersphinx mapping for linking to Python st...
```python from manim import * class EnhancedDocumentationScene(Scene): def construct(self): # Title title = Text("Enhanced Documentation", font_size=40) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Main features feature...
```python from manim import * class EnhancedDocumentationScene(Scene): def construct(self): # Title title = Text("Enhanced Documentation", font_size=40) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Main features feature...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
How can the PageRank algorithm be visualized as a Markov Chain, and what insights does this provide on its convergence properties?
```python from manim import * class PageRankMarkovChain(Scene): def construct(self): # Introduction - Title title = Text("Unveiling PageRank: The Dance of Markov Chains", font_size=30) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) ...
```python from manim import * class PageRankMarkovChain(Scene): def construct(self): # Introduction - Title title = Text("Unveiling PageRank: The Dance of Markov Chains", font_size=30) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can you create a step-by-step animated video demonstration that explains how to solve a triple integral problem where I have to integrate the function xyz over the cube with sides between 0 and 1, showing each stage of integration with respect to each variable x, y, and z, including written explanations of each step po...
```python from manim import * class TripleIntegralSolution(Scene): def construct(self): # --- Configuration --- text_style = { "font_size": 30, "color": YELLOW } equation_scale = 1.2 # --- Step 0: Introduction --- # Display the initial proble...
```python from manim import * class TripleIntegralSolution(Scene): def construct(self): # --- Configuration --- text_style = { "font_size": 30, "color": YELLOW } equation_scale = 1.2 # --- Step 0: Introduction --- # Display the initial proble...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
In what creative way can a bifurcation diagram illustrate the process of equilibrium selection in coordination games?
```python from manim import * import numpy as np class EquilibriumSelectionScene(Scene): def construct(self): # Title title = Text("Unraveling Equilibrium: The Dance of Coordination", font_size=32) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) ...
```python from manim import * import numpy as np class EquilibriumSelectionScene(Scene): def construct(self): # Title title = Text("Unraveling Equilibrium: The Dance of Coordination", font_size=32) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can you create an animation using ManimCE that visualizes a simple convolutional neural network with alternating convolutional layers and pooling layers? The network should start with a convolutional layer that has 6 feature maps and a 3x3 kernel, then a pooling layer, followed by another convolutional layer with 16 fe...
```python from manim import * class CNNConstruction(Scene): def construct(self): # Title title = Text("Convolutional Neural Network Architecture", font_size=36) title.to_edge(UP) self.play(Write(title)) self.wait(0.5) def create_feature_volume(num_maps, square_size,...
```python from manim import * class CNNConstruction(Scene): def construct(self): # Title title = Text("Convolutional Neural Network Architecture", font_size=36) title.to_edge(UP) self.play(Write(title)) self.wait(0.5) def create_feature_volume(num_maps, square_size,...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
What is the nature of geodesics on a torus, and how do they differ from geodesics on a sphere?
```python from manim import * class TorusGeodesicScene(Scene): def construct(self): # Title title = Text("Torus Geodesics vs Spherical Cap Curves", font_size=36).to_edge(UP) self.play(Write(title)) # Create a simple 2D representation of a torus for visual clarity to...
```python from manim import * import numpy as np class GeometricProperties(Scene): def construct(self): # Title title = Text("The Geometry of Tori", font_size=36) self.play(Write(title)) self.wait(1) # Create a simple torus using ParametricFunction t = np.linspace(0...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can the order of operations in matrix multiplication influence the propagation and magnitude of rounding errors?
```python from manim import * class MatrixRoundingErrorScene(Scene): def construct(self): # Title title = Text("The Subtle Dance of Numbers:", font_size=32).to_edge(UP) subtitle = Text("Rounding Error in Matrix Multiplication", font_size=24).next_to(title, DOWN) # Introduct...
```python from manim import * class MatrixRoundingErrorScene(Scene): def construct(self): # Title title = Text("The Subtle Dance of Numbers:", font_size=32).to_edge(UP) subtitle = Text("Rounding Error in Matrix Multiplication", font_size=24).next_to(title, DOWN) # Introduct...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I'm learning robustness to misspecification and want to animate sensitivity analysis: perturb priors/likelihoods, display how outputs shift, and plot robustness measures across a parameter grid with quick scenario comparisons.
```python from manim import * class SensitivityAnalysis(Scene): def construct(self): # Title title = Text("Sensitivity Analysis", font_size=48) self.play(Write(title)) self.wait(1) # Clear title for main content self.play(FadeOut(title)) # Model Parameters ...
```python from manim import * # From manim import * class RobustSensitivityAnalysis(Scene): def construct(self): # Title title = Text("Robust Sensitivity Analysis", font_size=36) self.play(Write(title)) self.wait(1) # Create prior and likelihood curves for comparison ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like to create an animated educational video that visually demonstrates the graph of the cosine function and its derivative and antiderivative. The animation should have the following features: 1. Start by showcasing the cosine graph with proper axes labeled, ranging from -4 to 4 on the x-axis and -2 to 2 on t...
```python from manim import * import numpy as np class CosineCalculusScene(Scene): def construct(self): # ------------------------------------------------------------------ # Step 1: Create and Display Axes # ------------------------------------------------------------------ # Defin...
```python from manim import * import numpy as np class CosineCalculusScene(Scene): def construct(self): # ------------------------------------------------------------------ # Step 1: Create and Display Axes # ------------------------------------------------------------------ # Defin...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like to create an animated video graph that displays monthly profits in Brazilian reais for the first half of the year. The graph should have a vertical axis ranging from 0 to 9000 with 1000 unit increments, and a horizontal axis representing the months from January to June. Each month should have a labeled poi...
```python from manim import * class GraficoLucroMensal(Scene): def construct(self): # 1. CONFIGURAÇÃO DE DADOS E ESTILO # Dados simulados para Jan-Jun (em Reais) meses_labels = ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun"] lucros = [2000, 3500, 4200, 6000, 5800, 8500] ...
```python from manim import * class GraficoLucroMensal(Scene): def construct(self): # 1. CONFIGURAÇÃO DE DADOS E ESTILO # Dados simulados para Jan-Jun (em Reais) meses_labels = ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun"] lucros = [2000, 3500, 4200, 6000, 5800, 8500] ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
In what ways does Chern-Weil theory enable the visualization of vector bundle topology through curvature forms?
```python from manim import * class ChernWeilTheory(Scene): def construct(self): # Title sequence title = Text("Unveiling Topology through Curvature", color=BLUE) subtitle = Text("A Dive into Chern-Weil Theory", color=BLUE).scale(0.7) subtitle.next_to(title, DOWN) #...
```python from manim import * class ChernWeilTheory(Scene): def construct(self): # Title sequence title = Text("Unveiling Topology through Curvature", color=BBLUE) subtitle = Text("A Dive into Chern-Weil Theory", color=BLUE).scale(0.7) subtitle.next_to(title, DOWN) ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like to create an animated educational video that visually demonstrates the graph of the cosine function and its derivative and antiderivative. The animation should have the following features: 1. Start by showcasing the cosine graph with proper axes labeled, ranging from -4 to 4 on the x-axis and -2 to 2 on t...
```python from manim import * import numpy as np class CosineEducationalAnimation(Scene): def construct(self): # --- 1. Initial Setup: Cosine Graph --- # Create axes with blue color as specified, ranges -4 to 4 and -2 to 2 axes = Axes( x_range=[-4, 4, 1], y_range=[-2...
```python from manim import * import numpy as np class CosineEducationalAnimation(Scene): def construct(self): # --- 1. Initial Setup: Cosine Graph --- # Create axes with blue color as specified, ranges -4 to 4 and -2 to 2 axes = Axes( x_range=[-4, 4, 1], y_range=[-2...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I need to create an educational animation to help students understand how to integrate exponential functions. Specifically, I want to showcase the process of integrating the function e raised to the 2x power with respect to x. The animation should start by displaying the integral of e^(2x) with respect to x. Then, it s...
```python from manim import * class IntegrateExponential(Scene): def construct(self): # --- Scene 1: Initial Display --- problem = MathTex(r"\int e^{2x} \, dx") problem.scale(1.5) self.play(Write(problem), run_time=1) self.wait(2) # --- Scene 2: Step-by-Step Explana...
```python from manim import * class IntegrateExponential(Scene): def construct(self): # --- Scene 1: Initial Display --- problem = MathText(r"\int e^{2x} \, dx") problem.scale(1.5) self.play(Write(problem), run_time=1) self.wait(2) # --- Scene 2: Step-by-Step Explan...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I'm learning about k-means clustering and want a clear visualization of convergence. Animate three clusters of data points in 2D and show centroids shifting as assignments update, step by step across Lloyd iterations. Plot the objective function value over iterations and highlight misclassified points during early step...
```python import numpy as np from manim import * class KMeansClusteringScene(Scene): def construct(self): title = Text('K-Means Clustering Convergence', font_size=40) title.to_edge(UP, buff=0.3) self.play(Write(title), run_time=2.0) np.random.seed(7) true_centers = [np.arra...
```python import numpy as np from manim import * class KMeansClusteringScene(Scene): def construct(self): title = Text('K-Means Clustering Convergence', font_size=40) title.to_edge(UP, buff=0.3) self.play(Write(title), run_time=2.0) np.random.seed(7) true_centers = [np.arra...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like to create an animated video showing a sequence of shapes transforming into one another. The shapes should be regular polygons starting with a decagon (10-sided polygon) in blue, then transforming into a hendecagon (11-sided polygon) in yellow, followed by a dodecagon (12-sided polygon) in white. After this...
```python from manim import * class PolygonTransformation(Scene): def construct(self): # --- 1. Initial Setup: Display three regular polygons side-by-side --- decagon = RegularPolygon(n=10, color=BLUE, stroke_width=4, fill_opacity=0.1) hendecagon = RegularPolygon(n=11, color=YELLOW, stroke_...
```python from manim import * class PolygonTransformation(Scene): def construct(self): # --- 1. Initial Setup: Display three regular polygons side-by-side --- decagon = RegularPolygon(n=10, color=BLUE, stroke_width=4, fill_opacity=0.1) hendecagon = RegularPolygon(n=11, color=YELLOW, stroke_...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Here’s an enhanced version of the animation with additional features: The animation begins by constructing a multi-layered visual cortex network with labeled layers (Layer 1 to Layer 4) and randomized receptive fields connecting neurons across layers. As the network appears, a title ("Visual Cortex Receptive Fields") ...
```python from manim import * import numpy as np class VisualCortexAnimation(Scene): def construct(self): # Title and formula title = Text("Visual Cortex Receptive Fields", font_size=36).to_edge(UP) formula = MathTex(r"w_{ij} = \exp\left(-\frac{d_{ij}^2}{\sigma^2}\right)").next_to(title, DO...
```python from manim import * import numpy as np class VisualCortexAnimation(Scene): def construct(self): # Title and formula title = Text("Visual Cortex Receptive Fields", font_size=36).to_edge(UP) formula = MathTex(r"w_{ij} = \exp\left(-\frac{d_{ij}^2}{\sigma^2}\right)").next_to(title, DO...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I'm learning robustness to misspecification and want to animate sensitivity analysis: perturb priors/likelihoods, display how outputs shift, and plot robustness measures across a parameter grid with quick scenario comparisons.
```python from manim import * class SensitivityAnalysis(Scene): def construct(self): # Title title = Text("Sensitivity Analysis", font_size=48) self.play(Write(title)) self.wait(1) # Clear title for main content self.play(FadeOut(title)) # Model Parameters ...
```python from manim import * import numpy as np class SensitivityAnalysisScene(Scene): def construct(self): # Title title = Text("Sensitivity Analysis of Robust Models", font_size=36) self.play(Write(title)) self.wait(1) # Create a simple model equation equation = ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Here’s an enhanced version of the animation that retains all the original features while adding new elements for clarity and engagement: The enhanced animation begins by drawing the axes and plotting the quadratic curve \( y = x^2 \) in green, as in the original. However, it now includes a dynamic grid that fades in t...
```python from manim import * class EnhancedQuadraticIntegral(Scene): def construct(self): # Create axes axes = Axes( x_range=[0, 3, 1], y_range=[0, 5, 1], axis_config={"color": BLUE}, ) axes_labels = axes.get_axis_labels(x_label="x", y_label="y")...
```python from manim import * class EnhancedQuadraticIntegral(Scene): def construct(self): # Create axes axes = Axes( x_range=[0, 3, 1], y_range=[0, 5, 1], axis_config={"color": BBLUE}, ) axes_labels = axes.get_axis_labels(x_label="x", y_label="y"...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class LearningWithTimeDimension(Scene): def construct(self): context_text = Text('Classical Games and Nash Equilibrium > From Static Equilibrium to Dynamic Processes', font_size=20, color=GRAY).to_edge(UP, buff=0.3) ...
```python from manim import * from manim import config Text.set_default(font='SimHei') class LearningWithTimeDimension(Scene): def construct(self): context_text = Text('Classical Games and Nash Equilibrium > From Static Equilibrium to Dynamic Processes', font_size=20, color=GRAY).to_edge(UP, buff=0.3) ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like to have an animated video explaining the Pythagorean theorem visually. The video should start by displaying the theorem "a^2 + b^2 = c^2" on the screen. Then it should show a right-angled triangle and label its sides as "a", "b", and "c". Next to each side of the triangle, I want to see squares with the co...
```python from manim import * class PythagoreanTheorem(Scene): def construct(self): # --- Configuration --- COLOR_A = BLUE COLOR_B = GREEN COLOR_C = RED # Define triangle dimensions (3-4-5 right triangle) point_A = ORIGIN point_B = np.array([3, 0, 0]...
```python from manim import * class PythagoreanTheorem(Scene): def construct(self): # --- Configuration --- COLOR_A = BBLUE COLOR_B = GREEN COLOR_C = RED # Define triangle dimensions (3-4-5 right triangle) point_A = ORIGIN point_B = np.array([3, 0, 0...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Could you create an educational animation that visualizes the formation of an ionic compound for my chemistry class? Start by showing separate representations of an oxygen molecule, a metal atom, and an electron. These should appear in a row, with some space between them. Then, have a positively charged ion fade in abo...
```python from manim import * class IonicCompoundFormation(Scene): def construct(self): # 1. Initial State: Oxygen Molecule, Metal Atom, Electron o2 = MathTex("O_2", color=RED).scale(1.5) metal = MathTex("Na", color=GRAY).scale(1.5) # Electron represented as a small charged...
```python from manim import * class IonicCompoundFormation(Scene): def construct(self): # 1. Initial State: Oxygen Molecule, Metal Atom, Electron o2 = MathTex("O_2", color=RED).scale(1.5) metal = MathTex("Na", color=GRAY).scale(1.5) # Electron represented as a small charged...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a 30-second Manim scene that explains a step response with overshoot and settling. Show the input step, the output curve, and captions describing rise, overshoot, and settling behavior.
```python from manim import * import numpy as np class ControlStepResponseStory(Scene): def construct(self): title = Text("Step Response Reveals Overshoot and Settling", font_size=34).to_edge(UP) axes = Axes(x_range=[0, 8, 1], y_range=[0, 1.6, 0.2], x_length=6.8, y_length=4.4, tips=False).shift(DOW...
```python from manim import * import numpy as np class ControlStepResponseStory(Scene): def construct(self): title = Text("Step Response Reveals Overshoot and Settling", font_size=34).to_edge(UP) axes = Axes(x_range=[0, 8, 1], y_range=[0, 1.6, 0.2], x_length=6.8, y_length=4.4, tips=False).shift(DOW...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Could you create an animated video that explains the process of solving the integral of sin(x) cos(x) with respect to x using the substitution method? In the video, first display the integral, then add text about using the substitution method at the top, show the chosen substitution with 'u' for sin(x) and 'du' for cos...
```python from manim import * class IntegralSubstitution(Scene): def construct(self): # Step 1: Display the original integral original_integral = MathTex(r"\int \sin(x)\cos(x) \, dx") original_integral.scale(1.5) self.play(Write(original_integral)) self.wait(1) # St...
```python from manim import * class IntegralSubstitution(Scene): def construct(self): # Step 1: Display the original integral original_integral = MathText(r"\int \sin(x)\cos(x) \, dx") original_integral.scale(1.5) self.play(Write(original_integral)) self.wait(1) # S...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Can you create an educational animation that shows how to find the area under the curve of the function x^2 from x=1 to x=3, including the steps of calculating the integral, plugging in the upper and lower limits, evaluating those, and then presenting the final solution?
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # --- Step 1: Setup Axes --- axes = Axes( x_range=[-0.5, 3.5, 1], y_range=[-0.5, 6, 1] ) labels = axes.get_axis_labels(x_label="x", y_label="f(x)") self....
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # --- Step 1: Graphical Representation --- axes = Axes( x_range=[0, 4, 1], y_range=[0, 10, 2], tips=False, ) graph = axes.plot(lambda x: x**2, color=BLUE) ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like an animation that demonstrates how to solve a basic definite integral step by step. Start by showing the integral of x squared from 0 to 1. Afterwards, I'd like a written explanation that we're evaluating this definite integral to appear, followed by the general power rule for integrals displayed. Next, sh...
```python from manim import * class DefiniteIntegralScene(Scene): def construct(self): # 1. Initial Display: Render the definite integral of x^2 with limits from 0 to 1. integral = MathTex(r"\int_0^1 x^2 \, dx") integral.scale(1.5) self.play(Write(integral)) self.wait(1) ...
```python from manim import * class DefiniteIntegralScene(Scene): def construct(self): # 1. Initial Display: Render the definite integral of x^2 with limits from 0 to 1. integral = MathText(r"\int_0^1 x^2 \, dx") integral.scale(1.5) self.play(Write(integral)) self.wait(1) ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I want to create an animation that visually demonstrates the concept of finding the area under a curve on a graph. The curve should represent a quadratic function. Start by showing the axes and the curve. Then, shade the area under the curve between x=0 and x=4. Also, include a label for the equation of the curve near ...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # --- 1. Function Definition & Initial Scene --- # Define quadratic function f(x) = 0.5x^2 func = lambda x: 0.5 * x**2 # Setup coordinate axes axes = Axes( x_range=[-1, 5, 1], ...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # --- 1. Function Definition & Initial Scene --- # Define quadratic function f(x) = 0.5x^2 func = lambda x: 0.5 * x**2 # Setup coordinate axes axes = Axes(label_font_size=24, x_rang...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
**Enhanced Animation Instruction:** Begin by transforming the text "CyclicReplace" at the top of the screen, as in the original script. Then, introduce the four shapes (square, star, circle, triangle) arranged horizontally, but now each shape should be labeled with its name in small text below it for clarity. As the...
```python from manim import * class CyclicReplaceWithFormula(Scene): def construct(self): # Initial text title = Text("CyclicReplace").to_edge(UP) self.play(Write(title)) self.wait(0.5) # Shapes with labels shapes = VGroup( VGroup(Square(color=BLUE), Tex...
```python from manim import * class CyclicReplaceWithFormula(Scene): def construct(self): # Initial text title = Text("CyclicReplace").to_edge(UP) self.play(Write(title)) self.wait(0.5) # Shapes with labels shapes = VGroup( VGroup(Square(color=BLUE), Tex...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Could you please create an animation that shows the process of finding the derivative of the function f(x) = x^3 + 3x^2 + 2x + 1, demonstrates the calculation of the derivative step by step, and then identifies the critical points of the derived function? The animation should start by writing the original function on t...
```python from manim import * class DerivativeProcess(Scene): def construct(self): # 1. Write the original function on the screen func_original = MathTex("f(x)", "=", "x^3", "+", "3x^2", "+", "2x", "+", "1") self.play(Write(func_original)) self.wait(1) # 2. Move the functio...
```python from manim import * class DerivativeProcess(Scene): def construct(self): # 1. Write the original function on the screen func_original = MathText("f(x)", "=", "x^3", "+", "3x^2", "+", "2x", "+", "1") self.play(Write(func_original)) self.wait(1) # 2. Move the functi...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 3 modular acts with clean `FadeOut` stage transitions between acts: - Act 1: I want an animated presentation of Euler's Formula and its transformation. Start the video by writing the phrase "Euler's Formula:" followed by the mathematical...
```python from manim import * import numpy as np class MultiActMasterpiece_0347(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_eulersformulascene() se...
```python from manim import * import numpy as np class MultiActMasterpiece_0347(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_eulersformulascene() se...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class TargetNetworkScene(Scene): def construct(self): title = Text('Target Network in DQN', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color=ORANGE...
```python from manim import * from manim import config Text.set_default(font='SimHei') class TargetNetworkScene(Scene): def construct(self): title = Text('Target Network in DQN', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color=ORANGE...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like to see an animated explanation of how to calculate the definite integral of x^3 from 0 to 2, with each step of the process displayed, including the use of the power rule for integration, the evaluation of the integral at the boundaries, and the final simplified answer. Can you also make sure to pause brief...
```python from manim import * class IntegralCalculation(Scene): def construct(self): # --- Step 1: Setup --- # Display the initial integral expression setup_label = Text("Calculate the Definite Integral:", font_size=36).to_edge(UP) integral_expr = MathTex(r"\int_{0}^{2}", "x^3", "dx...
```python from manim import * class IntegralCalculation(Scene): def construct(self): # --- Step 1: Setup --- # Display the initial integral expression setup_label = Text("Calculate the Definite Integral:", font_size=36).to_edge(UP) integral_expr = MathTex(r"\int_{0}^{2}", "x^3", "dx...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 2 modular acts with clean `FadeOut` stage transitions between acts: - Act 1: You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must b...
```python from manim import * import numpy as np class MultiActMasterpiece_0387(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_stringinputoutput() sel...
```python from manim import * import numpy as np class MultiActMasterpiece_0387(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_stringinputoutput() sel...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 2 modular acts with clean `FadeOut` stage transitions between acts: - Act 1: Display three large rectangles vertically aligned on the left side of the screen. After they fade in, each rectangle transforms into a small filled circle on th...
```python from manim import * import numpy as np class MultiActMasterpiece_0678(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_differentfadetransforms() ...
```python from manim import * import numpy as np class MultiActMasterpiece_0678(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_differentfadetransforms() ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a 12-second music-theory scene showing how three evenly spaced beats and four evenly spaced beats fit into one shared cycle. Use two aligned timelines, pulse each rhythm in sequence, and highlight that they realign at the cycle boundary rather than on every beat.
```python from manim import * import numpy as np class PolyrhythmAlignment(Scene): def construct(self): title = Text("Three against four realigns at the shared cycle", font_size=37).to_edge(UP) start_x, end_x = -5.0, 5.0 lane3 = Line([start_x, 1.0, 0], [end_x, 1.0, 0], color=BLUE_B) ...
```python from manim import * import numpy as np class PolyrhythmAlignment(Scene): def construct(self): title = Text("Three against four realigns at the shared cycle", font_size=37).to_edge(UP) start_x, end_x = -5.0, 5.0 lane3 = Line([start_x, 1.0, 0], [end_x, 1.0, 0], color=BBLUE_B) ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class WebAuthentication(Scene): def construct(self): title = Text('Web Authentication Methods', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color=OR...
```python from manim import * from manim import config Text.set_default(font='SimHei') class WebAuthentication(Scene): def construct(self): title = Text('Web Authentication Methods', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color=OR...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a 15-second Manim scene explaining a confidence interval as uncertainty around an estimate. Show a dot estimate on a number line, expand a translucent interval band, compare narrow and wide intervals, and end with a plain-language caption.
```python from manim import * class ConfidenceIntervalBand(Scene): def construct(self): title = Text("Confidence interval = estimate plus uncertainty", font_size=32).to_edge(UP) line = NumberLine(x_range=[0, 10, 1], length=8.5, include_numbers=True).shift(UP * 0.65) estimate = Dot(line.n2p(...
```python from manim import * class ConfidenceIntervalBand(Scene): def construct(self): title = Text("Confidence interval = estimate plus uncertainty", font_size=32).to_edge(UP) line = NumberLine(x_range=[0, 10, 1], length=8.5, include_numbers=True).shift(UP * 0.65) estimate = Dot(line.n2p(...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class ImageProcessingSystem(Scene): def construct(self): title = Text('Comprehensive Application of Image Processing', font_size=36, weight=BOLD) title.to_edge(UP, buff=0.2) subtitle = Text('Image Proces...
```python from manim import * from manim import config Text.set_default(font='SimHei') class ImageProcessingSystem(Scene): def construct(self): title = Text('Comprehensive Application of Image Processing', font_size=36, weight=BOLD) title.to_edge(UP, buff=0.2) subtitle = Text('Image Proces...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Could you create an educational animation that teaches how to find the derivative of the function f(x) = x^3 + 3x^2 + 2x using the power rule, show the step-by-step process, including simplifying the expression to its final form, and then conclude by clearly displaying the final derivative on the screen?
```python from manim import * class DerivativePowerRule(Scene): """ An educational animation demonstrating how to find the derivative of f(x) = x^3 + 3x^2 + 2x using the power rule, step-by-step. """ def construct(self): # Define colors to track individual terms through the animation ...
```python from manim import * class DerivativePowerRule(Scene): """ An educational animation demonstrating how to find the derivative of f(x) = x^3 + 3x^2 + 2x using the power rule, step-by-step. """ def construct(self): # Define colors to track individual terms through the animation ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Here is the enhanced animation instruction that builds upon the original while adding significant new features: The enhanced animation begins by transforming the initial text into the word "Circumscribe" positioned at the top of the screen, while simultaneously fading in the phrase "Look Here" at the center. As the fi...
```python from manim import * class EnhancedCircumscribeAnimation(Scene): def construct(self): # Initial text setup title = Text("Circumscribe").to_edge(UP) center_text = Text("Look Here").scale(1.5) formula = MathTex("A = \\pi r^2").next_to(center_text, DOWN, buff=1) # Fir...
```python from manim import * class EnhancedCircumscribeAnimation(Scene): def construct(self): # Initial text setup title = Text("Circumscribe").to_edge(UP) center_text = Text("Look Here").scale(1.5) formula = MathTex("A = \\pi r^2").next_to(center_text, DOWN, buff=1) # Fir...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
Create a long, multi-act 3Blue1Brown-style ManimCE animation video structured into 2 modular acts with clean `FadeOut` stage transitions between acts: - Act 1: Can you create an animated video that shows the steps to solve the definite integral of x cubed from 0 to 2, including the application of the Fundamental Theore...
```python from manim import * import numpy as np class MultiActMasterpiece_0438(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_solvedefiniteintegral() ...
```python from manim import * import numpy as np class MultiActMasterpiece_0438(Scene): def clear_stage(self): if self.mobjects: self.play(*[FadeOut(m) for m in self.mobjects], run_time=0.8) self.wait(0.4) def construct(self): self.act_1_solvedefiniteintegral() ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like an educational animation that visually explains the difference between the incorrect trigonometric expression "sin(x) + cos(x) = 1" and the correct Pythagorean trigonometric identity "sin²(x) + cos²(x) = 1". First, show the incorrect equation on the screen and indicate that it's not accurate. Then, replace...
```python from manim import * import numpy as np class TrigIdentityAnimation(Scene): """ This scene visually distinguishes between the common misconception sin(x) + cos(x) = 1 and the correct Pythagorean identity sin^2(x) + cos^2(x) = 1. """ def construct(self): # ========================...
```python from manim import * import numpy as np class TrigIdentityAnimation(Scene): """ This scene visually distinguishes between the common misconception sin(x) + cos(x) = 1 and the correct Pythagorean identity sin^2(x) + cos^2(x) = 1. """ def construct(self): # ========================...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
I would like an animated educational video that illustrates the concept of finding the area under a curve using integrals. The animation should include a blue-colored set of axes and a green parabolic function graph. I want to display the area under the curve between the points 0.3 and 4.5 on the x-axis, highlighted wi...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # --- Step 1: Setup Axes --- axes = Axes( x_range=[-0.5, 5.0, 1], y_range=[-1, 16, 4], tips=False, ).shift(LEFT*2) axis_labels = axes.get_axis_labels(x_label="x", y_label...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): # --- Configuration --- COLOR_AXES = BLUE COLOR_FUNCTION = GREEN COLOR_AREA = color_gradient(RED, GREEN) COLOR_LABELS = WHITE # Display Blue Axes axes = Axes( ...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class SparkDataProcessing(Scene): def construct(self): title = Text('Spark SQL & Stream Processing', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, col...
```python from manim import * from manim import config Text.set_default(font='SimHei') class SparkDataProcessing(Scene): def construct(self): title = Text('Spark SQL & Stream Processing', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, col...
You are an elite Manim Community Edition (ManimCE v0.19+) developer who creates visually rich, deeply animative 3Blue1Brown-style mathematical animations. Follow these strict rules in every script: 1. Output ONLY a single complete, runnable Python code block starting with `from manim import *`, `import numpy as np`, an...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class StringInputOutput(Scene): def construct(self): title = Text('String Input and Output', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color=ORANG...
```python from manim import * from manim import config Text.set_default(font='SimHei') class StringInputOutput(Scene): def construct(self): title = Text('String Input and Output', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color=ORANG...