Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

The Scan Built-In Function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46313] The Scan Built-In Function
  • From: Harold.Noffke at wpafb.af.mil (Harold Noffke)
  • Date: Fri, 13 Feb 2004 21:58:10 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Mathematica 5.0.1 on Windows 2000
MathGroup:

When I studied Scan, I found the following example reasonable ...

In[4]:= Scan[ Print, a x^2 + b x, Infinity ]
	b
	x
	b x
	a
	x
	2
	 2
	x
	   2
	a x

Then I modified the example to this ...

In[5]:= Scan[ Print, a (x + 2) b*y, Infinity ]
	a
	b
	2
	x
	2 + x
	y
	
Then I got confused.

Here's my question.  In In[4], why does Mathematica not show any
expressions which use "+"?  In abstract group theory, there is no
distinction between "+" and "*", and this is what confuses me when I
think about Scan from the group theory perspective.

Can anyone guide my thinking back onto the Mathematica track?

Thanks.
Harold


  • Prev by Date: Equal, Inequality and TraditionalForm
  • Next by Date: Re: Drawing a HEART in mathematica?
  • Previous by thread: Re: Equal, Inequality and TraditionalForm
  • Next by thread: Re: The Scan Built-In Function