MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Defining a Function??



You define the function with 11 parameters
(L,rho,k,c,Tinfo,TinfL,ho,hL,time,T,n) but you call it with only 10
parameter values.  Since there is no default value for any of the
parameters, the function is undefined and returns unevaluated.

Bob Hanlon

In a message dated 3/9/98 3:49:55 AM, cbeavers@utk.edu wrote:

>Below is a program that I have written, with much help from the critique
>on my last program...thanks everybody!. Anyway, if I define all of the
>varibles as global, the program runs and outputs the results. I want to
>set it up as a function though so I can use it for more than one case.
>I am not sure what I am doing wrong here but for some reason it does
>not seem to run, instead it just gives me the input back.....Thanks in
>advance!!!
>
>In[29]:=
>
>OneDPlaneWall[L_,rho_,k_,c_,Tinfo_,TinfL_,ho_,hL_,time_,T_,n_]:=
...
...
...
>In[32]:=
>OneDPlaneWall[0.25,1860,0.72,17,-6,100,60,0,17,11] Out[32]=
>OneDPlaneWall[0.25,1860,0.72,17,-6,100,60,0,17,11]



  • Prev by Date: Patterns
  • Next by Date: Extracting polynomial coefficients?
  • Prev by thread: Re: Defining a Function??
  • Next by thread: Re: Defining a Function??