5.44 Tuesday, March 1, 2016

================================== 
Top new questions this week: 
==================================

[Typoglycemia text manipulation] http://mathematica.stackexchange.com/questions/108563/typoglycemia-text-manipulation

I was just reading the article: https://en.wikipedia.org/wiki/Typoglycemia

"... readers can understand the meaning of words in a sentence even when the interior letters of each word are scrambled ...

- asked by mrz (20 votes), answered by J. M. (15 votes)

—————————-

[Version inconsistency with optional arguments: what if the default value doesn’t match the pattern?] http://mathematica.stackexchange.com/questions/108636/version-inconsistency-with-optional-arguments-what-if-the-default-value-doesnt

I just came across some weird behaviour. Take this function definition:

ClearAll[f] 
f[vs_List : All] := "match"

The default value of vs is All. Now think about what f[] should return. Should it ...

- asked by Szabolcs (18 votes), answered by Mr.Wizard (12 votes)

—————————-

[Reproducing a ranking function that behaves like Excel’s RANK] http://mathematica.stackexchange.com/questions/108309/reproducing-a-ranking-function-that-behaves-like-excels-rank

I tried to find a function or expression in Mathematica that produces the same output as the RANK function in Excel (see its description here), but unfortunately I could not find an existing one.

For ...

- asked by M.Basel (14 votes), answered by TomD (18 votes)

—————————-

[Given a large binary matrix, find the largest submatrix containing non-zero elements] http://mathematica.stackexchange.com/questions/108299/given-a-large-binary-matrix-find-the-largest-submatrix-containing-non-zero-elem

I’m looking for a way to reduce a binary matrix containing zeros at some positions into a matrix that contains no zeros by deleting rows and columns of the original matrix until only non-zero values ...

- asked by tavr (13 votes), answered by unlikely (4 votes)

—————————-

[Generating a list of numbers that are not multiples of 4] http://mathematica.stackexchange.com/questions/108502/generating-a-list-of-numbers-that-are-not-multiples-of-4

I want to write simple code that will list all numbers from \(1\) to \(n\) that are not multiples of \(4\).

And in this case I consider that

n=100 
 
For[i = 1, i <= n, i++, If[Mod[i, 4] != 0,  ...

- asked by Mariam (12 votes), answered by Mr.Wizard (15 votes)

—————————-

[Can Mathematica convert a RegularExpression into a StringExpression or vice-versa?] http://mathematica.stackexchange.com/questions/108481/can-mathematica-convert-a-regularexpression-into-a-stringexpression-or-vice-vers

I know that Mathematica can perform string comparison using either StringExpression or RegularExpression. Although regular expressions are more common, I feel that the Mathematica StringExpressions ...

- asked by Denis Cousineau (12 votes)

—————————-

[What options and settings can be used to create print quality typeset documents with Mathematica?] http://mathematica.stackexchange.com/questions/108553/what-options-and-settings-can-be-used-to-create-print-quality-typeset-documents

If I am proficient on dedicated typesetting software (e.g. LaTeX) it makes sense to use that for typesetting but if I am not how can I use Mathematica to create good quality documents.

The question ...

- asked by Mike Honeychurch (11 votes), answered by Mike Honeychurch (17 votes)

================================== Greatest hits from previous weeks: ==================================

[1 Plot, 2 Scale/Axis] http://mathematica.stackexchange.com/questions/627/1-plot-2-scale-axis

I would like to plot those two datasets on top of each other. But they have very different range on the \(y\) axis. How can I have two different axis?

I found the following on the help menu but quite ...

- asked by 500 (97 votes), answered by ArgentoSapiens (92 votes)

—————————-

[Generating a Sierpinski carpet] http://mathematica.stackexchange.com/questions/22052/generating-a-sierpinski-carpet

I am trying to draw a Sierpinski_carpet. I have code that works, but I think there is a more elegant way to do than my way. Maybe I couls use Tuples or Permutations or some similar function to ...

- asked by chyaong (43 votes), answered by Mr.Wizard (66 votes)

================================== Can you answer these? ==================================

[Prepending a sequence with zeros gives ‘FindGeneratingFunction‘ hard time] http://mathematica.stackexchange.com/questions/108451/prepending-a-sequence-with-zeros-gives-findgeneratingfunction-hard-time

Asking for

FindGeneratingFunction[{1, 3, 11, 43, 171, 683, 2731, 10923, 43691, 174763}, t] 
 
 
gives the answer (namely (1 - 2 t)/(1 - 5 t + 4 t^2)) almost immediately. 
However if I prepend zeros in  ...

- asked by (3 votes)

—————————-

[Obtaining a Previously Constructed Function as Desired Output] http://mathematica.stackexchange.com/questions/108373/obtaining-a-previously-constructed-function-as-desired-output

I was playing around with some Generalized Trigonometric Functions defined as follows;

 w[n_] := E^((2*\[Pi]*I)/n) 
 
 Ncos[n_, x_] := Expand[(1/n)*Sum[E^(x*w[2 n]^(2 k + 1)), {k, 0, n - 1}]]

...

- asked by Eleven-Eleven (3 votes)

—————————-

[The implementation of FunctionRange] http://mathematica.stackexchange.com/questions/108308/the-implementation-of-functionrange

How exactly does the FunctionRange work? What kind of algorithm does it use? I looked it up in the manual but it doesn’t provide any references or even a name of the algorithm.

It also accepts a ...

- asked by pwl (3 votes)