Skip to main content

Questions tagged [core-language]

Questions on the basic structure of the Mathematica language (Wolfram language) including atomic data types, syntax etc

3 votes
1 answer
221 views

I understand BlankSequence in other contexts, but not this one __h means a pattern of one or more things each of which have head ...
Tapiocaweasel's user avatar
2 votes
1 answer
145 views

I recently learned about the possibilities of EvaluationData, and would like to analyse for example the behavior of NIntegrate. ...
lesobrod's user avatar
  • 2,590
1 vote
0 answers
78 views

Certain Atoms (by which i mean things for which AtomQ gives True), like Complex, and even ...
Tapiocaweasel's user avatar
3 votes
3 answers
243 views

I often work with point processes and need simple graphical representation of points. Processes are investigated in all three dimensions, so arrays of points look like that: ...
lesobrod's user avatar
  • 2,590
8 votes
1 answer
472 views

OK, of course I know that, as mentioned in e.g. here, symbol names in Mathematica cannot contain underscore _ because it's a reserved character, but, what's ...
xzczd's user avatar
  • 71.6k
3 votes
2 answers
281 views

I was running into a strange error that boils down to this Myfunction[List_]:= Transpose[{List}] Test = {1, 2}; Myfunction[Test] The output is ...
Charles Chen's user avatar
9 votes
2 answers
978 views

The behavior of pattern matching in functions surprised me at the unexpected behavior of this example ...
Somos's user avatar
  • 5,252
4 votes
1 answer
195 views

I am having trouble understanding how functions work in mathematica. Consider the following. ...
EEH's user avatar
  • 146
9 votes
2 answers
469 views

My example is f[f[f[startValue, 1], 2], 3] which I would like to display as f[startValue, 1] // f[#, 2]& // f[#, 3]& ...
PaulCommentary's user avatar
2 votes
3 answers
468 views

In the process of modelling the interaction of charged particles on circle I encountered s.c. circular values calculations. Consider unit circle and set some point $O$ as starting. The position of any ...
lesobrod's user avatar
  • 2,590
2 votes
2 answers
150 views

I'm trying to create a function that handles operators. The only thing left to do is implement the commutator. The minimal working example of func is ...
hlediks's user avatar
  • 499
3 votes
1 answer
172 views

Is there a smart way to get nearest (given number num to given element elem) elements of list, except element itself? This works ...
lesobrod's user avatar
  • 2,590
3 votes
3 answers
506 views

I make heavy use of Out in Mathematica's notebook environment. When I get a computation to work, it will often be spread across multiple cells and lines with ...
Diffycue's user avatar
  • 1,973
3 votes
1 answer
97 views

BinCounts sometimes outputs data as SparseArray, and sometimes Normal. This does not depend ...
lesobrod's user avatar
  • 2,590
4 votes
0 answers
107 views

First, consider this toy example: expr = (1 - x)/(x^2 + y^2); Clear[f]; f[x_?NumericQ, y_?NumericQ] := expr "Wait, this function definition is wrong! "...
xzczd's user avatar
  • 71.6k

15 30 50 per page
1
2 3 4 5
42