25,960 reputation
252122
bio website
location Argentina
age
visits member for 2 years, 3 months
seen 1 hour 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


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
27
answered How do I get the length of held list without evaluating the list?
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
reviewed Reject suggested edit on Notification sound when simulation done?
Feb
12
awarded  Good Answer
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
Feb
11
comment Make Sinc'[0] return 0 instead of Indeterminate
I'd be interested in knowing if the community considers this a bug
Feb
10
comment Bare symbol invocation fails but not if used with an argument
So you want to forbid assignments and usage of f1 unless it's wrapped by this? That's more doable. You just need to make this set a dynamic environment that turns off the f1 evaluation warning. Am I understanding right?
Feb
10
comment Bare symbol invocation fails but not if used with an argument
It's what RuleCondition returns when its 2nd (and other) arguments aren't all True. I don't think any of this is worth mentioning in this answer, but a warning to avoid Fail seems appropriate
Feb
10
comment Bare symbol invocation fails but not if used with an argument
Check ga[] := Block[{}, Fail /; True]; go[] := Block[{}, $Failed /; True]; {ga[], go[]}
Feb
10
comment Bare symbol invocation fails but not if used with an argument
Fail if returned by a rhs condition means "the condition didn't match".
Feb
10
comment Bare symbol invocation fails but not if used with an argument
Given that you are giving high level recommendations, I would add to avoid Fail unless you know what to expect