Questions tagged [map]
Questions about applying functions or operators to expressions, especially constructs that take advantage of Map (/@) functionality.
413
questions
6
votes
1
answer
222
views
Adding shadows to spiric sections of a torus
While adding shadows to the spiric sections of a torus using the The answer to the question given by Daniel Huber, I faced a problem.
Instead of being well separated as previously, the sections ...
1
vote
1
answer
61
views
Define certain argument in functions which depend on several arguments and built in a list
I got confused working with list of functions of two variables.
I construct few lists of functions, one is vector of functions List1 and another is 2D list of ...
1
vote
0
answers
138
views
Cross product of a vector and a matrix
I defined a symbolic matrix with vector elements as:
...
4
votes
0
answers
149
views
Finite Time Lyapunov Spectrum (FTLS)
The stadium billiard is a $2D$ chaotic system. We know this by studying its specular reflection patterns and Poincare section (or Poincaré-Birkhoff coordinates (PBC)). However, both methods are ...
2
votes
1
answer
82
views
Log scale of y-axis is still very small [closed]
I am trying to use LogPlot of Mathematica to rewrite only y-axis (not x-axis) of the plot as log scale. But the y-axis is still very small.
By the following code
<...
5
votes
5
answers
406
views
How to stop mapping on true results for large lists?
Assuming I have a long list (real data with more than 100k elements). I have a function that I want to apply to the list, for example, EvenQ. I want the mapping to stop once the result for one element ...
0
votes
1
answer
36
views
Map Integrate onto one single term
This is related to the question (Integrate many simple terms fast) I had before, where Nasser gave me an answer which worked 'most of the time' but not always. Context: ...
5
votes
3
answers
219
views
How to highlight top N elements in each table column?
I have tables with column and row headings, similar to this one:
table = {{"",0.1,0.01},
{{1,0},1,3},
{{1,1},2,4}}
I want to highlight top N elements in ...
6
votes
1
answer
142
views
Want Map function to apply over sum of terms but not product
For a given function F, if I use Map[F,a+b+c d], Mathematica returns, as desired:
F[a]+F[b]+F[c d] ;
However, for ...
1
vote
0
answers
37
views
Change specific elements of a list [closed]
I have currently looking to change specific elements of a list.
I saw that you can apply a fonction to an element if you know it's position as shown in this question : Apply function to specific ...
7
votes
8
answers
480
views
Accumulated instance count of each list element
Given a list with repeated elements, for example:
list = {m, i, s, s, i, s, s, i, p, p, i}
I'd like to determine, for each position in the list, how many times the ...
2
votes
3
answers
190
views
Table with additional conditions for the generated objects
Suppose that I have a function
prob[n_] := Table[Subscript[p, i], {i, 1, n}]
that generates tuples with n entries that correspond to probabilities. What I would ...
1
vote
1
answer
80
views
How can I make a map to solve in a list of coefficients of an equation?
I have a list
list = {{2, -4, 3, 1, -2}, {2, -3, -4, -1, -2}, {2, -3, 4, -1, -4}}
and
...
3
votes
4
answers
197
views
How to express a list of lists of rules as functions?
Given a list of lists of rules as follows:
...
3
votes
2
answers
254
views
How to map an unbalanced list of lists as functions?
Given:
Map[f, {{a, f, h, m, n, k},{a, b}, {z, d, f, h, k}, {c, d, e}, {c, p}}]
I like to have a list of ordered functions as ...