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


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339new

Travel 7new

Reference 79

Computer

Hardware 251

Software

Application 213

Digitization 32

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 431

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Set 1

Logic 1

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

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-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019