Re: Why this function does not return a single value

*To*: mathgroup at smc.vnet.net*Subject*: [mg60268] Re: Why this function does not return a single value*From*: Marek <marekbr at gmail.com>*Date*: Fri, 9 Sep 2005 04:07:08 -0400 (EDT)*References*: <dfovll$fch$1@smc.vnet.net>*Reply-to*: marekbr at gmail.com*Sender*: owner-wri-mathgroup at wolfram.com

Hi Bill I know that Mathematica treats space as a multiplication sign. What happens here is that when I remove the multiplication signs in Input mode, convert to Standard mode and then back to Input mode the multiplication signs reappear. I just did the following experiment. Opened fresh Mathematica notebook and typed in (in Standard mode) g[x_,a[1]_]:=a*x (no spaces anywhere) Executed that Then converted to Input mode and there will be a star between a[1] and the blanc sign _ . However when I remove the square brackets from the input that does not happen. Thanks for Your reply. Marek Bill Rowe wrote: > On 9/7/05 at 4:03 AM, marekbr at gmail.com (Marek) wrote: > >>For now I have only one thing to say. Those multiplication signs >>appear out of nowhere when I convert the call with function definition >>from Input Form to Standard Form. I can remove the m while in Standard >>form but as soon as I execute this cell (or convert it to Standard >>Form) they reappear. Is that the way it is suppose to be? > > When a multiplication sign appears as a result of converting from one form > to another it typically is because there is a space between expressions in > the original form. Mathematica treats a space between expressions as > multiplication. And often, it is very difficult to notice an extra space. > -- To reply via email subtract one hundred and four