Skip to main content

Questions tagged [head]

2 votes
1 answer
254 views

Could it be possible for the SetDelayed function to operate when an image, rather than text, is located at the head of a function? As below, Code1 works as expected, but at code2 which use image of ...
Soon's user avatar
  • 1,671
5 votes
1 answer
601 views

The head of an expression In the Wolfram language / Mathematica, "everything is an expression," to quote a tutorial. I think that every expression has a head. According to the tutorial: The ...
Andrew's user avatar
  • 10.9k
5 votes
1 answer
371 views

Note: This question is for those chaotic systems where the order of maximal Lyapunov exponent is around $10^{-3}$. So it's different from normal chaotic systems like Hénon–Heiles system, Yang-Mills-...
codebpr's user avatar
  • 3,038
3 votes
4 answers
252 views

I would like to replace the occurrences of the head f in an expression. The expression only contains two possible heads: f and g. These heads are applied to exactly two arguments. Example: ...
ExpressionCoder's user avatar
5 votes
1 answer
118 views

Edit: I'm apparently blind. Sorry! And thanks to those who answered anyway. Apologies in advance if this is sort of a nitpicky question, but I'm generally very paranoid that I don't fully understand ...
max's user avatar
  • 111
5 votes
1 answer
252 views

I have a list of values with errors and I use Around[x, dx]. Some of those values have an error of zero though. Mathematica removes the ...
Failboy's user avatar
  • 53
6 votes
1 answer
351 views

I defined Clear[f, g] f[(h : Exp | Log)[x_]] := x; g[(h : Log | Exp)[x_]] := x; The code gives a weird result: ...
Curious Cat's user avatar
11 votes
2 answers
595 views

For example, Map[g, {0, {h[1, 2, 3]}}, {-1}] gives {g[0], {h[g[1], g[2], g[3]]}} I want a ...
matheorem's user avatar
  • 17.8k
2 votes
0 answers
93 views

It seems like mathematica has 2 related data types Audio and sound. Why is there 2 separate data types? When would I use one versus the other? Guesses I know I can convert between them by ...
ions me's user avatar
  • 1,145
2 votes
0 answers
60 views

I have written a financial charting function which has the following signature; ...
RobertNathaniel's user avatar
0 votes
1 answer
178 views

I’m using Manipulate[] to adjust several parameters, which will eventually generate some figures. After I get the desired view, I’d like to store the set of control parameters so that I can reuse them ...
larry's user avatar
  • 755
4 votes
2 answers
322 views

According to the manual, $f@@A$ means apply function $f$ to $A$. If it would be the same if I only use one @? Does $f@A$ still represent apply apply function $f$ to $A$? And it would help a lot if ...
QubitTy's user avatar
  • 109
5 votes
1 answer
165 views

Is it possible to extract n-th part of an expression as a string, without any evaluation? For example, ...
imida k's user avatar
  • 4,465
18 votes
1 answer
470 views

Can we say Head[x] and x[[0]] are identical ? In mathematica manual I could find : 'The head is the part with index 0' But I am not sure whether Head[x] are x[[0]] are really interchangeable in any ...
imida k's user avatar
  • 4,465
2 votes
2 answers
120 views

According to the Mathematica guide, In[26]:= f /@ g[x, y, z] Out[26]= g[f[x], f[y], f[z]] In a simple example, this works as desired with symbolic values: ...
Minkowski's user avatar
  • 143

15 30 50 per page