# Manim

Mathematics, Python, Manim

I lost my old configuration of Manim first in my Mac then in my PC 6 months after. Both happened after upgrading my Python release to the latest version. Fortunately, the Manim Community made the ManinCE more user friendly to beginners like me. The community website provided the step-by-step instruction on how to install Manim in PC, Mac, and Linux.

The code below will update the function *V* = 3(*x* - 6)^{2} as *x* increases in value. Notice that the equation is a parabolic curve with independent variable *x* and dependent variable *V*. The whole graph actually cannot be fitted on the screen. To improve visibility, the equation was multiplied by a reduction factor whose value is embedded-hard into the equation.

This post is about Manim code for tracing a portion of a graph and assigning a `dot`

to move along that portion. In this animation, we created a cubic graph with *y* = *x*^{3} - 3*x*^{2} + 2*x* + 1.5 and trace a portion of this curve between *x* = -0.3 and *x* = 2.2 then assign a point to move along this portion.

Below is the Python code, calling the Manim library, for creating a circle using parametric equations. The circle is parallel to the xy-plane and has a radius of 4 units . It is located 2 units above the xy-plane.

Radius of sphere = 4

Render method= Write

A cylindrical surface of radius radius 4 and axis on the *xz*-plane and at a distance of 1.5 units from the *xy*-plane. The thickness of the cylinder is 4 units and the curvilinear length is half the circle.

**3Blue1Brown Version**

Head of .py file: `from manim import *`

Rendering video via command line`python directory_path_to_manim_libraries directory_path_to_python_file.py`

**ManimCE Version**

Head of .py file: `from manim import *`

Rendering video via command line`manim directory_path_to_python_file.py`