13,269 reputation
23059
bio website
location
age
visits member for 2 years, 3 months
seen Apr 14 at 21:49

Apr
14
comment Fourier series spectrum argument and absolute value
@Leolinus no problem
Apr
13
answered Fourier series spectrum argument and absolute value
Apr
13
comment Fourier series spectrum argument and absolute value
Well it seems to me that you can get a Fourier series using FourierSeries[110 Sin[120 Pi t] + 50 Cos[360 Pi t + Pi/3], t, 400, FourierParameters -> {1, -Pi}] (you can change the parameters as desired).
Apr
13
comment Is there a built in function to obtain the back diagonal of a matrix?
@Mr.Wizard I was not aware that you were an advocate of "transparency" :) thanks.
Apr
13
comment Fourier series spectrum argument and absolute value
maybe FourierTransform will be useful. Be sure to look at the "Details and Options" bit in the docs to see how to fix the constants you want.
Apr
13
answered Is there a built in function to obtain the back diagonal of a matrix?
Apr
13
comment ItoProcess for stochastic reaction-diffusion equation
discretize spatially, this solving a set of coupled SDEs in time. like the method of lines for PDEs.
Apr
12
comment ItoProcess for stochastic reaction-diffusion equation
it can be done, for example, by discretising spatially.
Apr
11
comment Exporting large expression
If DumpSave does not work for you (eg because it is OS-and version-dependent), perhaps you could try exporting as a string.
Apr
10
comment What ways are there to convert an Integer to a list of digits?
reference.wolfram.com/mathematica/ref/IntegerDigits.html
Apr
4
comment Is it possible to lower the bitwidth of (floating point) numbers?
According to the docs‌​, "Supported types are Integer, Real, and Complex. " so I'd go for "no".
Apr
3
comment How to capture Print output
So you want something like $PrePrint or $Post which would also capture the output of Plot[Sin[x],{x,-5,5}];?
Apr
2
revised Density plot for data with a wide dynamic range
edited title
Apr
2
comment Density plot for data with a wide dynamic range
"large data"--I think it may be better to say "wide dynamic range" or something like that; what do you think?
Apr
2
answered Density plot for data with a wide dynamic range
Apr
2
comment Minimization problem using FindMinimum. Functional value “is not a real number”?
@whuber yes, obviously the code is irrelevant and the message self-explanatory. This is why minimal examples are usually best...
Apr
1
comment How to add lists with unequal length?
for two lists, fadd[a_, b_] := (PadRight[a, Length@b] + b) /; Length[b] > Length[a]; fadd[a_, b_] := (PadRight[b, Length@a] + a) /; Length[a] > Length[b] should work. This can be modified for more than two lists.
Mar
31
comment NDSolve event handler Question
with v9, this works NDSolve[{y''[t] == -9.81, y[0] == 5, y'[0] == 0, WhenEvent[y[t] == 0, y'[t] -> -0.95 y'[t]]}, y, {t, 0, 10}] (again from the docs)
Mar
30
comment Creating a list from other lists and varying the number of elements that get added
"Where I tell Mathematica how many copies of a particular element to make in listC" in what format do you want to supply this information?
Mar
30
comment Numerical partial derivative
as an aside, the code for ND is freely visible (it's in AddOns/Packages/NumericalCalculus/NLimit.m).