Dataset Viewer
Auto-converted to Parquet Duplicate
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
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
41