Linked Questions

1 vote
1 answer
467 views

I am trying to understand the true difference/usage of a pure function vs a "normal" function. Besides the argument that a pure function is particularly handy when it comes to a single usage, are ...
hal's user avatar
  • 803
2 votes
1 answer
383 views

Possible Duplicate: Functions vs. patterns I thought about describing the context in which I faced this problem, but I figured it is general enough and clear enough to pose it as it is. What is ...
yohbs's user avatar
  • 7,125
3 votes
1 answer
111 views

A function defined by f[x_]:=<code> and applied on every element of a list as f /@ testList seems to take longer than the ...
Ondrej Draganov's user avatar
1 vote
0 answers
52 views

Is it better to use pure Function assigned to symbols as their OwnValues vs function defined by patterns as symbol's ...
user13892's user avatar
  • 10.4k
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 ...
78 votes
4 answers
23k views

Is it possible to save a function which was created via Interpolation of some data in such a way that I can use this function in a new Mathematica session without ...
partial81's user avatar
  • 3,121
83 votes
3 answers
10k views

Being functional, and having no "quotation", i.e. essentially treating data and programs semantically same, Mathematica seems naturally capable of doing metaprogramming. But could anyone construct a ...
user13253's user avatar
  • 8,764
56 votes
3 answers
2k views

Packed arrays are very useful because they save memory and generally allow speedier and more efficient calculation times. If a list of data currently stored as a packed array is unpacked, it can slow ...
Verbeia's user avatar
  • 34.5k
43 votes
4 answers
4k views

I would like to use Compile with functions defined outside Compile. For example if I have the two basic functions ...
faysou's user avatar
  • 11.1k
52 votes
2 answers
8k views

I cannot understand the difference between Apply, Scan, and Map. I have tried to play with ...
MOON's user avatar
  • 3,936
57 votes
2 answers
3k views

SubValues, as discussed in a previous question, are declared as follows ...
rcollyer's user avatar
  • 34.3k
13 votes
4 answers
1k views

I'm wondering how to properly assess the type of arguments passed to functions defined with :=. I want my functions to be the most efficient, unambiguous and clear ...
CHM's user avatar
  • 3,455
11 votes
4 answers
759 views

This is a rather general question, which I fail to answer myself. I guess it is mainly due to my insufficient knowledge of the precise terms. If I understand correctly, the following are equivalent: ...
Dror's user avatar
  • 1,921
20 votes
3 answers
2k views

For example, I hate that Mathematica uses Pochhammer symbol in outputs and prefer all the expressions in Gamma function. How can ...
Anixx's user avatar
  • 3,862
8 votes
4 answers
16k views

I've moved this question over from StackExchange to get better visibility (and deleted the old question). I have a user-defined relationship I'd like to plot: ...
cjpembo's user avatar
  • 1,292

15 30 50 per page