Linked Questions

608 votes
19 answers
161k views

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
47 votes
3 answers
2k views

This issue has largely been mitigated in 10.0.1. New timings for the final test below are: ...
Mr.Wizard's user avatar
  • 275k
21 votes
4 answers
3k views

First, a bit of a long introduction to my problem: I only have a few weeks of Mathematica experience. I am creating a mathematica application that calculates some material properties of steel based ...
ahhhh's user avatar
  • 315
19 votes
7 answers
1k views

If I have the following Dataset ...
Basheer Algohi's user avatar
10 votes
7 answers
1k views

Here is how to Generate data the function is below with two images to generate data img1 img2 ...
Ali Hashmi's user avatar
  • 9,130
7 votes
6 answers
602 views

I am developing a weighted KNN algorithm. In a step, I need to do the sum of weights of each class. For example: ...
BetterEnglish's user avatar
10 votes
5 answers
933 views

Is there a faster way to find the position of certain elements (referred to as target below) from a list (referred to as myList ...
internet's user avatar
  • 1,417
15 votes
3 answers
617 views

An example in http://www-zeuthen.desy.de/theory/capp2005/Course/hahn/mathematica.pdf amounts to the following ...
murray's user avatar
  • 12.2k
8 votes
4 answers
3k views

Suppose we have a point set, the points are labeled 1,2,3,....n. And p[i] is the coordinate of the point. Now I want the label of nearest and next nearest point (...
matheorem's user avatar
  • 17.7k
9 votes
6 answers
530 views

Consider if you would the case where we have some list of elements: list0 = {54, 4, 7, 9, 3, 54, 4, 20, 2, 456, 2, 3}; And we have some target list: ...
GreenField's user avatar
3 votes
7 answers
429 views

Supposed that: list = {2, 3, 5, 7, 9}; sublist = {{3, 3, 5}, {2, 2, 2, 7, 9}}; I want to change each sublist in sublist as following: Find the positions of ...
incognito007's user avatar
11 votes
2 answers
602 views

Bug introduced in 10.0 and persisting through 11.0.1 or later Bug introduced in 10.0 and fixed in 10.4 Association is new in 10.0. Bug still present: ...
Mr.Wizard's user avatar
  • 275k
3 votes
3 answers
2k views

I have just started to get used to Mathematica's Map, Apply, and related functions, and I can't figure out how to do maps that require working "one level down". For example, I am currently trying to ...
soandos's user avatar
  • 1,040
11 votes
1 answer
351 views

In Mathematica 9, I used to be able to do rules = Dispatch[{'a' -> 1, 'b' -> 2}] rules[[1]] to extract the rules from ...
phantomas1234's user avatar
6 votes
2 answers
355 views

I have spent quite some time trying to figure out what the fastest way is to get a list lists of all subexpressions and their positions. I have tried things with MapIndexed, which seems ideal in cases ...
Jacob Akkerboom's user avatar
9 votes
1 answer
772 views

The issue outlined here seems to be no longer present in version 10, if you use a Dispatch table! This because a Dispatch table ...
Jacob Akkerboom's user avatar
2 votes
4 answers
241 views

I have the following problem and obviously I need help 1) a list of choices --- in fact journals but this doesn't matter ...
cyrille.piatecki's user avatar
3 votes
2 answers
213 views

I have a list of element pairs: pairList = {{1,2}, {2, 3}, {3, 4}, {4, 5}}; I'd list to pick a subset of the elements in this list: ...
user23512's user avatar
2 votes
2 answers
132 views

This question has been addressed adequately for pattern matching. However, I have a similar task with floating point data. I am looking for an efficient way to delete duplicates within a tolerance ...
Aravind Baskar's user avatar