Рассмотрим следующий код:
Код: Выделить всё
from math import cos, sin
import mpmath as mp
mp.plot([sin, cos], [0, 3]) # this is fine
l = [sin, cos]
mp.plot([lambda x: f(2*x) for f in l], [0, 3])
# this only plots sin(2x)!
Подробнее здесь: https://stackoverflow.com/questions/794 ... pmath-plot