MathGroup Archive 2005

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

Search the Archive

Re: Re: Why this function does not return a single value

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60288] Re: [mg60268] Re: Why this function does not return a single value
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sat, 10 Sep 2005 06:46:38 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Marek,

I don't understand why you are converting cells between StandardForm and
InputForm. InputForm will always reintroduce the *'s. Converting also gets
rid of any comments you might have had.

Also, notice...

a[1]_ // FullForm
Times[a[1], Blank[]]

a1_ // FullForm
Pattern[a1, Blank[]]

They are not the same thing. The second is a pattern, the first is a product
where the second factor is a pattern.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/


From: Marek [mailto:marekbr at gmail.com]
To: mathgroup at smc.vnet.net



  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





  • Prev by Date: Matrix question
  • Next by Date: Re: Looking for n for which all 2-partitions are prime partitions.
  • Previous by thread: Re: Why this function does not return a single value
  • Next by thread: Re: Why this function does not return a single value