Re: Defining a Function??
- To: mathgroup@smc.vnet.net
- Subject: [mg11449] Re: [mg11407] Defining a Function??
- From: Bob Hanlon <BobHanlon@aol.com>
- Date: Thu, 12 Mar 1998 01:33:55 -0500
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]