The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
34 views

Loops over multiple variables (negative i_min)

Can someone explain why i ranges from -3 to 3 in the output of Do[Print[{i, j}], {i, -3, 3}], but not in Do[Print[{i, j}], {i, -3, 3},{j,-i,i}]? I was thinking for the second input I would get ...
0
votes
1answer
68 views

Array element problem in optimization

I have the following piece of code in Mathematica: ...
2
votes
4answers
207 views

How do I find the position of the maximum value in each column of a table?

Given a table of values, I know how to find find maximum values, but how do I find the position of the maximum value in each column. For example, given ...
0
votes
1answer
110 views

Define a Recurrence Table involving other tables

I'm relatively new to using Mathematica. Previously I used Matlab, but lately I noticed that the numbers i got in both of them do not match (mostly it seems that Matlab lacks precision...). The ...
2
votes
0answers
56 views

Unexpected behavior from Indexed

I was going to include Indexed in this answer, thinking that it operated much as a List-only ...
16
votes
4answers
356 views

Make MapIndexed listable

My goal is to apply MapIndexed to every element of a nested list without destroying the arithmetic operations within the elements. For example, let's start with ...
3
votes
1answer
115 views

Collect terms in a sum

Suppose I have this expression ...
7
votes
5answers
379 views

Efficiently finding the positions of a large list of targets in another, even larger list

I have a big list. It contains nearly 60,000 sub-lists. It's structured like bigList = {{x1,y1,z1},{x2,y2,z2},{x3,y3,z3},.....,{x60000,y60000,z60000}}; I have ...