Questions about applying functions or operators to expressions, especially constructs that take advantage of Map (/@) functionality.

learn more… | top users | synonyms

0
votes
1answer
82 views

Mapping a simple 2 variable function

Quick Question: What is the best way to map this function so it performs seperately for 102 different values of x? ...
3
votes
0answers
38 views

Custom iterable objects

I understand that to create objects with custom behavior with respect to existing code one uses upvalues. However, I'm at loss when it comes to guess what interface is expected from objects fed to ...
3
votes
0answers
57 views

Monitor CUDA function

Is there a way to monitor CUDA function without bringing much performance reduction. For example, Map can be monitored by ...
3
votes
0answers
73 views

Is there an equivalent to MovingMap[] for functions that work on more than one TimeSeries?

I have a family of functions that require two TimeSeries (A and B). As a trivial example, imagine a function called beta[tsA_,tsB_] that determines the slope of the linear regression line for the ...
1
vote
0answers
78 views

Using Map instead of For?

Since i am new to mathematica i tried to do some code with several for-loops. However i saw that mathematica is not efficient with for loops and discovered some functions like map etc. So my question ...
1
vote
0answers
50 views

Mapping over two indices with a condition

How can I use Map over two indices with a condition? I am trying to calculate second derivative of an eigenvalue, $\lambda_i(x)$, of $n \times n$ matrix $M(x)$ ...
0
votes
0answers
40 views

Trying to understand Function with Sequence, Map and Block (FormCalc, FeynArts)

I am trying to understand some functions of FeynArts and FormCalc (http://www.feynarts.de/), but I don't have a clue what this function does (in Analytic.m): ...
0
votes
0answers
46 views

how to use a tree as a key to construct a table of key values

I have an interesting problem that I was able to summarize in the form of trees, sets, and key value pairs. I have the following sets of keys and values \begin{equation} \begin{aligned} k_0 &= [A]...
0
votes
0answers
128 views

Referring to arguments in nested functions

I am interested in executing the following command but don't know the proper syntax to distinguish between nested arguments, here at the Select[] and Map[] levels. For example, ...
0
votes
0answers
124 views

Loop in a loop, or how to evaluate complex expressions

I need to find $h_{0j}$ for every $1\leq j\leq300$, where \begin{multline*} h_{0j} = \sum_{q=1}^{Q}g_qe^{-\lambda_q j\Delta}\frac{e^{\lambda_q\Delta}-1}{\lambda_q} + \sum_{p=1}^{P}\frac{e^{-\alpha_p j\...