34,417 reputation
549142
bio website
location
age
visits member for 2 years
seen 48 mins ago

1d
comment Simplifying trig expressions containing Sqrt or Abs
@YiWang, I agree this is not a complexity function issue - I just wanted to point out that the first example would not "simplify" to the desired result even if Mathematica handled the assumptions properly.
1d
comment Simplifying trig expressions containing Sqrt or Abs
Note that Mathematica considers Abs[Sin[x]] to be simpler than Times[-1, Sin[x]] (see e.g. this and this). That aside, there does seem to be a problem with simplifying the sign of trig functions. Compare Simplify[Sign[Sin[x]], 0 < x < Pi] and Simplify[Sign[Sin[x]], -Pi < x < 0]
Apr
18
comment Export Messing Up Alignment of Bar Chart
Please include your data in the code so that people can test this for themselves. You could also try to narrow the problem down - does it occur for a single bar chart or only when you have three in a GraphicsRow? Which options do or don't affect it? Try to reduce the code to the bare minimum required to demonstrate the issue, this will make the question more appealing to potential answerers.
Apr
17
comment Undocumented form for Extract
New in 3 | Last modified in 8 | Documentation last modified in 5 :-)
Apr
17
comment Create new file, based on 500 articles
@MichielvanMens, sorry, I missed the point of the question. See my edit.
Apr
16
comment how to find find a matrix by the characteristic vlaues and vectors
Is this a question about mathematics, or the software Mathematica? This site is for the latter.
Apr
16
comment Map structure of irregular list, Flatten then reconstruct list using structure
If you attempt to reconstruct the non-tensor object inside Compile it will generate a callback to the main evaluator.
Apr
15
comment Enter exact rational numbers easily with decimal notation
How about $Pre = # /. r_Real :> RuleCondition[Round[r, 10^-Ceiling@Precision@r]] &
Apr
15
comment Resume/continue interrupted evaluation
Does pressing F5 work?
Apr
15
comment Plot Notes present in sound sample
The numbers in SampledSoundList are samples of the wave amplitude. You need to do some processing to convert this data to a time-frequency representation. One way is to split the data into chunks (partitions) and compute the discrete Fourier transform of each chunk, which is what SpectrogramArray does. The second argument is the length of each partition, i.e. the number of samples it contains.
Apr
15
comment How to manually set z-axis values in a 3d plot?
@LoryLory, MathWorld is quite good for that kind of thing, there is also Wikipedia of course.
Apr
14
comment How to manually set z-axis values in a 3d plot?
Why not just plot the ellipsoid? SphericalPlot3D[h r/Sqrt[r^2 Cos[θ]^2 + h^2 Sin[θ]^2], {θ, 0, π/2}, {ϕ, 0, 2 π}]
Apr
14
comment Errors of machine precision
The message means that Mathematica has tried to evaluate the numerical value of Log[Abs[4 + 4 Exp[-2 I Pi/3] + 4 Exp[2 I Pi/3]]] and in doing so has reached its internal precision limit (determined by $MaxExtraPrecision).
Apr
14
comment Plot Notes present in sound sample
Look at SpectrogramArray, especially the "Neat Example"
Apr
13
comment Transform elements in list from form {x_} to form {x_, 0}
Dot is the winner here, with v9 on Windows. Closest I can get to it is the rather ugly Transpose[Join[Transpose[a, {2, 3, 1}], ConstantArray[0., RotateRight@Dimensions@a]], {3, 1, 2}] which takes about 20% longer.
Apr
13
comment Programming paradigm change
The new one is very clever. I don't think I've ever seen non-strings on the rhs of StringReplace rules. Nice...
Apr
12
comment Partitioning an image based on features
@Sektor, Classify is a new function in v10
Apr
11
comment Programming paradigm change
@Mr.Wizard, I decided the use of spaces was inconsistent in the original string so didn't worry about it ;-)
Apr
11
comment Generate array of every $n^{th}$ integer between two bounds
@Öskå, I've voted to close as RTFM but if you'd rather keep it open please feel free to combine your comment and mine into an answer.
Apr
11
comment Generate array of every $n^{th}$ integer between two bounds
Array does not take an iteration variable. Use it like Array[1926 + 4 # &, 22] or alternatively use Table[1926 + 4 m, {m, 22}]