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:
VGroupA 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 ¶
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 the i-th and j-th equations.
Attributes
animateUsed to animate the application of any method of
self.animation_overridescolordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe 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: