Linked Questions

6 votes
1 answer

Order of operations, precedence in Mathematica [duplicate]

I get confused in the order of operations in Mathematica. For example, f /@ 10^{1, 2, 3} {10, 100, 1000} In my head, that ...
Nam Nguyen's user avatar
  • 1,751
3 votes
0 answers

What does the @ symbol do in Mathematica? [duplicate]

I have the folllowing array $$h = \left(\begin{array}{cccc}1 & 0 & 0 & 0\\ 0 & f^2 & 0 & f^2 \cos\theta\\ ...
leastaction's user avatar
0 votes
0 answers

The order of evaluations with nested slots [duplicate]

I tried to join a series of evaluations with nested slots as follows: #^2 & /@ #^2 & /@ Range[10] However, the results were somewhat different from what ...
Satoshi Oota's user avatar
1 vote
0 answers

Length[Range[5]] vs Length@Range[5] [duplicate]

I've looked all over the Wolfram Documentation and done various searches on the web and this site and I can't find an explanation of the single "@" symbol as a means of applying functions. It seems ...
Matt Green's user avatar
1 vote
0 answers

Chaining map and abstract functions -- when (and why) is parenthesization necessary? [duplicate]

I am a bit confused with how do some expressions in Mathematica get parsed. I was using a combination of map (/@) and abstract functions of the form ...
Ondrej Draganov's user avatar
1 vote
0 answers

Getting different results form Tan[x] and Tan @ X [duplicate]

In the post How to Extract data points from plot in mathematica to redraw it with another program?, I found out Tan @ x and ...
Dean's user avatar
  • 655
1 vote
1 answer

Learning Shortcut Syntax - Newbie Question [duplicate]

I'm learning Mathematica in order to work with Linear Algebra. I found a good post here about matrix manipulation, but realized that the author used conventions that I couldn't find documented in the ...
James Mitchell's user avatar
597 votes
19 answers

Where can I find examples of good Mathematica programming practice?

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 ...
211 votes
24 answers

What are some useful, undocumented Mathematica functions?

There have already been some questions about some undocumented functionality in Mathematica. Such as (please add to these lists!) How can one find undocumented options or option values in Mathematica?...
40 votes
5 answers

How to examine the structure of Graphics objects

One difficulty I'm encountering in studying the structure of Graphics objects is that I have not yet found a way to print or display such structures that are ...
kjo's user avatar
  • 11.7k
27 votes
2 answers

Using a list of tuples in a pure function

I want to use a list of tuples within a function to make assignments. Say I want to make assignments of the form value[i,j] = val What I have is a list of ...
gwr's user avatar
  • 13k
42 votes
3 answers

Is there a name for #1@#2&?

Why does the pure function # @ #2 & have no name? I'm asking because sometimes I find inelegant to write expressions like ...
Kuba's user avatar
  • 136k
30 votes
3 answers

Parentheses in pure functions: # & vs. ( # &)

I've been using Mathematica for years, and over time I have developed the habit of using: Select[data, (# == 1 &)] instead of ...
Eric Brown's user avatar
  • 4,396
35 votes
3 answers

Prefix operator with low precedence

The question is simple, but I will elaborate on the background as well for those interested in the idea: How to define a new operator with specified precedence value? Background Mathematica was ...
István Zachar's user avatar
29 votes
3 answers

Difference between @ and @@

I am confused by the commands @ and @@. From the documentation, I learnt that @@ is the ...
user avatar

15 30 50 per page