Linked Questions

3
votes
4answers
178 views

@ and Sequence ( and /@ ) [duplicate]

list = { {a,b}, {c,d}, {e,g} } How to efficiently get { f[a,b], f[c,d], f[e,g] } I tried various combinations using ...
4
votes
4answers
228 views

How do I pass a “list of lists” as the argument to a function of the form F[x,y]? [duplicate]

I have a function F[x,y] and a list of the form: {{a1,b1},{a2,b2},{a3,b3},{an,bn}} Basically, I want to pass the list ...
1
vote
1answer
123 views

How to use a table with two variables as the values for a function with two variables (x and y)? [duplicate]

I'm sorry if this is a dumb question. I am a student and have 0 prior experience with Mathematica or any sort of coding and I have looked at various resources trying to figure it out myself but still ...
3
votes
2answers
46 views

How to use an imported table data in a calculation of f[x,y,z], where each row of the column correspond to x,y,z? [duplicate]

I have a table with desired inputs of a given function efvc[n,m,u]. I want to calculate for different values of n, ...
1
vote
1answer
40 views

How to use Apply and Map properly in this situation? [duplicate]

So this does what I want: #1 <> #2 &["♠", "A"] ♠A The output is fine. How do I quickly apply this to the list ...
1
vote
0answers
97 views

Applying a function of two variables to a the elements in a list of pairs [duplicate]

I have a function: f = # - ((1 - #2)*a + #2*b) &; and I would like to apply it to a list like this: {{1,2},{2,3}....} I ...
2
votes
0answers
43 views

Apply all possible permutations into a function [duplicate]

I need to create a function that returns all possible trebles of integers that sum up to a given number. For example, is n=2 then I need something like this: ...
0
votes
0answers
29 views

Apply a function to each array in a list of arrays [duplicate]

Given a function f[x_,y_], and an array {{x1,y1},{x2,y2},...}, how would one go about applying the function to each {xn,yn}? I attempted using Map[f[#,#]&,array], but that applied the function ...
0
votes
0answers
11 views

Evaluating a function over the rows of a matrix [duplicate]

I performed quite a search, and I am unable to find a quick solution to the following problem. I have a $p \times q$ matrix $c$, say c = {{1 , 3}, {3, 4}} and ...
33
votes
3answers
7k views

How do I convert an argument list to a sequence of arguments?

I think this is a basic question, but I am having difficulty finding the answer in the documentation. Thread is not what I am looking for, I think. Suppose that I ...
7
votes
9answers
688 views

How to substitute values from a list into a function?

I was hoping to take pairs of numbers from a list and substitute them into a function. So if my list was list = {{1,2}, {3,4}, {5,6}} and my function was <...
3
votes
3answers
440 views

Map and Pure Function

Trying to take the first item of a member and raising it to the power of the second item of the same member and then subtracting the output from the third item of the same member, the list: ...