Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14536 > unrolled thread

Re: skipping some i, j , ... values in Table

Started bySseziwa Mukasa <mukasa@gmail.com>
First post2013-05-19 09:47 +0000
Last post2013-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.


Contents

  Re: skipping some i, j , ... values in Table Sseziwa Mukasa <mukasa@gmail.com> - 2013-05-19 09:47 +0000

#14536 — Re: skipping some i, j , ... values in Table

FromSseziwa Mukasa <mukasa@gmail.com>
Date2013-05-19 09:47 +0000
SubjectRe: 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
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web