Linked Questions

2 votes
1 answer
179 views

Two-slot pure function [closed]

I come across this problem in many different forms when doing arithmetic in MMA and have until now just suffered along doing it the long way – having given up trying to figure it out myself – but now ...
BBirdsell's user avatar
  • 1,176
2 votes
2 answers
173 views

How to I use Map to apply a defined function to a list?

Problem: How to map a function onto a list. My (example input: mylist = {{1, 2}, {3, 4}} gg[x_, y_] := {N[x + y], N[x y]} Map[gg, mylist] Expected output: ...
mark r's user avatar
  • 61
1 vote
0 answers
584 views

Map over multidimensional matrix [closed]

Suppose I have a 8by6by4by2by2 matrix called m. There is in total 8*6*4 2by2 matrices. I want to map a function over these 2by2 matrices. Each dimension in ...
MOON's user avatar
  • 3,854
3 votes
2 answers
180 views

Chained sums with Nest

I'm looking to calculate a chained sum like this $$ C_m = \sum\limits_{i_1=1}^N \;\sum\limits_{i_2=i_1+1}^N \;\sum\limits_{i_3=i_2+1}^N \cdots \;\sum\limits_{i_m=i_{m-1}+1}^N A_{i_1}A_{i_2}A_{...
freddieknets's user avatar
  • 1,085
2 votes
1 answer
242 views

TogglerBar with arbitrary dimensions

I'd like to split my TogglerBar into several rows, with it's length given in a list. I found the Appearance options, but they ...
Jason's user avatar
  • 119
3 votes
2 answers
144 views

How can I adjust the global input variable of a function to the value of a local variable within the function

I am trying to define a function f[l_] that will perform an operation on whatever input variable I use (normally I use l which ...
Andrew's user avatar
  • 31
0 votes
1 answer
150 views

Tutorial for Map, Apply, etc

I have this code: ...
Danowsky's user avatar
  • 117
3 votes
0 answers
167 views

How to ScanThread and ScanIndexed?

Why are there MapThread and MapIndexed but no analogous functions for Scan? What is the ...
QuantumDot's user avatar
  • 19.6k
1 vote
1 answer
113 views

Emulating Case Pattern replacement

As most regular users, I have developed utility functions complementing the Wolfram language for frequent tasks. In particular, I have variations on Cases (see ...
ogerard's user avatar
  • 957
0 votes
0 answers
62 views

Where can I find mathematica documentation about @@@? [duplicate]

For example, to build a rule from 2 lists {a,b,c}, {1,2,3}, I use: ...
Hergé's user avatar
  • 73

15 30 50 per page
1 2
3