Multicolumn OutputMapThread with several cells as outputAssign the output of a loopUnexpected output from oddSublistsWhat is this Counts[] output format?Output matrix with common elementsSeparation of outputFunction outputHelp with limiting outputoutput has a term uncomputedOutput of List@@func
How to ask if I can mow my neighbor's lawn
Using roof rails to set up hammock
Why can't I craft scaffolding in Minecraft 1.14?
Do my partner and son need an SSN to be dependents on my taxes?
How to address players struggling with simple controls?
Is swap gate equivalent to just exchanging the wire of the two qubits?
Will users know a CardView is clickable?
Digital signature that is only verifiable by one specific person
How do I become a better writer when I hate reading?
Fill the maze with a wall-following Snake until it gets stuck
I have found ports on my Samsung smart tv running a display service. What can I do with it?
How to search for Android apps without ads?
What is the context for Napoleon's quote "[the Austrians] did not know the value of five minutes"?
Catching a robber on one line
What is the precise meaning of "подсел на мак"?
Is this set open or closed (or both?)
Testing thermite for chemical properties
Is the infant mortality rate among African-American babies in Youngstown, Ohio greater than that of babies in Iran?
How do I run a script as sudo at boot time on Ubuntu 18.04 Server?
Is there a risk to write an invitation letter for a stranger to obtain a Czech (Schengen) visa?
Having some issue with notation in a Hilbert space
Can you cover a cube with copies of this shape?
Can "Es tut mir leid" be used to express empathy rather than remorse?
Redirecting output only on a successful command call
Multicolumn Output
MapThread with several cells as outputAssign the output of a loopUnexpected output from oddSublistsWhat is this Counts[] output format?Output matrix with common elementsSeparation of outputFunction outputHelp with limiting outputoutput has a term uncomputedOutput of List@@func
$begingroup$
The code
Multicolumn[
Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100],
5]
yields 5 columns of primes 2, ...,541, each paired with its least positive primitive root (LPR). I wish to display the output without curly braces or commas in 10 columns with 20 rows. The desired output is shown below. Any help is appreciated.
Thanks.
list-manipulation
New contributor
$endgroup$
add a comment |
$begingroup$
The code
Multicolumn[
Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100],
5]
yields 5 columns of primes 2, ...,541, each paired with its least positive primitive root (LPR). I wish to display the output without curly braces or commas in 10 columns with 20 rows. The desired output is shown below. Any help is appreciated.
Thanks.
list-manipulation
New contributor
$endgroup$
$begingroup$
Multicolumn generates a Grid. You can postedit using /. a_, b_ :> Sequence[a, b]
$endgroup$
– Algohi
Jun 9 at 5:36
add a comment |
$begingroup$
The code
Multicolumn[
Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100],
5]
yields 5 columns of primes 2, ...,541, each paired with its least positive primitive root (LPR). I wish to display the output without curly braces or commas in 10 columns with 20 rows. The desired output is shown below. Any help is appreciated.
Thanks.
list-manipulation
New contributor
$endgroup$
The code
Multicolumn[
Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100],
5]
yields 5 columns of primes 2, ...,541, each paired with its least positive primitive root (LPR). I wish to display the output without curly braces or commas in 10 columns with 20 rows. The desired output is shown below. Any help is appreciated.
Thanks.
list-manipulation
list-manipulation
New contributor
New contributor
edited Jun 9 at 1:05
Carl Lange
6,99411748
6,99411748
New contributor
asked Jun 9 at 0:07
DavidDavid
333
333
New contributor
New contributor
$begingroup$
Multicolumn generates a Grid. You can postedit using /. a_, b_ :> Sequence[a, b]
$endgroup$
– Algohi
Jun 9 at 5:36
add a comment |
$begingroup$
Multicolumn generates a Grid. You can postedit using /. a_, b_ :> Sequence[a, b]
$endgroup$
– Algohi
Jun 9 at 5:36
$begingroup$
Multicolumn generates a Grid. You can postedit using /. a_, b_ :> Sequence[a, b]
$endgroup$
– Algohi
Jun 9 at 5:36
$begingroup$
Multicolumn generates a Grid. You can postedit using /. a_, b_ :> Sequence[a, b]
$endgroup$
– Algohi
Jun 9 at 5:36
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
You can Flatten
every row of the grid object produced by MultiColumn
using MapAt
:
MapAt[Flatten,
Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5] ,
1, All]
Alternatively, you can use FlattenAt
:
FlattenAt[Tuples[1, Range[100/5], Range[5]]] @
Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5]
same picture
You can also transform each pair a, b
in the table into a Row
separated by Spacer
:
Multicolumn[Table[
Row[Prime[i], First[PrimitiveRootList[Prime[i]]], Spacer[1]],
i, 1, 100], 5]
$endgroup$
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "387"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
David is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f199995%2fmulticolumn-output%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
You can Flatten
every row of the grid object produced by MultiColumn
using MapAt
:
MapAt[Flatten,
Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5] ,
1, All]
Alternatively, you can use FlattenAt
:
FlattenAt[Tuples[1, Range[100/5], Range[5]]] @
Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5]
same picture
You can also transform each pair a, b
in the table into a Row
separated by Spacer
:
Multicolumn[Table[
Row[Prime[i], First[PrimitiveRootList[Prime[i]]], Spacer[1]],
i, 1, 100], 5]
$endgroup$
add a comment |
$begingroup$
You can Flatten
every row of the grid object produced by MultiColumn
using MapAt
:
MapAt[Flatten,
Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5] ,
1, All]
Alternatively, you can use FlattenAt
:
FlattenAt[Tuples[1, Range[100/5], Range[5]]] @
Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5]
same picture
You can also transform each pair a, b
in the table into a Row
separated by Spacer
:
Multicolumn[Table[
Row[Prime[i], First[PrimitiveRootList[Prime[i]]], Spacer[1]],
i, 1, 100], 5]
$endgroup$
add a comment |
$begingroup$
You can Flatten
every row of the grid object produced by MultiColumn
using MapAt
:
MapAt[Flatten,
Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5] ,
1, All]
Alternatively, you can use FlattenAt
:
FlattenAt[Tuples[1, Range[100/5], Range[5]]] @
Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5]
same picture
You can also transform each pair a, b
in the table into a Row
separated by Spacer
:
Multicolumn[Table[
Row[Prime[i], First[PrimitiveRootList[Prime[i]]], Spacer[1]],
i, 1, 100], 5]
$endgroup$
You can Flatten
every row of the grid object produced by MultiColumn
using MapAt
:
MapAt[Flatten,
Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5] ,
1, All]
Alternatively, you can use FlattenAt
:
FlattenAt[Tuples[1, Range[100/5], Range[5]]] @
Multicolumn[Table[Prime[i], First[PrimitiveRootList[Prime[i]]], i, 1, 100], 5]
same picture
You can also transform each pair a, b
in the table into a Row
separated by Spacer
:
Multicolumn[Table[
Row[Prime[i], First[PrimitiveRootList[Prime[i]]], Spacer[1]],
i, 1, 100], 5]
edited Jun 9 at 1:30
answered Jun 9 at 0:30
kglrkglr
198k10223449
198k10223449
add a comment |
add a comment |
David is a new contributor. Be nice, and check out our Code of Conduct.
David is a new contributor. Be nice, and check out our Code of Conduct.
David is a new contributor. Be nice, and check out our Code of Conduct.
David is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Mathematica Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f199995%2fmulticolumn-output%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
Multicolumn generates a Grid. You can postedit using /. a_, b_ :> Sequence[a, b]
$endgroup$
– Algohi
Jun 9 at 5:36