MathGroup Archive 1999

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

Search the Archive

Re: Help needed with List!

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16935] Re: [mg16909] Help needed with List!
  • From: "Tomas Garza" <tgarza at mail.internet.com.mx>
  • Date: Thu, 8 Apr 1999 02:32:39 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

alvaroo wrote:

> Sirs Probably these are FAQs but I am new in this newsgroup and I have not
> been able to solve them. I use Mathematica 3.0:  (i) I need to
> convert a long
> integer number in List format.	For example if I had the
> number 123456 I need
> to convert it into {1,2,3,4,5,6}:  Is it possible with an
> instruction?	And,
> (ii) I need to delete from a List A the common elements with
> other List B:

Well, now, alvaroo!  You may very well be new to the group, but you should
at least start by taking a look at any elementary text on Mathematica. A
couple of weeks should suffice to put you on the right track!

In[1]:=
IntegerDigits[123456]
Out[1]=
{1,2,3,4,5,6}
In[2]:=
a={1,2,3,4};b={1,2};
In[3]:=
Complement[a,b]
Out[3]=
{3,4}

Good luck,

Tomas Garza
Mexico City



  • Prev by Date: Dynamic Programming
  • Next by Date: Together, Apart, ?
  • Previous by thread: Re: Help needed with List!
  • Next by thread: Re: Help needed with List!