# 在给定列表上应用给定的数学表达式

``````from sympy import *
from sympy.abc import x, y
#Entering the functions
SympF=[]
F=[]
n = int(input("Please enter the number of terms in the general regression formula : "))
for i in range(0, n):
F.append (lambdify([x, y], SympF[i]))

#Entering Points
xdata = []
ydata = []
m = int(input("Enter number of elements : "))
print('Enter each point as space seperated x & y')
for i in range(0, m):
x,y = map(float, input().split())
xdata.append(x)
ydata.append(y)

#making a list for each function (this is where I'm stuck)
Z=[]
for i in range(0, n):
for j in range (0,m):
Z.append(F[i](xdata[j],ydata[j]))
for item in F:
print(F);
``````

``````[<function _lambdifygenerated at 0x00000229CA678438>, <function _lambdifygenerated at 0x00000229CAB31708>, <function _lambdifygenerated at 0x00000229CAB318B8>]
[<function _lambdifygenerated at 0x00000229CA678438>, <function _lambdifygenerated at 0x00000229CAB31708>, <function _lambdifygenerated at 0x00000229CAB318B8>]
[<function _lambdifygenerated at 0x00000229CA678438>, <function _lambdifygenerated at 0x00000229CAB31708>, <function _lambdifygenerated at 0x00000229CAB318B8>]
``````