38,209 reputation
554157
bio website
location
age
visits member for 2 years, 4 months
seen 11 mins ago

May
11
comment Contour coloring and (List)ContourPlot projection
You should not combine multiple questions into one just because you need answers to all of them to get the final result you're after. The site works better if you ask one question at a time. Suppose different people provide answers to the different questions - which one will you accept? Or should people only post if they can answer all the questions? What if one of the questions is a duplicate or off topic - shall we close the whole thing?
May
9
comment How to choose a solution of a differential equation?
AFAIK there is no way to specify preferred functions for the output of DSolve. Your "workaround" of explicitly applying the desired transformation rule is probably the best solution.
May
8
comment Problems using hand-made transformation functions
You should use _. patterns for the powers p and q or it will fail for Gamma[z + 1]/Gamma[z].
May
6
comment “Legended” not working with “Plot” or “LogLinearPlot”
@b.gatessucks, looks like a bug to me. PlotLegends -> LineLegend@{"Log(x)", None, "x Cos(x)"} works though.
May
6
comment Is it possible to change to a functional approach in this game-based procedural algorithm?
While it's true that new users tend to use procedural loops when alternative structures would be more appropriate, it is an over-simplification to state that loops are undesirable. If you have an algorithm which is most naturally expressed as a procedural loop, forcing a functional approach can obscure the underlying logic and make the code harder to write and to reason about. You are asking the correct question - "what is the most appropriate way to represent the nature of the game?" If the answer is "as a loop" then my advice would be to code it as a loop.
May
6
comment “Legended” not working with “Plot” or “LogLinearPlot”
The documentation for Legended states that Legended can be used as a symbolic wrapper for data elements and datasets in functions such as ListPlot and BarChart. So it does appear that it is not intended to work with the Plot* family.
May
5
comment Parametric Interpolation of 2D data
+1. Well spotted. Standardize@data also works.
May
3
comment Converting string representation of boxes into explicit boxes
Ah yes, I see what you mean.
May
3
comment Converting string representation of boxes into explicit boxes
Does MakeBoxes@@ToHeldExpression@string help?
May
2
comment Symbolically solve a system of coupled second order differential equations
@Nasser, you need Halirutan's awesome magic buttons
May
2
comment Symbolically solve a system of coupled second order differential equations
You probably want to use Exp[-I ωs t] in your solutions
May
2
comment How to count number of {True,True} outputs?
@Mr.Wizard, I think I must have learnt it from you, sorry I should have acknowledged that. I've used 1## but only for fun.
May
2
comment How to count number of {True,True} outputs?
FYI a nice shorthand for #1 + #2 + #3 is +##
May
1
comment Combining three R, G, B matrices into a single matrix of 3-tuples?
If you are getting a black frame it suggests the arrays are scaled incorrectly. Try using Rescale[{r, g, b}] or using ImageAdjust on the final image.
Apr
30
comment What's going wrong with this button!
If the train calculation takes longer than 5 seconds the button will be timing out. You might need to use the Method -> "Queued" option.
Apr
30
comment How to save the results in an identical Excel file (.xls) in each iteration of a Do loop
If one iteration takes 5 minutes and two iterations take 11 minutes then the second iteration must be taking 6 minutes. If the pattern continues (third iteration takes 7 minutes and so on) the total time should be over 24 hours. So the question is why does each iteration take longer than the last? We can't answer that without knowing what you're actually doing.
Apr
30
comment Is it possible to model the piano key attack?
Detecting the release of the key is a tricky problem. See this.
Apr
30
comment Comparing Positions of Elements in a List
@Mr.Wizard, no good reason - just habit and tiredness!
Apr
28
comment Importing videos in Mathematica
Thank you for the generous bounty!
Apr
27
comment Importing videos in Mathematica
@Sjoerd, avi import should just work. MF supports reading avi, just not writing.