25,960 reputation
252122
bio website
location Argentina
age
visits member for 2 years, 3 months
seen 9 hours ago

My email:

StringTake[ ExampleData[{"Text", "Hamlet"}] <> "@", List /@ {45, 114, 132, 134, 138, 142, 2933, 2939, -1, 2994, 3184, 3189, 3213, 3305, 3364, 3427, 3446, 3473}] // StringJoin


Apr
14
comment Create a new infix operator
@Mr.Wizard it's ok. I agree the questions seem duplicates. But I think my answer here doesn't fit there, since it was a workaround for the specific problem of this question.
Apr
7
comment How to match a cyclically repeating sequence?
I am not sure if it is THAT slow. There should be about Binomial[1200+2,2] or 721801 sequences to try. Do[f[i], {i, 1*^6}] // Timing already takes the order of a second, so I doubt it can be improved more than an order of magnitude the most
Apr
4
comment AstronomicalData not including units?
AstronomicalData is older than the units. But, from what we can see in the new WL documentation, they will start coming with units.
Apr
1
comment How can I do symbolic vector differentiation in mathematica?
You seem to be adding At.x which is a column vector with the quadratic form xt.B.x which is a number? Also, xt.C would be a row vector
Apr
1
comment Plot Wiener Process and its running maximum
You could try using FoldList[Max, .... over the list of values generated with RandomFunction
Mar
24
comment Solving Heat equation
Hello. You are putting your constraints u[-10,t]==0 and the other one as second and third arguments to DSolve and that's not what the docs say
Mar
3
comment Does RandomInteger[{0,n}] disfavor n?
"MKL" tutorial/RandomNumberGeneration#185956823
Mar
3
comment Efficient backtracking with Mathematica
If your code references someone else's, it's worth mentioning, so I edited in the reference
Mar
3
comment Does RandomInteger[{0,n}] disfavor n?
A few weeks ago I saw that the default uniform random generator has a big bias towards 0 in the last 2 bits of the double, specially the last one. The Intel one doesn't seem like it. MATLAB's also had a small bias. But who cares, you are just talking about hundreds of integers
Mar
3
comment Does RandomInteger[{0,n}] disfavor n?
It's just the histogram's default binning that isn't always divisible by the number of distinct values you have
Mar
2
comment Make Quantity behave reasonable with Degrees Celsius
I hope the new FormulaData takes this into account
Feb
28
comment Are greek symbols causing different evaluation?
It's not about greek or not greek. It's about the sorting of the symbols. Some of these functions which, theoretically, should be invariant to that, are not. There was another question around, perhaps related to Solve
Feb
27
comment How do I get the length of held list without evaluating the list?
@acheong87, if you'll do it more than once, you could create a function using your own idea of Extract, such as lengthAt[expr_, pos_] := Extract[expr, pos, Function[l, Length@Unevaluated@l, HoldAll]]. Then, lengthAt[test, 1]
Feb
19
comment Can Mathematica Operators be combined in a linear fashion for readability?
@Szabolcs as to constants, there's the Constant attribute. But the idea included some operator wrapper symbol too, to make things more robust
Feb
18
comment Can Mathematica Operators be combined in a linear fashion for readability?
If it is just about readability in the front end, you can wrap some heads around every operator, define some operatorApply, and define neat layouts for both
Feb
17
comment Convert number to exponent form with highest power possible
Why do you say you are screwing up? The code finds the exponent as the GCD of the number of times each prime factor appears. The rest is just a matter of displaying it in some form
Feb
17
comment Convert number to exponent form with highest power possible
whatTheOPWantsMaybe[n_Integer] := With[{exp = GCD @@ FactorInteger[n][[All, 2]]}, (n^(1/exp))^ Defer[exp]] ?
Feb
17
comment Convert number to exponent form with highest power possible
You mean integers, right?
Feb
12
comment Make Sinc'[0] return 0 instead of Indeterminate
@Szabolcs what about keeping it symbolic until numeric arguments or FunctionExpand is applied?
Feb
12
comment Make Sinc'[0] return 0 instead of Indeterminate
@Szabolcs yes. However, that single point is the whole point of having a Sinc function in the first place so this itches me a little