再问高手一个问题<BR>m文件如下<BR>function y=qiujielingdian(a,b,c,d,e,f,num)<BR>x=sym('x')<BR>z=sqrt(1/a/b)/tan(e*sqrt(x/a/b))+sqrt(1/c/d)/tan(f*sqrt(x/c/d))<BR>g=inline(z)<BR>y=fzero(g,num)<BR>在vb里面调用时<BR>Private Sub Command1_Click()<BR>Dim iop As pkclass<BR>Set iop = New pkclass<BR>Dim y As Variant<BR>Dim a As Double, b As Double, c As Double, d As Double, e As Double, f As Double, num As Double<BR> a = 2100000<BR> b = 12.57<BR> c = 2100000<BR> d = 86.44<BR> e = 2254.5<BR> f = 2320.5<BR>num = 1246.9<BR>Call iop.qiujielingdian(1, y, a, b, c, d, e, f, num)<BR>Print y<BR>End Sub<BR>出现错误“undefined function or variable 'sym'”<BR>这是因为什么 |