Reputation
57,651
Next tag badge:
227/100 score
17/20 answers
Badges
7 94 225
Newest
 Nice Answer
Impact
~796k people reached

Dec
22
comment Error message when using a compiled function in NSum
While it's a different warning the cause is the same as in the duplicate question - symbolic evaluation of the summand. You can ignore the warning, but if it bothers you use NSum[Hold@test[n],{n,1,10}] or create a wrapper function for test which only lets through the correct type of argument e.g. test2[n_Integer]:=test[n]
Dec
21
comment Evolution of a trait in an asexual population (performance tuning)
@TomWenseleers, I'm not sure, I rarely use parallelization. Try it and see, I guess.
Dec
21
comment mask specific range of RGB color frome an image with lower and upper threshold
Please help us with clear details too! What do you mean by detect? Do you just want an output that says "colors in the range were found in the image" or something else?
Dec
20
comment I was wondering how to get the following result by mathematica or maple or other way
I don't think Mathematica can handle n'th derivatives for symbolic n. See here for example.
Dec
20
comment Evolution of a trait in an asexual population (performance tuning)
@TomWenseleers, you're welcome, it's interesting stuff. I suspect there are further improvements that could be made, though it would probably require a fundamental rethink of the algorithm to get another order of magnitude.
Dec
20
comment Evolution of a trait in an asexual population (performance tuning)
It would be better to pass the whole list into the fitness function and stick with Clip, IMO. Compare the timing for fit1[Table[R, {n}], p]
Dec
19
comment How to solve partial differential equation
You need to include the boundary condition t[1, y] == y + 2 inside the list of equations, not give it as a second argument. (This is what @Karsten7 showed but I thought it worth pointing out the change explicitly)
Dec
19
comment Function under Button, need help
@tsin, in this answer b is included in the Block symbol list, so when the Block exits b reverts to its global value (which may not be defined). If you need to use b in subsequent code simply remove it from the Block symbol list.
Dec
19
comment Bug in RegionMember?
polyQ // InputForm reveals a difference between the exact and machine precision versions. For the latter it uses a MeshRegion, but for the former it contains an implicit member function which is presumably not quite correct.
Dec
19
comment Evolution of a trait in an asexual population (performance tuning)
The bottleneck is probably the PoissonDistribution used to compute numberoffspring. There are a few questions on the site about speeding up Poisson random number generation.
Dec
19
comment How to generate a random pulsar graph between two points?
You should post your solution as an answer rather than an edit to the question! Answering your own questions is completely acceptable here, in fact it's encouraged.
Dec
18
comment Colour of lines in ContourPlot3D
It's not important but FYI the png format is better for graphics
Dec
18
comment Colour of lines in ContourPlot3D
% /. Black -> Red
Dec
18
comment Problem with BSplineCurve 3D
The result is in 3D but the vertical range of the data is very small compared to the x and y range. Use the BoxRatios option.
Dec
14
comment Why does my threaded function need to be substituted?
It's not messed up, {1,2,3}=={1,2,3} evaluates to True - what do you think the result of Thread[True] should be?
Dec
14
comment Why does my threaded function need to be substituted?
The MapThread documentation contains an example of the difference - Properties & Relations, fourth example.
Dec
14
comment Why does my threaded function need to be substituted?
If that is the source of the problem, the question is essentially a duplicate of this one
Dec
14
comment Why does my threaded function need to be substituted?
Thread evaluates its argument before threading, so perhaps the problem comes from evaluating constraintStrip[rowCells,constraintTable].
Dec
14
comment Named patterns in Except
Yes I think the bugs tag is justified. Please also report it to Wolfram Research.
Dec
13
comment How to make a function to analyse a sentence?
This is a neat approach. Your rules could be written more concisely by naming the pattern sequence, e.g. {a___, x : PatternSequence[_d, _n], b___} :> {a, np[x], b}