Group Abstract Group Abstract

Message Boards Message Boards

0
|
5K Views
|
7 Replies
|
0 Total Likes
View groups...
Share
Share this post:

built a MATRIX from 2 vector out

hi

4 ex. i get this 2 vector OUT from other operationÂ…

out[1]={7,14,21,28,35,42,49,56,63,70}

out[2]={35,70,105,140,175,210,245,280,315,350,385,420,455,490,525,560,595,630,665,700,735,770,805,840,875,910,945,980,1015,1050,1085}

wanna get a MATRIX where at 1st TOP LINE there is out[1], at 1st LEFT COLUMN out[2] and the OPERATION is MOD[out2, out1] in all his pairs combinations.

the ex. image is made by excel

tnk's

Attachments:
POSTED BY: Mutatis Mutandis
7 Replies

someone has experience with multi-alphabet cipher (Blaise de Vigenère)? Mathematica is capable of performing encoding and decoding by providing the key?

POSTED BY: Mutatis Mutandis

everything is possible, just know how to do it ... thank you

POSTED BY: Mutatis Mutandis

Of course it is! Try:

ClearAll["Global`*"]
h = {7, 14, 21, 28, 35, 42, 49, 56, 63, 70};
v = {35, 70, 105, 140, 175, 210, 245, 280, 315, 350, 385, 420, 455, 
   490, 525, 560, 595, 630, 665, 700, 735, 770, 805, 840, 875, 910, 
   945, 980, 1015, 1050, 1085};

TableForm[Outer[Mod, v, h] /. 0 -> Style[0, Red], TableHeadings -> {v, h}]
POSTED BY: Sander Huisman

Is it possible apply a conditional formatting to table? 4 ex coloring in RED all instances of 0?

POSTED BY: Mutatis Mutandis

In this case you even shorten it:

TableForm[Outer[Mod, v, h], TableHeadings -> {v, h}]
POSTED BY: Sander Huisman

EUREKA! tnk's

POSTED BY: Mutatis Mutandis

Hi Peppa Pig, try:

ClearAll["Global`*"]
h = {7, 14, 21, 28, 35, 42, 49, 56, 63, 70};
v = {35, 70, 105, 140, 175, 210, 245, 280, 315, 350, 385, 420, 455, 
   490, 525, 560, 595, 630, 665, 700, 735, 770, 805, 840, 875, 910, 
   945, 980, 1015, 1050, 1085};

TableForm[Outer[Mod[#1, #2] &, v, h], TableHeadings -> {v, h}]

Regards -- Henrik

POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard