Re: HELP: specifying range for a variable?
- To: mathgroup at smc.vnet.net
- Subject: [mg17382] Re: HELP: specifying range for a variable?
- From: "Dana DeLouis" <dana2 at email.msn.com>
- Date: Thu, 6 May 1999 02:44:06 -0400
- References: <7gftjd$6ik@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hello. I am really new at this. I think the way to do this is: c[a_Real,b_Real] = a+b*I I could be wrong though. Ilya Zavorine <iaz at cs.umd.edu> wrote in message news:7gftjd$6ik at smc.vnet.net... >How do I tell Mathematica that a variable that I define >should be real? Suppose I write something like > > c[a_,b_] = a+b*I; > >I want Mathematica to treat a and b as purely real >numbers so that, for instance, if I do > > Im[c[a,b]] > >I will get b as the answer. However, I haven't found any >way of limiting the range of a variable. > >Thanks for any help, > >Ilya >