Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*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 2003

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

Search the Archive

Re: question..

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43872] Re: question..
  • From: Bill Rowe <readnewscix at mail.earthlink.net>
  • Date: Thu, 9 Oct 2003 01:55:14 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 10/8/03 at 4:47 AM, ghassans at bethlehem.edu (Ghassan Shahin) wrote:

> i want to use mathematica for sums..but i need to sum from 1 to 100 
> except same integer numbers, say 2,6,8..what is the code for such a 
> task?

In[1]:=
Tr@Complement[Range[100],{2,6,8}]

Out[1]=
5034
--
To reply via email subtract one hundred and nine


  • Prev by Date: Pattern matches only when named
  • Next by Date: Re: question..
  • Previous by thread: Re: question..
  • Next by thread: Re: question..