Код: Выделить всё
import numpy as np
import sympy as sp
a, b, c, f, g = sp.symbols('a b c f g')
M = np.array([a, b, c])
Код: Выделить всё
B = f * M**2 * g
Подробнее здесь: https://stackoverflow.com/questions/781 ... alculation
Код: Выделить всё
import numpy as np
import sympy as sp
a, b, c, f, g = sp.symbols('a b c f g')
M = np.array([a, b, c])
Код: Выделить всё
B = f * M**2 * g