Linked Questions

3 votes
4 answers
400 views

Order of operations for the Table function [duplicate]

Possible Duplicate: Using pure functions in Table I have run into a situation that I do not understand when trying to generate a nested list of pure functions. I have the following code. ...
Carl Morris's user avatar
3 votes
2 answers
460 views

Table of Buttons [duplicate]

What's the correct way to form a table of buttons in which each action depends on the index in the table? E.g., I want to get {Button[1,f[1]],Button[2,f[2]]} ...
Andrew Dabrowski's user avatar
1 vote
2 answers
684 views

Create an indexed list of functions [duplicate]

I am trying to use a Table to create the following object: {f[#,1]&,f[#,2],f[#,3]} The obvious doesn't work, ...
Jorge Ramirez's user avatar
3 votes
2 answers
346 views

How do I generate a list of delayed rules? [duplicate]

I want a list like this: {x :> Print[1], x :> Print[2], x :> Print[3], x :> Print[4], x :> Print[5]} I tried: ...
xzhu's user avatar
  • 704
1 vote
1 answer
463 views

Input Matrix using Table and InputField [duplicate]

I'm trying to make a square matrix of InputFields, where the size is dependent on what the user chooses. Each cell should be independent of each other. Here's ...
J_Nat's user avatar
  • 346
1 vote
3 answers
96 views

Controlling the evaluation of other arguments in pure functions [duplicate]

I have a piece of code where I would like to do the something like the following: ...
jmizrahi's user avatar
  • 151
0 votes
1 answer
332 views

Using the Function construct in a table with parameters [duplicate]

I'd like to define a table of functions like so Table[Function[{x,y},{x + k y,x - k y}] , {k,1,10}] My intention is to have the first function defined with k=1, ...
Teddy's user avatar
  • 153
1 vote
1 answer
232 views

How to create list of delayed rules? [duplicate]

I am trying to make a ButtonBar that prints the name of the card in question. What I have so far is as follows: ...
Aron's user avatar
  • 1,762
1 vote
0 answers
165 views

How to substitute inside Hold? How to create table of summation (with Sigma symbol) expressions? [duplicate]

I would like to create table of summation expressions, which are not evaluated, but summation limits are substituted. I can't accomplish this so far. If I write I get summation expanded. If I ...
Suzan Cioc's user avatar
  • 2,043
1 vote
1 answer
122 views

Why doesn't Table work for list of pure functions? [duplicate]

I wrote a function InversionF[f__] := Table[Function[x, 1 - ff[x]], {ff, {f}}] I was thinking that for list of functions, it will create list of modified ...
Dims's user avatar
  • 755
0 votes
0 answers
126 views

Button action evaluation [duplicate]

An example of the problem I am encountering: ...
M. Robinson's user avatar
2 votes
1 answer
66 views

What' s wrong with my code with `play` in table [duplicate]

I couldn't find the reason why the following code consumming my time (1min no output results): ...
van abel's user avatar
  • 1,245
1 vote
1 answer
101 views

Appending functions to a list [duplicate]

Could someone please explain the difference between these methods, and possibly a nicer way to get the first result? (This is a toy example and in my real program I'd like to use ...
user avatar
1 vote
2 answers
89 views

How to make variable values from evaluation time persist in Manipulate? [duplicate]

In the context of automatic report generation, I am trying to use a For loop to Print out a number of ...
Jake's user avatar
  • 155
0 votes
1 answer
60 views

Table yields unexpected result [duplicate]

I evaluated Table[#[[i]] &, {i, 1, 5}] and got ...
Max1's user avatar
  • 1,125

15 30 50 per page