Reda.Kebbaj
  • Member for 2 years, 8 months
  • Last seen more than a week ago
How to form a diagonal matrix from sub-matrices?
5 votes

G = {{a, b, c}, {d, e, f}, {g, h, i}}; s = Normal[SparseArray[Band[{1, 1}] -> {G, G, G}, {12, 12}]] // MatrixForm $$ \left( \begin{array}{cccccccccccc} a & b & c & 0 & 0 & 0 &...

View answer
How to form a block-diagonal matrix from a list of matrices?
2 votes

a = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; b = {{1, 2}, {3, 4}}; SparseArray[Band[{1, 1}] -> {a, b}] // MatrixForm

View answer
Find second largest elements in list
2 votes

Select[Select[c=Sort[lis],#!=Last[c] &],#==Last[Select[c,#!=Last[c] &]]&]

View answer
Automatic backup on Mathematica
1 votes

Format       Option Inspector                  Show option values : Global Preferences                  + NoteBook Option                     .....File Optiins   x NotebookAutoSave True.               ...

View answer
Find rules for the similar "Conway's Game of Life", and initial input on an 11x11 torus board. Descripted on the "Puzzel Chalenge IBM May"2020"
1 votes

Description Program : The code is using 3 modules after the Intialisation: 1- Torus module 2- Rules module: 3- Excution Module: n generation module using Torus and Rules modules. Initialisations : n = ...

View answer
If someone would want to think about the question: mathematical-optimization "Banknote"
1 votes

Module III : optimization the Challange September October 2019, Probabilty Value of BankNotes selected. AliceBob = Permutations[Range[0, 99], {2}]; HyBankNotes = 65; BankNote = {}; BankNotes = ...

View answer
Problem to draw a graph in circular way
0 votes

I don't know if what you want is this: PathGraph[Range[11], GraphLayout -> {"CircularEmbedding"}, VertexSize -> Large]

View answer
Find rules for the similar "Conway's Game of Life", and initial input on an 11x11 torus board. Descripted on the "Puzzel Chalenge IBM May"2020"
0 votes

Representing n generations: n=16, and the workspace imposed in the puzzle as a (11 $\times$ 11) matrix such that all the live cells are represented by 1 and the dead ones by 0. Also in this ...

View answer
If someone would want to think about the question: mathematical-optimization "Banknote"
0 votes

Module 1 "Functions" : The First optimization problem is to find Functions called "Notes1,Notes2... " such that Functions Minimize All the possibility for diffferentes Banknotes. And prepare ...

View answer
If someone would want to think about the question: mathematical-optimization "Banknote"
0 votes

The September question was extended on october 2019: http://www.research.ibm.com/haifa/ponderthis/challenges/October2019.html: Let's assume that Alice and Bob have two (possibly the same) integer ...

View answer
If someone would want to think about the question: mathematical-optimization "Banknote"
0 votes

Module II "Screen Monitor to show progress value" : optimization the Challange IBM Ponder this September / October 2019 Probabilty Value of BankNotes . g1 = {}; g = ""; g3 = 0; ...

View answer
If someone would want to think about the question: mathematical-optimization "Banknote"
0 votes

Module 1V : Optimization the Challange September 2019 "Tester" Probabilty Value of one BankNotes selected. AliceBob = Permutations[Range[0, 99], {2}]; Label[begin]; Bank = DialogInput[{name = {}}, ...

View answer