r/manim

▲ 19 r/manim+4 crossposts

Math Videos for Kids (Elementary): Multiplication Using Split Grids

A visual, bite-sized mini-lesson for elementary school kids that bridges the gap between counting and algebra.

Videos also available at:

Instagram

Youtube

Github

Whatsapp

Tiktok

Code available at https://github.com/zombimann/Mathematical-video-animations-and-visualization/blob/main/Kids_Elementary_Multiplication_Using_Circle_Grids.ipynb

You might also like https://np.reddit.com/r/3Blue1Brown/s/syRS2ZK39H

▲ 35 r/manim+5 crossposts

Control Systems: Block Diagram Simplification

This visualizes the reduction of control systems block diagrams into their equivalent transfer functions.

Videos also available at:
Instagram
Youtube
Github
Whatsapp
Tiktok

Code available at https://github.com/zombimann/Mathematical-video-animations-and-visualization/blob/main/Control_Systems_Block_Diagram_Simplification.ipynb

You might also like https://np.reddit.com/r/3Blue1Brown/s/hK6CRW5aLe

▲ 1 r/manim

Personalising Manim

Manim has a very distinctive look and I'm wondering what people are doing to make it their own.

Personally have certain colours that I always try using and for my next video I think I might try some slightly textured backgrounds.

What do you do to make it your own?

reddit.com
u/matigekunst — 5 days ago
▲ 2 r/manim

How to use manin in VS Code

I've installed manim locally using the manim community installation guide. I'm using python 3.14.6 and when I run

uv run manim checkhealth

in my terminal, everything passes and even the test scene runs perfectly. When I try to use manin in VS Code, it doesn't recognize any of its keywords and "import manim" doesn't work.

Is there any other way to use manin?

I would like to use it through VS code.

reddit.com
u/yoshinameme — 5 days ago
▲ 103 r/manim+4 crossposts

Visualizing the recursive structure of a Menger Sponge, continuous morphing through iterations (coded with Manim)

u/USedona — 9 days ago
▲ 2 r/manim+3 crossposts

I created a math video explaining eigenvectors

Hi guys,

I created a youtube video explaining how eigenvectors work, its applications including many visual elements and animations.

The video turned out to be a bit long (40+ minutes), but I was personally quite happy with the content itself. Would appreciate your feedback on whether this video is helpful.

https://youtu.be/wi98KGGLiHQ?si=Fc7jrmmb7-UCok9h

u/Own_Platform2209 — 9 days ago
▲ 72 r/manim+12 crossposts

The sample mean as a projection onto the span of the ones vector

I’ve been thinking about the sample mean from a linear algebra perspective.

If y is a data vector and 1 is the vector of all ones, then the average can be seen as the scalar you get when projecting y onto span(1).

So the projection has the form:

y-hat = y-bar · 1

where y-bar is the usual sample average.

I like this because it makes the average feel like the simplest possible least-squares problem: find the constant vector closest to the data vector.

It also connects naturally to ordinary least squares regression, where y gets projected onto the column space of X instead of just the one-dimensional space spanned by 1.

Does this seem like a good way to introduce projections/least squares, or would you teach it differently?

youtu.be
u/CubionAcademy — 13 days ago
▲ 44 r/manim+1 crossposts

Why does an epicycloid with R/r=5 produce 7 petals, not 5 ?

I animated an epicycloid in Manim with a fixed circle of radius R=3.5 and a rolling circle of radius r=0.7 (R/r=5), and counted 7 cusps instead of the 5 I expected.

Working through the parametrization, the relative angular speed between the traced point and the rolling circle's center comes out to (R+2r)/r = 7, not R / r = 5 or even (R+r)/r = 6. The extra +r seems to come from the direction convention for the point's rotation on the rolling circle (I parametrized it rotating in the same direction as the orbit rather than the more standard opposite direction).

Is there a clean geometric way to see why this specific convention shifts the cusp count from (R+r)/r to (R+2r)/r? Or is this a known distinction between different epicycloid parametrizations that I'm just not aware of?

x(t) = (R+r)cos(t) − r*cos((R+2r)/r*t)

y(t) = (R+r)sin(t) − r*sin((R+2r)/r*t)

u/USedona — 13 days ago
▲ 7 r/manim+1 crossposts

Manim Workflow

I am currently working on one of my most ambitious projects using Manim yet. I am wondering how others approach this.

I first write my script. Then I iterate over it a few times. Then I add some visual notes in square brackets. For example: [fade in matrix A]. Once I am somewhat happy with the script, I go to voice-over.

I have a hard time recording voice-overs. Even though I grew up speaking English, and I am normally well-spoken and don't stutter, when I record myself, all that goes out of the window for some reason. Which goes a little like this. For each minute of speech, there will be about 5-6 minutes of recordings. I record the entire script 2 or 3 times, so I am able to make cuts and splice parts together.

Previously, I would then do my general outline and write on screen what visuals should come where. Now, I first let a text-to-speech engine produce a WAV. Based on this, I do my outline and see what works and what doesn't. Some things look good on paper, but may sound too long or too convoluted. Now I can easily make adjustments to the script and render another VO track.

At this point, I write the preliminary code for the Manim clips and TouchDesigner clips, which I then put in the general outline. This stage really makes things click, and I often have new ideas for visual explanations or see that certain things don't work. I adjust the script and the clips so they show everything that needs to be shown, but I'm not concerned with timing just yet.

Then I actually record the VO myself. I then make cuts for pacing in audio only. Then, for each Manim scene, I render out the audio track and have Manim play it with the visual. This way, I can easily pace the Manim scene.

I then add the Manim scenes in my video editor and start making small cuts and slightly speed up or down parts of the scene, or hold the last frame so the timing is perfect.

I then add motion graphics and sound effects. I then add music, but this time I might add music with TTS already.

Lastly, I do some colour correction for the real-life camerawork.

Normally, my videos are about 4-7 minutes long. This video's TTS track alone is 21 minutes so I want to be as efficient as possible. Does anyone see any workflow adjustments I should make?

u/matigekunst — 11 days ago