<reponame>kouki-0926/Flask-Math<filename>application/flask_math/calculation/Expand.py
from sympy import expand
from flask import flash
from flask_math.calculation.common.STR import LATEX


def Expand(formula):
    try:
        A = expand(formula)
        anser = LATEX(formula)+"="+LATEX(A)
    except:
        anser = "Error"
        flash("エラー：もう一度入力してください")
    return anser

from sympy import expand
from flask import flash
from flask_math.calculation.common.STR import LATEX


def Expand(formula):
    try:
        A = expand(formula)
        anser = LATEX(formula)+"="+LATEX(A)
    except:
        anser = "Error"
        flash("エラー：もう一度入力してください")
    return anser