« first day (3369 days earlier)
← previous day
next day →
last day (1116 days later) »
Chris K
3:37 AM
Manipulate newb Q: can I put two vertical sliders next to each other instead of lined up top to bottom?
b3m2a1
@ChrisK
Grid@{{VerticalSlider[Dynamic[a]], VerticalSlider[Dynamic[a]]}}
?
Chris K
@b3m2a1 Thanks for the lead, I'll give it a shot tomorrow
4 hours later…
anhnha
7:29 AM
Is there a better code for this?
list = {1, -1, -1, 1, 0, 0, d, -1, 1};
{Sequence @@ list[[4 ;; 6]], Sequence @@ list[[1 ;; 3]],
Sequence @@ list[[7 ;; 9]]}
I want to swap as above.
kirma
7:51 AM
@anhnha
p = FindPermutation[Range@9, {4, 5, 6, 1, 2, 3, 7, 8, 9}]
(* Cycles[{{1, 4}, {2, 5}, {3, 6}}] *)
Permute[CharacterRange["a", "i"], p]
(* {"d", "e", "f", "a", "b", "c", "g", "h", "i"} *)
You can also
Join
lists instead of applying
Sequence
repeatedly... :)
12 hours later…
Feeds
7:33 PM
Stephen_Wolfram's Twitch video RSS: Science & Technology Q&A for Kids (and others) [Part 43] - LIVE
posted on April 09, 2021
Science & Technology
« first day (3369 days earlier)
← previous day
next day →
last day (1116 days later) »
all rooms
Transcript for
Apr
8
Apr '21
9
Apr
11
Wolfram Mathematica
Welcome! This is the main Mathematica chat room for
mathematic...
4
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile