Drawing picture with straight line (Petros Vrellis's Art)
How do I count the most used functions across a set of notebooks?
How to ReplaceAll except within specified heads
Is this a bug in Replace?
How do I test if a variable represents a sequence?
How to calculate the numerical integral more efficiently?
Optional argument that can be completely omitted?
Drawing picture with straight line (Petros Vrellis's Art) I am trying to extend Writing a word with straight lines for any picture/image. I guess the basic idea is to find a set of points in the image region and then draw random lines through them. Let's ...
- asked by Sumit (16 votes), answered by Rahul (6 votes)
How do I count the most used functions across a set of notebooks?
WolframLanguageData allows us to view the most used functions across several code bases like Wolfram Alpha, the documentation, or Stack Exchange. I was curious about the results for my own collection ...
- asked by Michael Hale (15 votes), answered by Michael Hale (11 votes)
How to ReplaceAll except within specified heads ReplaceAll[expr, rule] and ReplaceRepeated[expr, rule] search through all subexpressions of expr applying rule where they match. Are there built-in Mathematica functions that do the same thing, ...
- asked by QuantumDot (15 votes), answered by JHM (15 votes)
Is this a bug in Replace? http://mathematica.stackexchange.com/questions/125771/is-this-a-bug-in-replace
Consider the following minimal examples. This one works as expected, replacing trees starting from the inside with a numerical value. ClearAll[tree]; x = tree["A", {tree["B", {1, 2}], 3}]; Replace[x, ...
- asked by István Zachar (14 votes), answered by Leonid Shifrin (17 votes)
How do I test if a variable represents a sequence? I created a variable that represents a sequence: mySeq = Sequence[1, 2, 3]; I wanted to use that variable as an argument for some functions. But I got in trouble. For example, FreeQ[mySeq, 1] ...
- asked by Fernando Saldanha (12 votes), answered by Edmund (8 votes)
How to calculate the numerical integral more efficiently? Rencently, I ecountered the following numerical intergral: $$ \begin{cases} \mathbf I_1=\displaystyle \int_{t}\mathbf N' {\mathbf N'}^{\text T}{\rm d}t\\ \mathbf I_2=\displaystyle \int_{t}\mathbf N'' ...
- asked by Shutao Tang (11 votes), answered by Anton Antonov (8 votes)
Optional argument that can be completely omitted? I am writing a simple function return similar words. Clear[similarWords] similarWords[string_]:=Nearest[WordList[],string] I want to add another argument n which is optional. When it presents, it ...
- asked by matheorem (11 votes), answered by Szabolcs (12 votes)