25,057 reputation
13685
bio website
location
age
visits member for 3 years
seen 28 mins ago

2d
comment The inverse Fourier transform of a rather complex function
Because t is actually discrete I tried to table the values of t and then calculating the inverse transformation with u being the only variable in the function f. Why not just use Fourier and InverseFourier since your data is discrete?
2d
comment Does mixed-paradigm functional programming have more advantages in numerical simulation?
@MichaelE2 mixed programming is basically when the code looks like it was written in Matlab or Fortran and converted to Mathematica syntax.
2d
comment Graphics3D: Objects with holes
@kguler nice. To answer OP question, then one can just do cub1 = Cuboid[{0, 0, 0}, {20, 2, 20}]; cub2 = Cuboid[{12, 0, 8}, {17, 2, 17}]; r2 = RegionDifference[cub1, cub2]; RegionPlot3D[r2] !Mathematica graphics but the edges need some work. Original question at community.wolfram.com/groups/-/m/t/430092?p_p_auth=EAP2rQun
2d
comment Does mixed-paradigm functional programming have more advantages in numerical simulation?
@Mr.Wizard I see. I thought meta is about those meta-physics like questions about Mathematica. I see questions like What third-party packages do you use? and such. Any way. it was a suggestion.
2d
comment No legends in parametric plot
see parametricplot-and-plotlegends-dont-seem-to-cooperate
2d
comment Does mixed-paradigm functional programming have more advantages in numerical simulation?
This might be better asked in Meta ?
2d
revised How to avoid complex terms in the results given by Integrate?
added link to package
2d
comment How can I change variable passed to a function?
I think a better way to do this is to make a local variable in the module, assign that the value of the input, then make modification on the local variable, and return that at the end. This is in the spirit of how Mathematica programming is done.
2d
answered How to avoid complex terms in the results given by Integrate?
Jan
27
comment Testing for a vector of reals
David, your solution returns True for realVector[{1, 2, 3}], I think the OP wants this to return False. This happens because integer also returns True for Element[#,Reals], so a Head test is needed.
Jan
27
answered Testing for a vector of reals
Jan
27
reviewed Approve Testing for a vector of reals
Jan
26
answered Generating a Variable Number of Dynamic Variables
Jan
26
comment What's real analogue for FromDigits?
RealDigits? as in RealDigits[ToExpression["1234.234532"]] gives {{1, 2, 3, 4, 2, 3, 4, 5, 3, 2, 0, 0, 0, 0, 0, 0}, 4}
Jan
24
comment Problem with control structures on getting root values on array
it is not too clear what you are asking. But why not create the list you want, and at the end use DeleteDuplicates to remove duplicates.
Jan
24
comment Maximize[Cos[x - 1], x] is not evaluated
Strange. Wonder why this works Maximize[Cos[x - 1.], x] giving {1., {x -> 1.}}
Jan
24
comment ControlType -> None Vs. Module inside Manipulate (i.e. making everything local)
If you make the variables local to a Module inside Manipulate expression, then their values are no longer saved between refreshes of the expression. So you can't use them to store counters and other values that you want to remain saved as the simulation is running. Basically a new clean copy of these variables are made each time the expression is refreshed. So, rule of thumb: If you want to save the value of something between refreshes, you need to use {{x,0},None}. For (2), you should not make variables in Initializations. Only function definitions. Variables there become global.
Jan
19
comment Evaluate the Limit
Try Limit[((1 + 3 x)/(1 + 4 x^2 + 3 x^4))^3, x -> 1] this gives 1/8
Jan
19
revised Differential equation with a Heavisidetheta function running for ever
deleted 15 characters in body
Jan
19
answered Differential equation with a Heavisidetheta function running for ever