45 questions linked to/from when is f@g not the same as f[g]?
4k views

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 ...
• 1,751
2k views

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\\ ...
• 411
206 views

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 ...
• 341
1 vote
129 views

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 ...
• 417
1 vote
59 views

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 ...
1 vote
47 views

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 ...
• 655
1 vote
55 views

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 ...
154k views

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 ...
17k views

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?...
1k views

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 ...
• 11.7k
2k views

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 ...
• 13k
1k views

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 ...
• 136k
1k views

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 ...
• 4,396
1k views

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 ...
• 46.6k