Sent: Wednesday, July 19, 2006 11:15
PM
Subject: [S] function outer()
Hi, everyone,
I have a problem with the R function
outer()
f(x,y) is a bivariate functions, and I want
to plot its surface.
I use the R function outer(x,y,f) but it does'nt work
with the following warning message:
x<-1:3
y<-4:6
outer(x,y,f)
"
dim<- : dims [product 9] do not match
the length of object [1]
"
why? Are there any other way to plot the surface of a
bivariate function?
-----------------------------------------------------------------
Mr.
WEN Songqiao
Department of Mathematics
Hong Kong Baptist
University
Email: sqwen@math.hkbu.edu.hk
-----------------------------------------------------------------