Sideway
output.to from Sideway
Draft for Information Only

Content

Manim Function
 Codes in Functions.py
  Import
  Class ParametricFunction(VMobject)
   Configuration
   Functions
  Class FunctionGraph(ParametricFunction)
   Configuration
   Functions
 Source and Reference

Manim Function

The function VMobject object in Manim is defined in functions.py.

Codes in Functions.py

Available codes defined in manimlib.mobject.functions.py

image

Two classes, ParametricFunction, and FunctionGraph are defined.

Import

from manimlib.constants import *
from manimlib.mobject.types.vectorized_mobject import VMobject
from manimlib.utils.config_ops import digest_config
import math

Class ParametricFunction(VMobject)

class manimlib.mobject.functions.ParametricFunction(VMobject)version 19Dec2019

Configuration

    CONFIG = {
        "t_min": 0,
        "t_max": 1,
        "step_size": 0.01,  # Use "auto" (lowercase) for automatic step size
        "dt": 1e-8,
        # TODO, be smarter about figuring these out?
        "discontinuities": [],
    }

Functions

  • def __init__(self, function=None, **kwargs)
  • def get_function(self)
  • def get_point_from_function(self, t)
  • def get_step_size(self, t=None)
  • def generate_points(self)

Class FunctionGraph(ParametricFunction)

class manimlib.mobjectfunctions.FunctionGraph(ParametricFunction)version 19Dec2019

Configuration

    CONFIG = {
        "color": YELLOW,
        "x_min": -FRAME_X_RADIUS,
        "x_max": FRAME_X_RADIUS,
    }

Functions

  • def __init__(self, function, **kwargs)
  • def get_function(self)
  • def get_point_from_function(self, x)

Source and Reference

https://github.com/3b1b/manim19Dec2019

©sideway

ID: 210700028 Last Updated: 7/28/2021 Revision: 0

IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 337

Reference 68

Computer

Hardware 154

Software

Application 207

Digitization 25

Latex 35

Manim 203

Numeric 19

Programming

Web 285

Unicode 504

HTML 65

CSS 63

SVG 9

ASP.NET 229

OS 422

DeskTop 7

Python 64

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 32

Coordinate Geometry 1

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2021 Sideway . All rights reserved Disclaimers last modified on 06 September 2019