| To: | Stefano Sofia <stefano.sofia@usa.net> |
|---|---|
| Subject: | Re: coefficients for a low pass binomial filter |
| From: | Spencer Graves <spencer.graves@PDF.COM> |
| Date: | Thu, 31 Jul 2003 07:25:54 -0700 |
| Cc: | s-news@lists.biostat.wustl.edu |
| References: | <979HgENFG3264S01.1059656732@uwdvg001.cms.usa.net> |
| User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 |
Have you considered:
choose(k, 0:k)
hope this helps. spencer graves
Stefano Sofia wrote:
Dear Splus users, given the integer k, I need to calculate the coefficients that come from the expansion of (a+b)^(k) Examples: for k=2 a^(2) + 2ab + b^(2)gives as coefficients 1, 2, 1for k=4 a^(4) + 4a^(3)b + 6a^(2)b^(2) + 4ab^(3) + b^(4)gives as coefficients 1, 4, 6, 4, 1Which is the easiest way? Is there any predefined command for that? (I am using Splus4)Thank you Stefano-------------------------------------------------------------------- This message was distributed by s-news@lists.biostat.wustl.edu. To unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with the BODY of the message: unsubscribe s-news |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: plot area, rpugh |
|---|---|
| Next by Date: | Re: plot area, Tzamouranis, Yannis |
| Previous by Thread: | coefficients for a low pass binomial filter, Stefano Sofia |
| Next by Thread: | plot area, Bruno Cutayar |
| Indexes: | [Date] [Thread] [Top] [All Lists] |