Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14536 > unrolled thread
| Started by | Sseziwa Mukasa <mukasa@gmail.com> |
|---|---|
| First post | 2013-05-19 09:47 +0000 |
| Last post | 2013-05-19 09:47 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: skipping some i, j , ... values in Table Sseziwa Mukasa <mukasa@gmail.com> - 2013-05-19 09:47 +0000
| From | Sseziwa Mukasa <mukasa@gmail.com> |
|---|---|
| Date | 2013-05-19 09:47 +0000 |
| Subject | Re: skipping some i, j , ... values in Table |
| Message-ID | <kna72k$fvu$1@smc.vnet.net> |
Insert {} when the condition is true eg,
Flatten[Table[If[PrimeQ[i+j],{},something[i,j]],{i,10},{j,10}]]
On Saturday, May 18, 2013, Andre Hautot wrote:
>
> Hi,
> Suppose I need a list, Flatten[Table[something[i,j],{i,10},{j,10}]],
> where some combinations of indices i and j are voluntarily missing under
> a known condition (for example, stupid I know, when i+j is a prime).
> How can I do that ?
> Thanks in advance,
> ahautot
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web