Questions tagged [array]
The array tag has no usage guidance.
12
questions
3
votes
1
answer
72
views
Move array elements in a circle [closed]
Please, tell me, how you can move the elements of an array in a circle. For example, there is an array:
...
6
votes
5
answers
482
views
How to remove extra brackets from a list?
I have a list which looks like the following:
list1={{{a,b,c},{a1,b1,c1},{an, bn,cn}},{{f,j,k},{f1,j1,k1},{fn, jn,kn}}}
And I need it to be as follows:
...
1
vote
1
answer
108
views
Map array of functions
What is the most elegant way of mapping an array of functions to an array of arguments of the same length? In practice I want to map {f1,f2,f3} and ...
1
vote
1
answer
54
views
About NMinimize with an array of variable
I was trying to test NMinimize on $$ \int_0^1 (a+b(cx+d))^2 dx $$, then I guess it should be minimized when the integrand equals 0. It works fine when the integrand is only (a+bx)^2, I use the code:
<...
0
votes
0
answers
41
views
Operate a two-dimensional array, but it cannot be compiled
I want to operate a two-dimensional array(list), use the FindFit function, do linear simulation, and find the difference between the simulated value and the original value, but it cannot be compiled.
...
1
vote
2
answers
80
views
Can't use iterative variable as part specification [closed]
I've got the following mathematica code:
...
3
votes
4
answers
396
views
Eigenvectors are divided by zero depending on evaluation, 6x6 matrix
I calculated the Eigenvectors of the $6\times 6$ matrix $m$ with parameters $(a,b,c,d,e,f)\in \mathbb{R_{\ge 0}}$. If I set e.g. $b\rightarrow 0$ after calculation, then 4 of the 6 Eigenvectors are ...
4
votes
3
answers
450
views
Eigenvectors are divided by zero depending on evaluation, 4x4 matrix
I calculated the Eigenvectors of the $4\times 4$ matrix $m$ with parameters $(a,b,c,d)\in \mathbb{R_{\ge 0}}$. If I set e.g. $b\rightarrow 0$ after calculation, then some of the Eigenvectors are ...
1
vote
1
answer
50
views
Best way to Simplify (or applying other functions to) a SymmetrizedArray
I wanted to perform an element-wise Simplify[] on a SymmetrizedArray, but I couldn't find an efficient way to do so without converting it to a "Normal" ...
2
votes
3
answers
174
views
Define equations as a pure function with list as argument
I have these set of equations. The number of equations depends on $n,$ which I want to keep control of. The code that I have generates it using Table and equations generated by this does not take an ...
1
vote
1
answer
113
views
Extend the code for more variables (at least 100)
I have this code (not in best shape) for a problem in 3 variables. It does the job. The problem is I want to extend this to more number of variables around 100 at least. It is very painful to extend ...
1
vote
0
answers
67
views
Effectively assign the same value to several indices of a matrix
I want to assign the same value to several indices by using just one command. I could do this for every index separately:
...