Skip to main content

Questions tagged [syntax]

Questions on the correct (or improved) formulation of Mathematica code to achieve particular results. Use this tag (not "symbol") for questions about all those odd @@ /@ # & and _ characters, which are keyboard shortcuts for the Wolfram Language named functions Apply, Map, Slot, Function, and Blank.

3 votes
0 answers
135 views

I want to have multiple timings inside a compiled code. However, it turns our that AbsoluteTime[] does not work: ...
John Taylor's user avatar
  • 6,063
12 votes
4 answers
547 views

We can define anonymous functions like this: #^2+#+1 & or like this x |-> x^2+x+1 When we want to define a recursive ...
jjagmath's user avatar
  • 533
0 votes
1 answer
77 views

I mainly use the {x,xmin,xmax} form in plotting functions, and I probably assume, if forced to think about it, that it's a hard restriction. Someone recently asked ...
Tom Barson's user avatar
0 votes
0 answers
94 views

I was wondering if you could help me with an error message. The message is: [<<19>>,{<<1>>},{a53,-Infinity,Infinity}]is incomplete; more input is needed. The expression ...
Corselet's user avatar
3 votes
2 answers
244 views

I seek help coding an algorithm that shows when $e^{1/e}$ is repeatedly raised to itself it will eventually converge to $e$. The context for this post comes from this same question on M.SE: What ...
user1540346's user avatar
2 votes
0 answers
120 views

I have a set of pairs of numbers {id, quantity}, which I store in the table tab; id takes discrete values, and ...
John Taylor's user avatar
  • 6,063
2 votes
3 answers
370 views

When I import a DOT file (or a string in that format) with labels containing the exact characters \\l or \\r, they are displayed ...
Mark S.'s user avatar
  • 1,143
0 votes
0 answers
108 views

Consider the following simple routines: ...
John Taylor's user avatar
  • 6,063
0 votes
0 answers
167 views

I have a large table for which I need to do the following: Split it into many smaller tables. For each smaller table, iteratively perform some action. Within each iteration, I have either to (a) ...
John Taylor's user avatar
  • 6,063
2 votes
2 answers
174 views

I have a 2D table tab, each row is {type, weight}. I want to iteratively sample a few rows with probability proportional to <...
John Taylor's user avatar
  • 6,063
2 votes
1 answer
137 views

I defined a function of two variables H[x, t] in my code, and then attempted to define a second function G[x, t] through the ...
Bruno Souza Leão Torres's user avatar
1 vote
0 answers
86 views

Consider the following expression: ...
John Taylor's user avatar
  • 6,063
0 votes
0 answers
46 views

Consider this code defining the "fields" field and their "derivatives" dfield for some list ...
John Taylor's user avatar
  • 6,063
2 votes
2 answers
334 views

Consider the following expression: expr = -((I G8 d\[Eta]pr[x, \[Mu]]^2 K0[x] f\[Pi])/Sqrt[2]) + ( I G8 d\[Pi]0[x, \[Mu]]^2 K0[x] f\[Pi])/Sqrt[2] I want to ...
John Taylor's user avatar
  • 6,063
0 votes
0 answers
134 views

In this code ...
Superunknown's user avatar

15 30 50 per page
1
2 3 4 5
70