SystemOfEquations

Qualified name: manimextra.algebra.SystemOfEquations

class manimextra.algebra.SystemOfEquations(*equations, is_bracket=False, buff_between_equations=0.2, buff_between_brace_and_equations=0.05)

Bases: VGroup

A group of equations with a brace on the left side.

Parameters:
  • *equations (manim.mobject.Mobject) – The equations.

  • is_bracket (bool, optional) – Whether to use bracket instead of brace. Default to False.

  • buff_between_equations (float, optional) – The buffer between equations. Default to 0.2.

  • buff_between_brace_and_equations (float, optional) – The buffer between brace and equations. Default to 0.05.

Examples

Example: SystemOfEquationsExample

../_images/SystemOfEquationsExample-1.png
from manim import *
from manimextra import *

class SystemOfEquationsExample(Scene):
    def construct(self):
        system = SystemOfEquations(
            MathTex("x^2", "+", "y^2", "=", "9"),
            MathTex("y", "=", "x", "+", "1")
        )
        self.add(system)

Methods

swap

Swap the i-th and j-th equations.

Attributes

animate

Used to animate the application of any method of self.

animation_overrides

color

depth

The depth of the mobject.

fill_color

If there are multiple colors (for gradient) this returns the first one

height

The height of the mobject.

n_points_per_curve

sheen_factor

stroke_color

width

The width of the mobject.

_original__init__(*equations, is_bracket=False, buff_between_equations=0.2, buff_between_brace_and_equations=0.05)

Initialize self. See help(type(self)) for accurate signature.

swap(i, j)

Swap the i-th and j-th equations. :type i: :param i: :type j: :param j: :return: