system stringclasses 1
value | prompt stringlengths 72 1.4k | chosen stringlengths 932 6.43k | rejected stringlengths 170 6.44k | category stringclasses 3
values |
|---|---|---|---|---|
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 (`from manim import *`). Never truncate code and never output... | I need an educational animation that explains the process of matrix multiplication. The visual should begin by showing two matrices side by side - the first matrix is a 2x2 containing the numbers 1, 2 in the first row and 3, 4 in the second row, and the second matrix is also a 2x2 with the numbers 2, 0 in the first row... | ```python
from manim import *
class MatrixMultiplication(Scene):
def construct(self):
# 1. Initial Scene Setup
# Define Matrix A (Left) and Matrix B (Right)
# Enclosed in parentheses is default for Manim's Matrix mobject
matrix_a = Matrix(
[[1, 2], [3, 4]],
e... | ```python
from manim import *
class MatrixMultiplication(Scene):
def construct(self):
# 1. Initial Scene Setup
# Define Matrix A (Left) and Matrix B (Right)
# Enclosed in parentheses is default for Manim's Matrix mobject
matrix_a = Matrix(
[[1, 2], [3, 4]],
e... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Here is the enhanced animation description:
The scene begins with a gray square (regular tetragon) centered on screen, then dynamically transforms it through a series of educational animations: first, the square smoothly morphs into a circle over 2 seconds while a text label "Square → Circle Transformation" fades in b... | ```python
from manim import *
class SquareToCircleTransform(Scene):
def construct(self):
# Create initial square
square = Square(color=GRAY, fill_opacity=1)
square.scale(2)
# Create circle
circle = Circle(color=GRAY, fill_opacity=1)
circle.scale(2)
... | ```python
from manim import *
class SquareToCircleTransform(Scene):
def construct(self):
# Create initial square
square = Square(color=GRAY, fill_opacity=1)
square.scale(2)
# Create circle
circle = Circle(color=GRAY, fill_opacity=1)
circle.scale(2)
... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Can you create an animated educational video that explains how to solve the first order ordinary differential equation y' - 3y = 0 using the separation of variables method, including steps to integrate and solve for y to find the general solution, and display this process step-by-step with equations, while providing br... | ```python
from manim import *
class SolveODE(Scene):
def construct(self):
# --- Configuration ---
text_color = WHITE
eq_color = YELLOW
# Positions
text_pos = UP * 3.5
eq_pos = ORIGIN
# --- Step 1: Initial Equation ---
step1_text = Text("Give... | ```python
from manim import *
class SolveODE(Scene):
def construct(self):
# --- Configuration ---
text_color = WHITE
eq_color = YELLOW
# Positions
text_pos = UP * 3.5
eq_pos = ORIGIN
# --- Step 1: Initial Equation ---
step1_text = Text("Give... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Explain the concept of quotient spaces in linear algebra through a Manim animation. | ```python
from manim import *
class QuotientSpaces(Scene):
def construct(self):
# Title
title = Text("Quotient Spaces in Linear Algebra", font_size=36)
title.to_edge(UP)
self.play(Write(title))
self.wait(1)
self.play(FadeOut(title))
# Axes
axes = Axe... | ```python
from manim import *
class QuotientSpaces(Scene):
def construct(self):
# Title
title = Text("Quotient Spaces in Linear Algebra", font_size=36)
title.to_edge(UP)
self.play(Write(title))
self.wait(1)
self.play(FadeOut(title))
# Axes
axes = Axe... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | How would you create a step-by-step animated explanation of solving the integral of e^(2x) using u-substitution, with text instructions and the final solution, utilizing a mathematical animation tool? | ```python
from manim import *
class IntegralUSubstitution(Scene):
def construct(self):
# Define consistent color scheme for pedagogical clarity
COLOR_X = BLUE
COLOR_U = YELLOW
COLOR_DIFF = GREEN
COLOR_CONST = ORANGE
COLOR_RESULT = GREEN
# --- Step 1: Display... | ```python
from manim import *
class IntegralUSubstitution(Scene):
def construct(self):
# Define consistent color scheme for pedagogical clarity
COLOR_X = BLUE
COLOR_U = YELLOW
COLOR_DIFF = GREEN
COLOR_CONST = ORANGE
COLOR_RESULT = GREEN
# --- Step 1: Display... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Show the different types of simple harmonic motion (e.g., pendulum, spring). | ```python
from manim import *
class SimpleHarmonicMotion(Scene):
def construct(self):
title = Text("Simple Harmonic Motion", font_size=36).to_edge(UP)
pendulum_explanation = Text(
"Pendulum motion",
font_size=24
).next_to(title, DOWN)
self.play(Write(title))... | ```python
from manim import *
class SimpleHarmonicMotion(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Could you create an animated diagram that visually represents the layers of a convolutional neural network, including the input image, convolutional layer, max pooling, ReLU activation, fully connected layer, and output, with arrows between each layer to indicate the flow of data processing, all centered on the screen ... | ```python
from manim import *
class CNNArchitecture(Scene):
def construct(self):
# Define colors for each layer type
colors = {
"input": BLUE_C,
"conv": GREEN,
"pool": ORANGE,
"relu": YELLOW,
"fc": RED,
"output": PURPLE,
... | ```python
from manim import *
class CNNArchitecture(Scene):
def construct(self):
# Define colors for each layer type
colors = {
"input": BLUE_C,
"conv": GREEN,
"pool": ORANGE,
"relu": YELLOW,
"fc": RED,
"output": PURPLE,
... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | I'm learning numerical methods and want to see Euler's method compared to the exact solution for a simple ODE. Create a side-by-side animation: integrate dy/dt = f(y,t) from t0 to t1 using Euler steps, while plotting the exact solution, with the error evolving in time. Show step-by-step updates, a zoom into the last fe... | ```python
from manim import *
import math
class EulerMethodComparison(Scene):
def construct(self):
title = Text('Euler Method Comparison for ODEs', font_size=40)
subtitle = Text('Which method gives the smoothest ride?', font_size=24).next_to(title, DOWN)
self.play(Write(title), Write(subti... | ```python
from manim import *
import math
class EulerMethodComparison(Scene):
def construct(self):
title = Text('Euler Method Comparison for ODEs', font_size=40)
subtitle = Text('Which method gives the smoothest ride?', font_size=24).next_to(title, DOWN)
self.play(Write(title), Write(subti... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation that illustrates the convergence of a mathematical series using the p-test? The animation should display the series sum from n=1 to infinity of 1/n^2, then introduce the concept of the p-test for convergence with the condition p > 1. Afterwards, it should show that for our series... | ```python
from manim import *
class PTestConvergence(Scene):
def construct(self):
# Step 1: Display the Series
series_label = Text("Consider the Series:", font_size=36)
series_expr = MathTex(r"\sum_{n=1}^{\infty} \frac{1}{n^2}", font_size=60)
series_group = VGroup(series_la... | ```python
from manim import *
class PTestConvergence(Scene):
def construct(self):
# Step 1: Display the Series
series_label = Text("Consider the Series:", font_size=36)
series_expr = MathTex(r"\sum_{n=1}^{\infty} \frac{1}{n^2}", font_size=60)
series_group = VGroup(series_la... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation that visually explains the area of a circle formula using the Python library ManimCE? I would like to see the equation "A = πr^2" written out, followed by a brief text explanation about the area being that of a circle with a radius 'r'. Then, could you highlight the 'r^2' part in... | ```python
from manim import *
class CircleAreaExplanation(Scene):
def construct(self):
# 1. Display the equation A = \pi r^2
# Split into parts to allow highlighting specific terms later
equation = MathTex("A", "=", "\\pi", "r", "^2", font_size=60)
self.play(Write(equation))
... | ```python
from manim import *
class CircleAreaExplanation(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Could you create an animated video using a math visualization tool that shows the process of calculating the area under the curve of the function 0.1x^2 - 1 from x = -3 to x = 3, including the graph of the function, the integral expression, and the step-by-step solution of the integral, ending with the numerical answer... | ```python
from manim import *
class AreaUnderCurveCalculation(Scene):
def construct(self):
# 1. Setup Axes
axes = Axes(
x_range=[-4, 4, 1],
y_range=[-2, 2, 1],
axis_config={"include_numbers": True, "include_tip": False},
x_axis_config={"numbers_with_e... | ```python
from manim import *
class AreaUnderCurveCalculation(Scene):
def construct(self):
# 1. Setup Axes
axes = Axes(
x_range=[-4, 4, 1],
y_range=[-2, 2, 1],
axis_config={"include_numbers": True, "include_tip": False},
x_axis_config={"numbers_with_e... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | 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 TrigIdentityExplanation(Scene):
def construct(self):
# --- Phase 1: Misconception ---
# Display the incorrect equation
incorrect_eq = MathTex(r"\sin(x) + \cos(x) = 1", font_size=48)
self.play(Write(incorrect_eq))
self.wa... | ```python
from manim import *
import numpy as np
class TrigIdentityExplanation(Scene):
def construct(self):
# --- Phase 1: Misconception ---
# Display the incorrect equation
incorrect_eq = MathTex(r"\sin(x) + \cos(x) = 1", font_size=48)
self.play(Write(incorrect_eq))
self.wa... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Could you create an educational animation that visually explains how to find the area under the curve of the function f(x) = x^2 from x=1 to x=3, by demonstrating the process of setting up the integral, evaluating it step by step, and concluding with the exact numerical value of the area? | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# --- 1. Setup Axes and Plot ---
axes = Axes(
x_range=[0, 4, 1],
y_range=[0, 10, 2],
axis_config={"include_tip": True},
x_axis_config={"numbers_to_include": [1, 3]},
... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# --- 1. Setup Axes and Plot ---
axes = Axes(
x_range=[0, 4, 1],
y_range=[0, 10, 2],
axis_config={"include_tip": True},
x_axis_config={"numbers_to_include": [1, 3]},
... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Could you create an educational animation that visually explains how to calculate the area under a curve using a definite integral? Specifically, show the graph of the function f(x)=x^2, highlight the area under the curve between x=0 and x=2, and step by step, display the integration process to find the exact numerical... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# 1. Setup the Coordinate System
axes = Axes(
x_range=[0, 3, 1],
y_range=[0, 5, 1],
axis_config={"include_tip": True, "include_numbers": True},
x_axis_config={"numbers_to_... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# 1. Setup the Coordinate System
axes = Axes(
x_range=[0, 3, 1],
y_range=[0, 5, 1],
axis_config={"include_tip": True, "include_numbers": True},
x_axis_config={"numbers_to_... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | I would like an educational animation that visualizes the concept of finding the area under a curve using integration. Can you create a video that starts by displaying the function f(x) = x^2, then shows the corresponding integral from 0 to 2, followed by drawing the function’s curve and shading the area under the curv... | ```python
from manim import *
class AreaUnderCurveIntegration(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. Setup: Initialize axes and define the function f(x) = x^2
# ------------------------------------------------------------------... | ```python
from manim import *
class AreaUnderCurveIntegration(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. Setup: Initialize axes and define the function f(x) = x^2
# ------------------------------------------------------------------... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Please create an educational animation that explains the process of evaluating a basic definite integral in calculus. Start by showing the integral of x cubed from 0 to 2. Then, demonstrate step by step how to apply the power rule of integration. After that, show how to evaluate the integral from the lower limit to the... | ```python
from manim import *
class DefiniteIntegralEvaluation(Scene):
def construct(self):
# --- Colors and Styles ---
MATH_COLOR = BLUE_B
LIMIT_COLOR = YELLOW
RESULT_COLOR = GREEN
# ------------------------------------------------------------------
# Step ... | ```python
from manim import *
class DefiniteIntegralEvaluation(Scene):
def construct(self):
# --- Colors and Styles ---
MATH_COLOR = BLUE_B
LIMIT_COLOR = YELLOW
RESULT_COLOR = GREEN
# ------------------------------------------------------------------
# Step ... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation that visually demonstrates the steps to evaluate a double integral in polar coordinates, starting with the setup of the integral, then showing how to integrate with respect to the radial coordinate r first and finally integrating with respect to the angular coordinate theta to fi... | ```python
from manim import *
class PolarDoubleIntegral(Scene):
def construct(self):
# --- Title ---
title = Text("Evaluating a Double Integral in Polar Coordinates", font_size=36)
title.to_edge(UP)
self.play(Write(title))
self.wait(1)
# --- Step 1: Setup of the Int... | ```python
from manim import *
class PolarDoubleIntegral(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | In what ways can Boolean algebras be used to simplify logical circuit designs? | ```python
from manim import *
class BooleanAlgebraCircuits(Scene):
def construct(self):
# Set colors to match requested palette
gate_color1 = "#3498db" # blue
gate_color2 = "#2ecc71" # green
# Title
title = Text("Decoding Circuits: Boolean Algebras at Work", font_... | ```python
from manim import *
class BooleanAlgebraCircuits(Scene):
def construct(self):
# Set colors to match requested palette
gate_color1 = "#3498db" # blue
gate_color2 = "#2ecc71" # green
# Title
title = Text("Decoding Circuits: Boolean Algebras at Work", font_... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Here’s the enhanced animation description, which includes all the original features while adding new elements for a richer learning experience:
The animation begins by displaying the formula *f(x) = eˣ* with a smooth *Write* effect. Next, a title appears at the top: *"Plotting the Exponential Function"*, followed by... | ```python
from manim import *
class ExponentialFunctionScene(Scene):
def construct(self):
# Display the function formula
func_tex = MathTex("f(x) = e^x").scale(1.5)
self.play(Write(func_tex))
self.wait(1)
# Add title
title = Text("Plotting the Exponential Fu... | ```python
from manim import *
class ExponentialFunctionScene(Scene):
def construct(self):
# Display the function formula
func_tex = MathTex(r"\text{Label:"} + "f(x) = e^x").scale(1.5)
self.play(Write(func_tex))
self.wait(1)
# Add title
title = Text("Plotting... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Could you create an educational animation that demonstrates the principles of Fourier series, including the visualization of a simple piecewise function, its mathematical definition, the coefficients involved, and a statement on the purpose of Fourier series in approximating periodic functions, ensuring there's a clear... | ```python
from manim import *
import numpy as np
class FourierSeriesAnimation(Scene):
def construct(self):
# --- 1. Setup Axes ---
axes = Axes(
x_range=[-2 * PI, 2 * PI, PI],
y_range=[-1.5, 1.5, 1],
x_length=10,
y_length=5,
axis_config={"i... | ```python
from manim import *
import numpy as np
class FourierSeriesAnimation(Scene):
def construct(self):
# --- 1. Setup Axes ---
axes = Axes(
x_range=[-2 * PI, 2 * PI, PI],
y_range=[-1.5, 1.5, 1],
x_length=10,
y_length=5,
axis_config={"i... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | 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 IntegralPowerRule(Scene):
def construct(self):
# --- 1. Setup Axes and Function Plot ---
# Create axes with appropriate ranges to fit x^3 from 0 to 2
axes = Axes(
x_range=[0, 2.5, 0.5],
y_range=[0, 10, 2],
x_length=5,
... | ```python
from manim import *
class IntegralPowerRule(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation using Manim that visually demonstrates how to calculate the area between the curves \( y = x^2 \) and \( y = 0.8x^2 + 1 \) from \( x = 0 \) to \( x = 2 \)? I'd like the animation to include the graphing of the two functions with labeled axes, shading of the area between the curve... | ```python
from manim import *
class AreaBetweenCurves(Scene):
def construct(self):
# 1. Setup Axes
axes = Axes(
x_range=[-0.5, 3, 0.5],
y_range=[-0.5, 5, 1],
x_length=6,
y_length=5,
axis_config={"include_tip": True},
x_axis_con... | ```python
from manim import *
class AreaBetweenCurves(Scene):
def construct(self):
# 1. Setup Axes
axes = Axes(
x_range=[-0.5, 3, 0.5],
y_range=[-0.5, 5, 1],
x_length=6,
y_length=5,
axis_config={"include_tip": True},
x_axis_con... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation that introduces and solves the integral of e to the power of x, detailing each step of the process and highlighting the constant of integration? | ```python
from manim import *
class IntegralOfExp(Scene):
def construct(self):
# --- Part 1: Introduction to the function e^x ---
title = Text("Integrating the Exponential Function", font_size=42)
title.to_edge(UP)
# Create axes for the graph of e^x
axes = Axes(
... | ```python
from manim import *
class IntegralOfExp(Scene):
def construct(self):
# --- Part 1: Introduction to the function e^x ---
title = Text("Integrating the Exponential Function", font_size=42)
title.to_edge(UP)
# Create axes for the graph of e^x
axes = Axes(
... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation that visually demonstrates how to calculate the derivative of the cubic function f(x) = x^3 + 3x^2 + 3x + 1 step by step using the power rule, including both the initial mathematical function and the simplified form of its derivative, while also providing textual explanations for... | ```python
from manim import *
class CubicDerivative(Scene):
def construct(self):
# --- Configuration ---
color_term1 = BLUE
color_term2 = GREEN
color_term3 = YELLOW
color_term4 = RED
color_explanation = WHITE
# --- Step 1: Define the Initial Function... | ```python
from manim import *
class CubicDerivative(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Could you create an educational animation that illustrates the concept of Simple Harmonic Motion (SHM), starting with the display of its differential equation, followed by an explanation and introduction of angular frequency, and then showing how the equation is rewritten using angular frequency? Additionally, can you ... | ```python
from manim import *
import numpy as np
class SimpleHarmonicMotion(Scene):
def construct(self):
# Define colors for pedagogical clarity
COLOR_X = BLUE
COLOR_T = GREEN
COLOR_OMEGA = YELLOW
COLOR_PHI = RED
COLOR_A = ORANGE
COLOR_TEXT = WHITE
#... | ```python
from manim import *
import numpy as np
class SimpleHarmonicMotion(Scene):
def construct(self):
# Define colors for pedagogical clarity
COLOR_X = BLUE
COLOR_T = GREEN
COLOR_OMEGA = YELLOW
COLOR_PHI = RED
COLOR_A = ORANGE
COLOR_TEXT = WHITE
#... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | I'd like to create an educational animation that first displays the partial differential equation known as the wave equation. Then, I want to show a brief text description explaining that this equation describes the propagation of waves. After this, I want to transition to showing the general solution of the wave equat... | ```python
from manim import *
import numpy as np
class WaveEquationVisualization(Scene):
def construct(self):
# ------------------------------------------------------------------
# Step 1: Display the Wave Equation
# ------------------------------------------------------------------
... | ```python
from manim import *
class WaveEquationVisualization(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | 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 RecursionVsIteration(Scene):
def construct(self):
title = Text('Recursion vs Iteration', font_size=34, color=WHITE, weight=BOLD)
title.to_edge(UP, buff=0.5)
title_line = Line(LEFT, RIGHT, color=ORA... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class RecursionVsIteration(Scene):
def construct(self):
title = Text('Recursion vs Iteration', font_size=34, color=WHITE, weight=BOLD)
title.to_edge(UP, buff=0.5)
title_line = Line(LEFT, RIGHT, color=ORA... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | I would like to create an educational animation that visually demonstrates the concept of finding the area under a curve on a graph. Specifically, I want to illustrate the area under the curve of the function f(x) = x^2 between the range of x from 0 to 2. The graph should be plotted with axes and labeled appropriately.... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# 1. Graph Setup
axes = Axes(
x_range=[0, 3, 1],
y_range=[0, 5, 1],
x_length=5,
y_length=4,
axis_config={"include_tip": True},
x_axis_config={"numb... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Could you create an animated visualization of a simple feedforward neural network with four layers, where the first layer has 4 neurons, the second layer has 6 neurons, the third again has 4 neurons, and the final output layer has just a single neuron? Additionally, could you animate a forward pass through the network ... | ```python
from manim import *
class NeuralNetworkForwardPass(Scene):
def construct(self):
# --- Configuration ---
# Architecture: Input(4) -> Hidden1(6) -> Hidden2(4) -> Output(1)
layer_sizes = [4, 6, 4, 1]
layer_colors = [BLUE, TEAL, GREEN, RED]
layer_names = ["Input", "Hid... | ```python
from manim import *
class NeuralNetworkForwardPass(Scene):
def construct(self):
# --- Configuration ---
# Architecture: Input(4) -> Hidden1(6) -> Hidden2(4) -> Output(1)
layer_sizes = [4, 6, 4, 1]
layer_colors = [BLUE, TEAL, GREEN, RED]
layer_names = ["Input", "Hid... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Could you create an educational animation that visually explains how to calculate the area under the curve of a simple quadratic function, f(x) = x^2, specifically between the interval x=1 and x=3, using integration? The animation should show the function and its corresponding graph, the area under the graph being high... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# --- Configuration and Setup ---
# Create axes on the left side to leave room for equations
axes = Axes(
x_range=[0, 4, 1],
y_range=[0, 10, 2],
x_length=5.5,
y_le... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# --- Configuration and Setup ---
# Create axes on the left side to leave room for equations
axes = Axes(
x_range=[0, 4, 1],
y_range=[0, 10, 2],
x_length=5.5,
y_le... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Could you create an educational animation that visually explains how to calculate the area under a curve using a definite integral? Specifically, show the graph of the function f(x)=x^2, highlight the area under the curve between x=0 and x=2, and step by step, display the integration process to find the exact numerical... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# --- 1. Setup Coordinate System ---
# Shift axes left to make room for the mathematical derivation on the right
axes = Axes(
x_range=[-1, 3, 1],
y_range=[-1, 5, 1],
axis_conf... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | I'd like an animated video that explains the process of evaluating a definite integral of a simple power function from two different points, a and b. The video should start by introducing the integral of x with respect to x between the limits a and b. I want it to then display a clear explanation of what the boundaries... | ```python
from manim import *
class EvaluateDefiniteIntegral(Scene):
def construct(self):
# Configure colors for visual consistency
COLOR_FUNC = BLUE
COLOR_LIMIT_A = GREEN
COLOR_LIMIT_B = RED
COLOR_RESULT = YELLOW
COLOR_TEXT = WHITE
# =======================... | ```python
from manim import *
class EvaluateDefiniteIntegral(Scene):
def construct(self):
# Configure colors for visual consistency
COLOR_FUNC = BLUE
COLOR_LIMIT_A = GREEN
COLOR_LIMIT_B = RED
COLOR_RESULT = YELLOW
COLOR_TEXT = WHITE
# =======================... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | 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):
def construct(self):
# --- Configuration ---
text_color = BLUE
equation_color = WHITE
highlight_color = YELLOW
# --- Step 1: Introduction and Differential Equation ---
# Guidance text at the top
... | ```python
from manim import *
class SolveFirstOrderODE(Scene):
def construct(self):
# --- Configuration ---
text_color = BLUE
equation_color = WHITE
highlight_color = YELLOW
# --- Step 1: Introduction and Differential Equation ---
# Guidance text at the top
... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Can you create an animated video in which you show the graph of the function f(x) = x^2 with its axes labeled, highlight the area under the curve between x=1 and x=3, and then show on screen the integral representation of the calculation of that area along with the step-by-step analytical solution to the integral, fina... | ```python
from manim import *
class IntegralAreaScene(Scene):
def construct(self):
# 1. Scene Setup: Axes and Labels
axes = Axes(
x_range=[0, 4, 1],
y_range=[0, 10, 2],
x_length=5,
y_length=5,
axis_config={"include_tip": True, "numbers_to_... | ```python
from manim import *
class IntegralAreaScene(Scene):
def construct(self):
# 1. Scene Setup: Axes and Labels
axes = Axes(
x_range=[0, 4, 1],
y_range=[0, 10, 2],
x_length=5,
y_length=5,
axis_config={"include_tip": True, "numbers_to_... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | I'd like to create an educational animation that explains the process of solving a third-order linear homogeneous differential equation with constant coefficients. Can you illustrate the steps starting from the initial equation y''' - 3y'' + 3y' - y = 0, converting it into the characteristic equation r^3 - 3r^2 + 3r - ... | ```python
from manim import *
from utils import *
config.frame_size = 1080, 1920
config.frame_width = 9
config.frame_height = 16
BACKGROUND_COLOR = "#faf4e1"
TEXT_COLOR = "#434343"
LIGHT_RED_COLOR = "#f55e61"
LIGHT_GREEN_COLOR = "#5fcb50"
LIGHT_BLUE_COLOR = "#408ef5"
LIGHT_ORANGE_COLOR = "#e3883d"
LIGHT_PURPLE_COLOR... | ```python
from manim import *
from utils import *
config.frame_size = 1080, 1920
config.frame_width = 9
config.frame_height = 16
BACKGROUND_COLOR = "#faf4e1"
TEXT_COLOR = "#434343"
LIGHT_RED_COLOR = "#f55e61"
LIGHT_GREEN_COLOR = "#5fcb50"
LIGHT_BLUE_COLOR = "#408ef5"
LIGHT_ORANGE_COLOR = "#e3883d"
LIGHT_PURPLE_COLOR... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | I would like to create an animation that shows a chemical reaction where an electron and an oxygen molecule come together to form a metal oxide with the formula \( \text{Me}_2\text{O}_3 \). The electron and the oxygen molecule should appear on screen, move together, and then transform into the metal oxide on the right ... | ```python
from manim import *
class MetalOxideFormation(Scene):
def construct(self):
# --- Configuration & Colors ---
# Standard CPK coloring for chemical accuracy
COLOR_OXYGEN = RED
COLOR_METAL = GREY_B
COLOR_ELECTRON = BLUE
COLOR_TEXT = WHITE
# --- 1. Obje... | ```python
from manim import *
class MetalOxideFormation(Scene):
def construct(self):
# --- Configuration & Colors ---
# Standard CPK coloring for chemical accuracy
COLOR_OXYGEN = RED
COLOR_METAL = GREY_B
COLOR_ELECTRON = BLUE
COLOR_TEXT = WHITE
# --- 1. Obje... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Can you create an animation that visually demonstrates the process of solving a first-order linear ordinary differential equation (ODE), specifically showing the ODE y' - 3y = 0, and then methodically solving it by using an integrating factor, resulting in the general solution y(x) = Ce^(3x)? The steps should include w... | ```python
from manim import *
class ODESolutionScene(Scene):
def construct(self):
# Define consistent colors and positions for clarity
CUE_COLOR = BLUE_B
MATH_COLOR = WHITE
HIGHLIGHT_COLOR = YELLOW
EQ_POS = UP * 0.5
# ------------------------------------------------... | ```python
from manim import *
class ODESolutionScene(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Can you create an animated visual explanation showing the steps to evaluate the triple integral of the function xyz over the cube with bounds 0 to 1 for all variables? Include the step-by-step process, starting with the integration with respect to x, then y, and finally z, showing the intermediate results up to the fin... | ```python
from manim import *
class TripleIntegralExplanation(ThreeDScene):
def construct(self):
# Define distinct colors for variables and results
COLOR_X = BLUE
COLOR_Y = GREEN
COLOR_Z = RED
COLOR_RESULT = YELLOW
# --- 3D Setup: Domain Visualization ---
ax... | ```python
from manim import *
class TripleIntegralExplanation(ThreeDScene):
def construct(self):
# Define distinct colors for variables and results
COLOR_X = BLUE
COLOR_Y = GREEN
COLOR_Z = RED
COLOR_RESULT = YELLOW
# --- 3D Setup: Domain Visualization ---
ax... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | How would you create a step-by-step animated explanation of solving the integral of e^(2x) using u-substitution, with text instructions and the final solution, utilizing a mathematical animation tool? | ```python
from manim import *
class USubstitutionIntegral(Scene):
def construct(self):
# Color definitions
color_u = BLUE
color_du = GREEN
color_final = YELLOW
# --- Title and Problem Statement ---
title = Text("Integration by U-Substitution", font_size=36)
... | ```python
from manim import *
class USubstitutionIntegral(Scene):
def construct(self):
# Color definitions
color_u = BLUE
color_du = GREEN
color_final = YELLOW
# --- Title and Problem Statement ---
title = Text("Integration by U-Substitution", font_size=36)
... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | How can I create an animated video that visually demonstrates a neural network with 4 layers having 4, 7, 4, and 2 neurons respectively, and shows the process of the information being passed forward through the network? | ```python
from manim import *
class NeuralNetworkForwardProp(Scene):
def construct(self):
# --- Configuration ---
layer_sizes = [4, 7, 4, 2]
layer_colors = [BLUE, TEAL, GREEN, RED]
edge_color = GRAY_A
signal_color = YELLOW
# Spacing and sizing
x_spac... | ```python
from manim import *
class NeuralNetworkForwardProp(Scene):
def construct(self):
# --- Configuration ---
layer_sizes = [4, 7, 4, 2]
layer_colors = [BLUE, TEAL, GREEN, RED]
edge_color = GRAY_A
signal_color = YELLOW
# Spacing and sizing
x_spac... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Create an educational animation that explains how to calculate the area under the curve y=x^2 from x=0 to x=2 using definite integrals. Start by showing the function on a graph with labeled axes, and then highlight the area under the curve between these two points. Have a textual explanation appear that indicates this ... | ```python
from manim import *
class AreaUnderCurveExplanation(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. Graph Initialization
# ------------------------------------------------------------------
# Create the coordinate syst... | ```python
from manim import *
class AreaUnderCurveExplanation(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Here’s an enhanced version of the animation that retains all the original features while adding significant new elements:
The enhanced animation begins by drawing a vibrant Lissajous curve with a thick gradient stroke (yellow to dark yellow) atop a subtle black outline, just like the original, but now introduces a dyn... | ```python
from manim import *
class EnhancedLissajous(Scene):
def construct(self):
# Create coordinate system
axes = Axes(
x_range=[-1.5, 1.5, 0.5],
y_range=[-1.5, 1.5, 0.5],
x_length=7,
y_length=7,
axis_config={"color": BLUE},
)
... | ```python
from manim import *
class EnhancedLissajous(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | 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 DecodingSearchStrategies(Scene):
def construct(self):
title = Text('Decoding Search Strategies', font_size=34, color=WHITE, weight=BOLD)
title.to_edge(UP, buff=0.5)
title_line = Line(LEFT, RIGHT, c... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class DecodingSearchStrategies(Scene):
def construct(self):
title = Text('Decoding Search Strategies', font_size=34, color=WHITE, weight=BOLD)
title.to_edge(UP, buff=0.5)
title_line = Line(LEFT, RIGHT, c... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | I'm learning model introspection and want to see a dynamic summary table being generated like torchinfo, expanding rows for each layer with parameter counts.
Start with a compact header and progressively reveal layers showing shapes, channels, and total parameters.
Highlight how the total parameter count grows as the n... | ```python
from manim import *
class ModelIntrospectionDynamics(Scene):
def construct(self):
title = Text('Model Introspection Dynamics', font_size=40)
subtitle = Text('Understanding How AI Models Think', font_size=24)
subtitle.next_to(title, DOWN)
title_group = VGroup(title, subtit... | ```python
from manim import *
class ModelIntrospectionDynamics(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | I would like to create an educational animation that demonstrates how to calculate the area between two curves, specifically between f(x) = 3x + 2 and g(x) = x^2 - 1, from x=1 to x=3. I want the animation to show the two equations and then step by step, display the integration process, including setting up the integral... | ```python
from manim import *
import numpy as np
class AreaBetweenCurves(Scene):
def construct(self):
# --- Configuration ---
f_func = lambda x: 3 * x + 2
g_func = lambda x: x**2 - 1
x_start, x_end = 1, 3
color_f = BLUE
color_g = RED
color_area = YEL... | ```python
from manim import *
import numpy as np
class AreaBetweenCurves(Scene):
def construct(self):
# --- Configuration ---
f_func = lambda x: 3 * x + 2
g_func = lambda x: x**2 - 1
x_start, x_end = 1, 3
color_f = BLUE
color_g = RED
color_area = YEL... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Please create an educational animation that explains Euler's Formula and visually demonstrates how it connects complex exponentials with trigonometric functions on a complex plane. The animation should start with writing out Euler's Formula, followed by a brief written explanation of its significance in complex analysi... | ```python
from manim import *
class EulersFormulaAnimation(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. INTRODUCTION
# ------------------------------------------------------------------
# Display the formula clearly at the to... | ```python
from manim import *
class EulersFormulaAnimation(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Here’s an enhanced version of the animation with additional features:
The scene begins with a vertical arrangement of three text elements ("This is a sample," "of moving," "FrameBoxes") displayed in sequence. Each text is dynamically highlighted by a colored rectangle (blue, green, red) that smoothly transforms from... | ```python
from manim import *
class EnhancedFrameBoxAnimation(Scene):
def construct(self):
# Create text elements
texts = [
Text("This is a sample", font_size=36),
Text("of moving", font_size=36),
Text("FrameBoxes", font_size=36)
]
# Arra... | ```python
from manim import *
class EnhancedFrameBoxAnimation(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation using math visualization software that shows the area under the curve of a simple quadratic function from x=2 to x=4, including the axes, function curve, and a labeled shaded area representing integral calculation? Also, after showing the graph, I would like a brief written expla... | ```python
from manim import *
class DefiniteIntegralVisualization(Scene):
def construct(self):
# 1. Scene Setup: Initialize Axes
# y_range accommodates f(4) = 16 comfortably
axes = Axes(
x_range=[0, 5, 1],
y_range=[0, 20, 5],
x_length=7,
y_len... | ```python
from manim import *
class DefiniteIntegralVisualization(Scene):
def construct(self):
# 1. Scene Setup: Initialize Axes
# y_range accommodates f(4) = 16 comfortably
axes = Axes(
x_range=[0, 5, 1],
y_range=[0, 20, 5],
x_length=7,
y_len... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | 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 IntegralCalculation(Scene):
def construct(self):
# 1. Display Function
func_label = MathTex(r"f(x) = x^2", font_size=40).to_edge(UP)
self.play(Write(func_label))
self.wait(0.5)
# 2. Plot Graph
axes = Axes(
x_range=[-2.... | ```python
from manim import *
class IntegralCalculation(Scene):
def construct(self):
# 1. Display Function
func_label = MathTex(r"\text{Label:"} + r"f(x) = x^2", font_size=40).to_edge(UP)
self.play(Write(func_label))
self.wait(0.5)
# 2. Plot Graph
axes = Axes(
... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Here’s an enhanced version of the animation with additional features:
The animation begins by displaying an input sequence of numbers (1, 2, 3, 4, 5) as MathTex objects arranged horizontally, which are then moved to the top of the screen. A neural network with an LSTM layer is introduced, featuring an input layer, an ... | ```python
from manim import *
import numpy as np
class EnhancedLSTMAnimation(Scene):
def construct(self):
# Input sequence
input_numbers = [1, 2, 3, 4, 5]
input_tex = VGroup(*[MathTex(str(num)) for num in input_numbers])
input_tex.arrange(RIGHT, buff=0.7)
input_label = Text(... | ```python
from manim import *
class EnhancedLSTMAnimation(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | 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 *
import numpy as np
class AreaUnderCurve(Scene):
def construct(self):
# --------------------------------------------------------------
# 1. Setup Axes and Function Plot
# --------------------------------------------------------------
axes = Axes(
... | ```python
from manim import *
import numpy as np
class AreaUnderCurve(Scene):
def construct(self):
# --------------------------------------------------------------
# 1. Setup Axes and Function Plot
# --------------------------------------------------------------
axes = Axes(
... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | I would like to create an animation that shows a chemical reaction where an electron and an oxygen molecule come together to form a metal oxide with the formula \( \text{Me}_2\text{O}_3 \). The electron and the oxygen molecule should appear on screen, move together, and then transform into the metal oxide on the right ... | ```python
from manim import *
class MetalOxideFormation(Scene):
def construct(self):
# --- Configuration & Colors ---
ELECTRON_COLOR = YELLOW
OXYGEN_COLOR = RED
METAL_COLOR = GREY
PRODUCT_COLOR = GOLD
TEXT_COLOR = WHITE
# --- Object Creation ---
... | ```python
from manim import *
class MetalOxideFormation(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation using ManimCE that shows how to find the area under the curve y=x^2 from x=0 to x=2, demonstrating the concept graphically with Riemann rectangles and analytically by calculating the definitive integral step by step, and displaying the final area in square units? | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# --- 1. Graphical Visualization Setup ---
# Create axes and labels
axes = Axes(
x_range=[0, 2.5, 0.5],
y_range=[0, 5, 1],
axis_config={"include_tip": True, "include_numbers":... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# --- 1. Graphical Visualization Setup ---
# Create axes and labels
axes = Axes(
x_range=[0, 2.5, 0.5],
y_range=[0, 5, 1],
axis_config={"include_tip": True, "include_numbers":... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Create a 30-second Manim scene that explains a decision boundary crossing with a zoom window. Use an implicit boundary, a moving probe, and readable status panels so the class flip is obvious even near the crossing. | ```python
from manim import *
class ZoomedDecisionMarginStory(ZoomedScene):
def __init__(self, **kwargs):
super().__init__(zoom_factor=0.42, zoomed_display_height=2.5, zoomed_display_width=4.2, image_frame_stroke_width=9, zoomed_camera_config={"default_frame_stroke_width": 3}, **kwargs)
def construct(... | ```python
from manim import *
class ZoomedDecisionMarginStory(ZoomedScene):
def __init__(self, **kwargs):
super().__init__(zoom_factor=0.42, zoomed_display_height=2.5, zoomed_display_width=4.2, image_frame_stroke_width=9, zoomed_camera_config={"default_frame_stroke_width": 3}, **kwargs)
def construct(... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Here’s an enhanced version of the animation with additional features:
The animation begins by creating a unit circle and a sine curve, both displayed in sequence. A dot is then introduced and animated to move around the circle at a controlled speed, with its position dynamically updating. Simultaneously, a dashed re... | ```python
from manim import *
class EnhancedSineWave(Scene):
def construct(self):
# Create axes
axes = Axes(
x_range=[-1, 10, 1],
y_range=[-1.5, 1.5, 1],
axis_config={"color": BLUE},
)
axes_labels = axes.get_axis_labels(x_label="x", y_label="y")
... | ```python
from manim import *
class EnhancedSineWave(Scene):
def construct(self):
# Create axes
axes = Axes(
x_range=[-1, 10, 1],
y_range=[-1.5, 1.5, 1],
axis_config={"color": BLUE},
)
axes_labels = axes.get_axis_labels(x_label="x", y_label="y")
... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation that visually presents the wave equation, explains it briefly, shows the wave speed within the equation, introduces d'Alembert's solution formula, and finally gives a specific example of a sinusoidal traveling wave? | ```python
from manim import *
import numpy as np
class WaveEquationEducation(Scene):
def construct(self):
# ---------------------------------------------------------
# 1. Visually present the wave equation
# ---------------------------------------------------------
# Separating argu... | ```python
from manim import *
class WaveEquationEducation(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Can you create an animation that visually explains the process of solving a triple integral, specifically integrating the function xyz over the unit cube [0,1]³ with respect to x, then y, and lastly z, including step-by-step explanations for each integration stage? | ```python
from manim import *
class TripleIntegralExplanation(ThreeDScene):
def construct(self):
# Configure the camera angle for a clear 3D perspective
self.set_camera_orientation(phi=70 * DEGREES, theta=-45 * DEGREES)
# ------------------------------------------------------------------
... | ```python
from manim import *
class TripleIntegralExplanation(ThreeDScene):
def construct(self):
# Configure the camera angle for a clear 3D perspective
self.set_camera_orientation(phi=70 * DEGREES, theta=-45 * DEGREES)
# ------------------------------------------------------------------
... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | What geometric properties of orthogonal matrices make them important in QR decomposition, and can they be visualized through transformations? | ```python
from manim import *
class QRDecompositionScene(Scene):
def construct(self):
# Title screen
title = Text("Unraveling QR Decomposition:", font_size=36)
subtitle = Text("The Magic of Orthogonal Matrices", font_size=30)
title_group = VGroup(title, subtitle).arrange(DOWN)
... | ```python
from manim import *
class QRDecompositionScene(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Could you please create an educational animation using Manim that visually explains the process of evaluating a double integral in polar coordinates? Specifically, I want to show the step-by-step solution to the integral from 0 to pi for theta and from 0 to 1 for r, of the function r dr dtheta. The steps should include... | ```python
from manim import *
class PolarDoubleIntegral(Scene):
def construct(self):
# Configure consistent styles
text_style = {"font_size": 28, "color": BLUE}
math_style = {"font_size": 40}
# ------------------------------------------------------------------
# Ste... | ```python
from manim import *
class PolarDoubleIntegral(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Create a 30-second ZoomedScene that follows a curve up to a sharp peak, zooms into the peak region, and uses a small table to distinguish approach, peak, and release phases. | ```python
from manim import *
class ZoomedPeakTableVariation(ZoomedScene):
def __init__(self, **kwargs):
super().__init__(zoom_factor=0.4, zoomed_display_height=2.3, zoomed_display_width=4.0, image_frame_stroke_width=10, zoomed_camera_config={"default_frame_stroke_width": 3}, **kwargs)
def construct(s... | ```python
from manim import *
class ZoomedPeakTableVariation(ZoomedScene):
def __init__(self, **kwargs):
super().__init__(zoom_factor=0.4, zoomed_display_height=2.3, zoomed_display_width=4.0, image_frame_stroke_width=10, zoomed_camera_config={"default_frame_stroke_width": 3}, **kwargs)
def construct(s... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation that visually presents the wave equation, explains it briefly, shows the wave speed within the equation, introduces d'Alembert's solution formula, and finally gives a specific example of a sinusoidal traveling wave? | ```python
from manim import *
import numpy as np
class WaveEquationVisualization(Scene):
def construct(self):
# --- Part 1: Visually present the standard wave equation ---
title = Text("The Wave Equation", font_size=48).to_edge(UP)
self.play(Write(title))
self.wait(1)
# Spl... | ```python
from manim import *
import numpy as np
class WaveEquationVisualization(Scene):
def construct(self):
# --- Part 1: Visually present the standard wave equation ---
title = Text("The Wave Equation", font_size=48).to_edge(UP)
self.play(Write(title))
self.wait(1)
# Spl... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Can you create an animated video using math visualizations that explains the process of integrating the trigonometric function sine of x times cosine of x, demonstrates the use of the trigonometric identity sin(2x) = 2sin(x)cos(x), shows step-by-step how to solve the integral, and concludes by displaying the final solu... | ```python
from manim import *
class IntegrateSinCos(Scene):
def construct(self):
# --- Configuration ---
title_font_size = 42
math_font_size = 36
# --- Step 1: Introduction ---
title = Text("Integrating $\sin(x)\cos(x)$", font_size=title_font_size)
title.to_... | ```python
from manim import *
class IntegrateSinCos(Scene):
def construct(self):
# --- Configuration ---
title_font_size = 42
math_font_size = 36
# --- Step 1: Introduction ---
title = Text("Integrating $\sin(x)\cos(x)$", font_size=title_font_size)
title.to_... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Here is the enhanced animation description with additional features:
The animation begins with the text "Kiron" appearing at the top-left and "Tisha" at the bottom-right, connected by a growing arrow between them, as in the original. However, the enhanced version adds a dynamic mathematical formula (distance = √[(x₂-x... | ```python
from manim import *
import math
class EnhancedDistanceAnimation(Scene):
def construct(self):
# Create names
kiron = Text("Kiron").to_edge(UL)
tisha = Text("Tisha").to_edge(DR)
# Create arrow
arrow = Arrow(
start=kiron.get_bottom(),
... | ```python
from manim import *
class EnhancedDistanceAnimation(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Could you create an educational animation that visually explains the convergence of the series sum from n equals 1 to infinity of 1 over n squared using the p-test? The animation should introduce the series, explain how to use the p-test for convergence by displaying a condition, apply the p-test to show that the serie... | ```python
from manim import *
class PTestConvergence(Scene):
def construct(self):
# Step 1: Introduction - Display the series formula
series_label = Text("Consider the infinite series:", font_size=36)
series_formula = MathTex(r"\sum_{n=1}^{\infty} \frac{1}{n^2}").scale(1.5)
series_g... | ```python
from manim import *
class PTestConvergence(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Can you create an animated educational video that explains how to solve the first order ordinary differential equation y' - 3y = 0 using the separation of variables method, including steps to integrate and solve for y to find the general solution, and display this process step-by-step with equations, while providing br... | ```python
from manim import *
class SolveODESeparation(Scene):
def construct(self):
# --- Configuration ---
equation_color = WHITE
highlight_color = YELLOW
text_color = LIGHT_GREY
# --- Step 1: Initial Equation ---
header = Text("1. Start with the Differential Equat... | ```python
from manim import *
class SolveODESeparation(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | I would like to create an animated video explaining the concept of Taylor series approximation for the exponential function e^x. The animation should start by displaying the function "f(x) = e^x", then introduce the Taylor series approximation at x=0 with text and the general formula. Afterward, I want to show the firs... | ```python
from manim import *
import numpy as np
class TaylorSeriesExponential(Scene):
def construct(self):
# --- 1. Initial Display ---
func_text = MathTex("f(x) = e^x", font_size=72)
self.play(Write(func_text))
self.wait(1)
self.play(func_text.animate.to_edge(UP))
... | ```python
from manim import *
class TaylorSeriesExponential(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Could you create an animated video that explains step by step how to evaluate the definite integral of the sine function from 0 to π, showing the integral problem, the integration process with the antiderivative, evaluating the bounds, and then revealing the final answer, with written explanations accompanying each ste... | ```python
from manim import *
class IntegralSineEvaluation(Scene):
def construct(self):
# --- Configuration ---
math_color = YELLOW
text_color = WHITE
highlight_color = BLUE
# ------------------------------------------------------------------
# 1. Problem Statement
... | ```python
from manim import *
class IntegralSineEvaluation(Scene):
def construct(self):
# --- Configuration ---
math_color = YELLOW
text_color = WHITE
highlight_color = BLUE
# ------------------------------------------------------------------
# 1. Problem Statement
... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Here’s an enhanced version of the animation that retains the original features while adding new elements for clarity and visual appeal:
The scene begins with a vibrant aqua-colored regular octagon centered on the screen. As the octagon smoothly rotates counterclockwise by 120 degrees over two seconds, a dynamic coor... | ```python
from manim import *
class EnhancedOctagonRotation(Scene):
def construct(self):
# Create a regular octagon
octagon = RegularPolygon(n=8, color=TEAL, fill_opacity=0.8)
octagon.scale(1.5)
# Add coordinate axes
axes = Axes(
x_range=[-3, 3, 1],
... | ```python
from manim import *
class EnhancedOctagonRotation(Scene):
def construct(self):
# Create a regular octagon
octagon = RegularPolygon(n=8, color=TEAL, fill_opacity=0.8)
octagon.scale(1.5)
# Add coordinate axes
axes = Axes(
x_range=[-3, 3, 1],
... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | I'd like to create an educational animation that visually and step-by-step demonstrates how to calculate the area under the curve of the function f(x) = x^2 from x=1 to x=2, including writing the function, explaining the process of setting up the definite integral, showing the integration steps with the antiderivative,... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# --- 1. Setup Axes and Function ---
axes = Axes(
x_range=[0, 3, 1],
y_range=[0, 5, 1],
axis_config={"include_tip": True, "include_numbers": True},
x_axis_config={"numbers... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# --- 1. Setup Axes and Function ---
axes = Axes(
x_range=[0, 3, 1],
y_range=[0, 5, 1],
axis_config={"include_tip": True, "include_numbers": True},
x_axis_config={"numbers... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | I'm learning linear algebra for ML and want to visualize the first principal component of a weight matrix evolving over time. Animate the principal direction drifting in the weight space, with an accompanying plot of the corresponding eigenvalue and a 2D/3D visualization of the weight vectors' trajectory. | ```python
from manim import *
import math
class PCAExplanation(Scene):
def construct(self):
title = Text('Principal Component Analysis', font_size=44)
subtitle = Text('PCA', font_size=32)
subtitle.next_to(title, DOWN)
t_grp = VGroup(title, subtitle)
self.play(FadeIn(title),... | ```python
from manim import *
import math
class PCAExplanation(Scene):
def construct(self):
title = Text('Principal Component Analysis', font_size=44)
subtitle = Text('PCA', font_size=32)
subtitle.next_to(title, DOWN)
t_grp = VGroup(title, subtitle)
self.play(FadeIn(title),... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation that shows me how to calculate the definite integral of a quadratic function, specifically the integral of x squared from 1 to 2, with a step-by-step explanation including the power rule of integration and how to evaluate the integral at the given bounds? | ```python
from manim import *
class DefiniteIntegralQuadratic(Scene):
def construct(self):
# --- 1. Setup the Coordinate System ---
axes = Axes(
x_range=[0, 3, 1],
y_range=[0, 5, 1],
x_length=6,
y_length=4,
axis_config={"include_numbers": ... | ```python
from manim import *
class DefiniteIntegralQuadratic(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation using Manim that visually demonstrates how to calculate the area between the curves \( y = x^2 \) and \( y = 0.8x^2 + 1 \) from \( x = 0 \) to \( x = 2 \)? I'd like the animation to include the graphing of the two functions with labeled axes, shading of the area between the curve... | ```python
from manim import *
class AreaBetweenCurves(Scene):
def construct(self):
# 1. Setup Axes
axes = Axes(
x_range=[-0.5, 2.5, 1],
y_range=[-0.5, 5, 1],
axis_config={"include_tip": True, "numbers_to_exclude": [0]},
x_axis_config={"numbers_to_incl... | ```python
from manim import *
class AreaBetweenCurves(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Here’s an enhanced version of the animation with additional features:
The animation begins by displaying the double integral problem in polar coordinates, `\int_{0}^{\pi} \int_{0}^{1} r e^{r\theta} dr d\theta`, with a smooth `Write` effect. As the problem appears, a polar coordinate grid fades in the background to v... | ```python
from manim import *
class PolarDoubleIntegral(Scene):
def construct(self):
# Create the integral expression
integral = MathTex(
r"\int_{0}^{\pi} \int_{0}^{1} r e^{r\theta} \, dr \, d\theta",
font_size=40
)
# Create polar grid background
... | ```python
from manim import *
class PolarDoubleIntegral(Scene):
def construct(self):
# Create the integral expression
integral = MathTex(r"\text{Label:"} +
r"\int_{0}^{\pi} \int_{0}^{1} r e^{r\theta} \, dr \, d\theta",
font_size=40
)
# Create polar ... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | 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 ShaderExampleScene(Scene):
def construct(self):
title = Text('Shader Programming: Core Functionality', font_size=36, weight=BOLD)
title.to_edge(UP, buff=0.4)
self.play(Write(title))
vs_box ... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class ShaderExampleScene(Scene):
def construct(self):
title = Text('Shader Programming: Core Functionality', font_size=36, weight=BOLD)
title.to_edge(UP, buff=0.4)
self.play(Write(title))
vs_box ... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation that illustrates how the sum of the harmonic series diverges as n approaches infinity? Start by displaying the formula for the partial sum of the series, proceed with a visual narration explaining that we're considering the limit as n goes to infinity, then show the mathematical ... | ```python
from manim import *
class HarmonicSeriesDivergence(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. Formula Display: Render the formula for the partial sum.
# ------------------------------------------------------------------
... | ```python
from manim import *
class HarmonicSeriesDivergence(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. Formula Display: Render the formula for the partial sum.
# ------------------------------------------------------------------
... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation that illustrates the concept of calculating the area under a quadratic curve between two points on the x-axis, showing the graph of the function, highlighting the specific area under consideration, presenting the integral formula, and then breaking down the calculation step by st... | ```python
from manim import *
class AreaUnderQuadratic(Scene):
def construct(self):
# --- 1. Scene Setup & Coordinate System ---
# Define the quadratic function f(x) = x^2 and integration limits
func = lambda x: x**2
a, b = 1, 3
# Create axes with appropriate ranges, shifte... | ```python
from manim import *
class AreaUnderQuadratic(Scene):
def construct(self):
# --- 1. Scene Setup & Coordinate System ---
# Define the quadratic function f(x) = x^2 and integration limits
func = lambda x: x**2
a, b = 1, 3
# Create axes with appropriate ranges, shifte... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Could you create an educational animation that illustrates the step-by-step process of evaluating the surface area of a shape in polar coordinates, starting with the double integral of the function sqrt(1+r^2) over a polar region, and demonstrating the integration with respect to 'r' first, before then showing the inte... | ```python
from manim import *
class PolarSurfaceAreaAnimation(Scene):
def construct(self):
# -------------------------------------------------------------------
# Step 1: Setup
# Initialize the scene and define the polar region and function.
# ---------------------------------------... | ```python
from manim import *
class PolarSurfaceAreaAnimation(Scene):
def construct(self):
# -------------------------------------------------------------------
# Step 1: Setup
# Initialize the scene and define the polar region and function.
# ---------------------------------------... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | 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 ConnectionToLogic(Scene):
def construct(self):
title = Title('Connection to Logic/Rules')
self.play(Write(title))
item1 = Text('• Knowledge graphs provide a factual foundation, while logical\n rul... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class ConnectionToLogic(Scene):
def construct(self):
title = Title('Connection to Logic/Rules')
self.play(Write(title))
item1 = Text('• Knowledge graphs provide a factual foundation, while logical\n rul... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | I'm teaching undergrads ML and want a vivid visualization of the tanh activation curve. Show logits ranging from -∞ to ∞ mapped to -1 to 1, with saturation regions colored red. Include a moving input slider and an annotation of the slope decay, plus a side plot of the derivative magnitude. | ```python
from manim import *
import numpy as np
class TanhFunctionScene(Scene):
def construct(self):
title = Text('Tanh Activation Function', font_size=48, color=BLUE)
title.to_edge(UP, buff=0.5)
self.play(Write(title), run_time=2.0)
self.wait(2.0)
self.wait(2.0)
a... | ```python
from manim import *
import numpy as np
class TanhFunctionScene(Scene):
def construct(self):
title = Text('Tanh Activation Function', font_size=48, color=BLUE)
title.to_edge(UP, buff=0.5)
self.play(Write(title), run_time=2.0)
self.wait(2.0)
self.wait(2.0)
a... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | I want to create an educational animation that visually explains why the harmonic series diverges. First, I'd like to see the series itself displayed. Then, can you show some text that states the series diverges? After that, demonstrate with the terms of the series by grouping them in a way that helps illustrate why th... | ```python
from manim import *
class HarmonicSeriesDivergence(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. Display the Series
# ------------------------------------------------------------------
title = Text("The Harmonic Seri... | ```python
from manim import *
class HarmonicSeriesDivergence(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. Display the Series
# ------------------------------------------------------------------
title = Text("The Harmonic Seri... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | How can bifurcation diagrams be used to analyze the behavior of nonlinear equation systems? | ```python
from manim import *
class BifurcationDiagramScene(Scene):
def construct(self):
# Title
title = Text("Mapping Chaos: Bifurcation Diagrams", font_size=36)
title.to_edge(UP)
self.play(Write(title))
self.wait(1)
# Element 1: Chaotic vs stable states vi... | ```python
from manim import *
class BifurcationDiagramScene(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | 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 IntegralEvaluation(Scene):
def construct(self):
# -------------------------------------------------------------------
# Scene 1: Problem Display
# -------------------------------------------------------------------
problem = MathTex(r"\int_{0}^{1}... | ```python
from manim import *
class IntegralEvaluation(Scene):
def construct(self):
# -------------------------------------------------------------------
# Scene 1: Problem Display
# -------------------------------------------------------------------
problem = MathTex(r"\int_{0}^{1}... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | In what ways can we illustrate the convergence properties of the maximal function as the averaging region expands infinitely? | ```python
from manim import *
class MaximalFunctionConvergence(Scene):
def construct(self):
# Title
title = Text("Exploring the Convergence of the Maximal Function", font_size=32)
self.play(Write(title))
self.wait(1)
self.play(title.animate.to_edge(UP))
# Cr... | ```python
from manim import *
class MaximalFunctionConvergence(Scene):
def construct(self):
# Title
title = Text("Exploring the Convergence of the Maximal Function", font_size=32)
self.play(Write(title))
self.wait(1)
self.play(title.animate.to_edge(UP))
# Cr... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | 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 representation "e^(ix) = cos(x) + isin(x)" appearing just below it. Then, below the formula, can there be an arrow pointing downward to the expanded form of Eu... | ```python
from manim import *
class EulersFormulaScene(Scene):
def construct(self):
# --- 1. Initial Scene ---
title1 = Text("Euler's Formula:", font_size=40).to_edge(UP)
eq1 = MathTex(r"e^{ix} = \cos(x) + i\sin(x)", font_size=48).next_to(title1, DOWN, buff=0.5)
self.play(Write(tit... | ```python
from manim import *
class EulersFormulaScene(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Generate a Manim animation illustrating the concept of vectors in 2-dimensional space. Show vector addition, scalar multiplication, and the dot product, emphasizing their geometric interpretations. | ```python
from manim import *
class VectorOperations(Scene):
def construct(self):
# Title
title = Text("Vector Operations in 2D Space")
title.scale(1.2)
title.to_edge(UP)
self.play(Write(title))
# Display coordinate axes
axes = ThreeDAxes()
self.play... | ```python
from manim import *
class VectorOperations(Scene):
def construct(self):
# Title
title = Text("Vector Operations in 2D Space")
title.scale(1.2)
title.to_edge(UP)
self.play(Write(title))
# Display coordinate axes
axes = ThreeDAxes()
self.play... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | I would like to create an educational animation that visually explains the steps to solve a triple integral using spherical coordinates. Specifically, I want to solve the triple integral of ρ^2 sin φ with respect to ρ, then θ, and finally φ, over the ranges of 0 to 1 for ρ, 0 to 2π for θ, and 0 to π for φ. The animatio... | ```python
from manim import *
class SphericalIntegralScene(Scene):
def construct(self):
# --- Configuration & Colors ---
color_rho = BLUE
color_theta = GREEN
color_phi = RED
color_result = GOLD
# --- Step 1: Title & Problem Statement ---
title = Text("Triple... | ```python
from manim import *
class SphericalIntegralScene(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Can you create an animated video that shows a carbon monoxide (CO) molecule and a water (H2O) molecule positioned on opposite sides of the screen, then have them move towards each other, react, and transform into a single carbonic acid (H2CO3) molecule at the center of the screen? The CO molecule should have a gray "C"... | ```python
from manim import *
class CarbonicAcidFormation(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. Scene Setup & Molecule Construction
# ------------------------------------------------------------------
# Helper... | ```python
from manim import *
class CarbonicAcidFormation(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. Scene Setup & Molecule Construction
# ------------------------------------------------------------------
# Helper... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | 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):
# ------------------------------------------------------------------
# 1. Initial Scene Setup
# ------------------------------------------------------------------
# Create axes with appropria... | ```python
from manim import *
class AreaUnderParabola(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. Initial Scene Setup
# ------------------------------------------------------------------
# Create axes with appropria... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Can you create an educational animation using Manim to explain the wave equation, showing the equation itself, describing it as a classic partial differential equation, discussing the general form of its solution as a function of both space and time, presenting the d'Alembert solution, explaining that the solutions con... | ```python
from manim import *
import numpy as np
class WaveEquationExplanation(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. Display the Equation
# ------------------------------------------------------------------
title = Tex... | ```python
from manim import *
import numpy as np
class WaveEquationExplanation(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. Display the Equation
# ------------------------------------------------------------------
title = Tex... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | Here’s an enhanced version of the animation with additional features:
The animation begins by displaying the integral problem \(\int_{0}^{2} x^3 \,dx\) at the center of the screen, followed by a text explanation ("Calculate the definite integral:") appearing at the top. Next, the power rule \(\int x^n \,dx = \frac{x^{... | ```python
from manim import *
class IntegralAnimation(Scene):
def construct(self):
# Create the integral expression
integral = MathTex(r"\int_{0}^{2} x^3 \,dx").scale(1.5)
# Create explanation text
explanation = Text("Calculate the definite integral:").to_edge(UP)
... | ```python
from manim import *
class IntegralAnimation(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | I would like to create an educational animation that demonstrates the concept of finding the area under a curve using integration. Specifically, I want to show the graph of \( x^2 \) along with its plot, then visually display the area under the curve between 0 and 1.5. Following that, I want to introduce the integral s... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# ------------------------------------------------------------------
# 1. Graph Initialization
# Display the graph of the function x^2 along with its plot.
# ---------------------------------------------... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | I want an educational animation showing the area under the curve of the function y = 0.25x^2 from x=0 to x=2 on graph axes labeled with 'x' and 'y'. Also, let the graph and axes be created with an animation effect. After showing the area under the curve highlighted in yellow with 50% opacity, display text "Area under c... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# 1. Setup Axes and Function Graph
axes = Axes(
x_range=[0, 3, 1],
y_range=[0, 2, 1],
axis_config={"color": BLUE},
tips=False
)
axis_labels = axes.get_axis... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | Create an educational animation that shows how to calculate the area under a curve between two points using integration. Start by displaying the mathematical function being used, which is f(x) = 3 - (1/2)x^2. After introducing the function, draw its curve on a graph. Once the curve is drawn, indicate the specific secti... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# --- Configuration ---
func = lambda x: 3 - 0.5 * x**2
# --- Step 1: Function Display ---
func_text = MathTex(r"f(x) = 3 - \frac{1}{2}x^2")
func_text.scale(1.2).to_edge(UP)
... | ```python
from manim import *
class AreaUnderCurve(Scene):
def construct(self):
# --- Configuration ---
func = lambda x: 3 - 0.5 * x**2
# --- Step 1: Function Display ---
func_text = MathTex(r"f(x) = 3 - \frac{1}{2}x^2")
func_text.scale(1.2).to_edge(UP)
... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | I would like an animated video tutorial that visually demonstrates the process of solving a triple integral. Start by showing the integral of xyz over the unit cube from 0 to 1. Then, in step by step fashion, first integrate with respect to z while providing a text explanation above, next integrate the resulting expres... | ```python
from manim import *
class TripleIntegralTutorial(Scene):
def construct(self):
# --- Configuration ---
TEXT_POS = UP * 2.5
# --- Initial Setup ---
# Display the triple integral of xyz over the unit cube
eq0 = MathTex(
r"\int_0^1 \int_0^1 \int_0^... | ```python
from manim import *
class TripleIntegralTutorial(Scene):
def construct(self):
# --- Configuration ---
TEXT_POS = UP * 2.5
# --- Initial Setup ---
# Display the triple integral of xyz over the unit cube
eq0 = MathTex(r"\text{Label:"} +
r"\int_0... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Here is the enhanced animation description:
The scene begins with two squares arranged horizontally with some space between them, then evolves into a more dynamic and informative visualization. First, both squares simultaneously rotate 180 degrees (π radians) as in the original animation, but now with smooth easing fo... | ```python
from manim import *
class EnhancedRotationScene(Scene):
def construct(self):
# Create squares
square1 = Square(color=BLUE).shift(LEFT * 2)
square2 = Square(color=RED).shift(RIGHT * 2)
# Add initial labels
initial_label = Text("Initial State").scale(0.7).ne... | ```python
from manim import *
class EnhancedRotationScene(Scene):
def construct(self):
# Create squares
square1 = Square(color=BLUE).shift(LEFT * 2)
square2 = Square(color=RED).shift(RIGHT * 2)
# Add initial labels
initial_label = Text("Initial State").scale(0.7).ne... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | 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 ConvergenceQuestionScene(Scene):
def construct(self):
title = Text('The Question of Convergence in Multi-Agent Systems', font_size=36, weight=BOLD)
title.to_edge(UP, buff=0.5)
underline = Underline... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class ConvergenceQuestionScene(Scene):
def construct(self):
title = Text('The Question of Convergence in Multi-Agent Systems', font_size=36, weight=BOLD)
title.to_edge(UP, buff=0.5)
underline = Underline... | truncated_unfinished_code |
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 (`from manim import *`). Never truncate code and never output... | 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 QuantumSolution(Scene):
def construct(self):
title = Text('Solution to Quantum Computing', font_size=34, color=WHITE, weight=BOLD)
title.to_edge(UP, buff=0.5)
title_line = Line(LEFT, RIGHT, color=O... | ```python
from manim import *
from manim import config
Text.set_default(font='SimHei')
class QuantumSolution(Scene):
def construct(self):
title = Text('Solution to Quantum Computing', font_size=34, color=WHITE, weight=BOLD)
title.to_edge(UP, buff=0.5)
title_line = Line(LEFT, RIGHT, color=O... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | Here’s an enhanced version of the animation that retains all the original features while adding significant new elements:
The animation begins by constructing a water molecule, starting with the oxygen atom (a blue-filled circle labeled "O") and two hydrogen atoms (grey-filled circles labeled "H") positioned in a V-... | ```python
from manim import *
class WaterMoleculeScene(Scene):
def construct(self):
# Create oxygen atom
oxygen = Circle(radius=0.5, color=BLUE, fill_opacity=1)
oxygen_label = Text("O").next_to(oxygen, UP)
oxygen_property = Text("Oxygen: 8 protons").scale(0.5).next_to(oxygen, DOWN *... | ```python
from manim import *
class WaterMoleculeScene(Scene):
def construct(self):
# Create oxygen atom
oxygen = Circle(radius=0.5, color=BLUE, fill_opacity=1)
oxygen_label = Text("O").next_to(oxygen, UP)
oxygen_property = Text("Oxygen: 8 protons").scale(0.5).next_to(oxygen, DOWN *... | latex_string_concat_and_brace_mismatch |
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 (`from manim import *`). Never truncate code and never output... | 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 PolarIntegralAnimation(Scene):
def construct(self):
# --- Configuration ---
color_r = BLUE
color_theta = GREEN
color_result = YELLOW
# =========================================================
# 1. Problem Display
# ======... | ```python
from manim import *
class PolarIntegralAnimation(Scene):
def construct(self):
title = Text("Overview")
self.play(Write(title))
self.wait(1)
``` | low_animation_density_static_slide |
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 (`from manim import *`). Never truncate code and never output... | I would like an animated video that features a table with names and favorite fruits, which transitions into a colorful bar graph representing the count of people who favor each fruit. Can the table have black borders and black text with names like Pablo, Gabriela, Bianca, Murilo, Heitor, and Isabela paired with fruits ... | ```python
from manim import *
# Configure Manim for Portrait Mode (Mobile 9:16)
config.pixel_width = 1080
config.pixel_height = 1920
config.frame_width = 9
config.frame_height = 16
class FruitSurveyAnimation(Scene):
def construct(self):
# Set Background Color
self.camera.background_color = "#FFFDD... | ```python
from manim import *
# Configure Manim for Portrait Mode (Mobile 9:16)
config.pixel_width = 1080
config.pixel_height = 1920
config.frame_width = 9
config.frame_height = 16
class FruitSurveyAnimation(Scene):
def construct(self):
# Set Background Color
self.camera.background_color = "#FFFDD... | truncated_unfinished_code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.