Reputation
1,058
Next privilege 2,000 Rep.
Edit questions and answers
Badges
4 19
Impact
~13k people reached

  • 0 posts edited
  • 1 helpful flag
  • 89 votes cast
14h
comment CCompile Problems
I guess you do not have access to newer Mathematica versions, right? If you do, I would definitely recommend upgrading to the latest version of Mathematica.
Jun
25
answered Transforming an Optimization Problem into a multi-vector Optimization Problem
Jun
23
comment Transforming an Optimization Problem into a multi-vector Optimization Problem
Creating a Table won't help you. You need to create arrays for your individual variables like eVars = Array[e,n] where n is some fixed integer. Then you need to create an appropriate objective function, that mixes all the components together in the way you want them to interact and yield a real value, not some kind of vector. Essentially you can just optimize in ordered spaces (you need to know whats bigger and smaller).
Jun
23
comment Failure in integrating from an interpolating function!
Works like a charm for me on Mathematica 10.1 running on MacOS 10.10.3, just had to remove the apostrophe in the definition of ttable, which is probably a typo anyways.
Jun
11
awarded  Good Question
Jun
9
comment Adding Disk to Parametric Plot Animation
Also take a look at using Show to combine Graphics objects. You already used it for the still version but not for the animated one. But for a simple Disk object using Epilog is probably the best.
Jun
6
comment Handling really large Arrays (by possibly using lower precision)
@ilian I guess it might be a duplicate. In general I would also be interested in alternatives to reducing Precision. It's a shame that mathematica does not seem to be able to use float16 etc. instead of float64. Python has no problems with that and it obviously reduces the amount of memory needed drastically. And yes there are lots of situations where float16 gives enough precision.
Jun
6
comment Is it possible to lower the bitwidth of (floating point) numbers?
It is a real shame, that mathematica does not allow that. The standard seems to be 64bit floats by now and that is way more than you need in most cases and hence costs a lot of unnecessary memory.
Jun
6
comment Laplacian and DiracDelta
The formula above shows the Gradient, not the Laplacian. As I never heard of the formula, could you please clarify it. It is obvious though that the right hand side needs to be adjusted if instead of the nabla (gradient) operator the Laplacian should appear, because the right hand side obviously is a 3D vector right now.
Jun
5
comment Handling really large Arrays (by possibly using lower precision)
@ilian: Strange, why does an unpacked array have a bigger ByteCount then?
Jun
5
comment Handling really large Arrays (by possibly using lower precision)
@ilian: That makes sense, but I do not need that kind of precision and also the Packing of the array should reduce the size of the array. Right now it just seems to occupy 8bytes per entry, which is uncompressed.
Jun
5
asked Handling really large Arrays (by possibly using lower precision)
Jun
2
comment Symbolically Minimizing a Max function
This is rather tricky to answer. Unfortunately I do not have much time for that now. Bottom line is that mathematica obviously cannot handle the Max function symbolically in conjunction with its symbolic optimisation capabilities. In practice you will do some numerical computations anyway and for that you have many possibilities to treat the max function. You could for example take a smooth approximation for it and use differential calculus, etc..
Jun
1
comment Why is setting SynchronousUpdating -> True causes mouse motion to pause/freeze Dynamics?
I am on a Macbook Pro 15 late 2013 model with nvidia 750m graphics running MacOS 10.10.3 and Mathematica 10.1 and I do get some stuttering when moving the mouse cursor. It is not as extreme as shown above, but the whole animation slows down quite considerably when doing nonstop movement with the mouse cursor.
May
26
comment Can Mathematica poll the dimensions of the individual monitors of its host computer?
I am on a Macbook Pro running MacOS 10.10.3 and when I have an additional monitor (in addition to the notebook's display) connected via thunderbolt I get a list containing two entries like the one shown in your post above. Each entry corresponds to one monitor and seems to be correct.
May
25
comment The image turns black when I use the mouse to rotate it
I am running a similar setup to yours (Macbook Pro 15 with Nvidia 750m late 2013, MacOS X 10.10.3 (all updates including command line tools installed), Mathematica 10.1) and I do not have any problems with rendering the Graphics object appropriately. To the compiler stuff: Your code does not involve compilation of any kind of code, so I do not see why you would need a working CCompiler setup.
May
18
awarded  Popular Question
Apr
24
comment Is this function convex?
As user 64494 stated, the NMinimize approach does not proof anything in terms of convexity. But if you are less interested in a real proof than in a numerical estimate that gives you an idea about the function being convex or not on the given intervals, you might want to compute the global Minimum of the second derivative on the given interval using NMinimize. If this minimum is greater or equal to zero the function should be convex on the given domain.
Mar
26
revised Find all disjoint subsets of equal length
changed final step from using MapThread to Transpose
Mar
26
comment Find all disjoint subsets of equal length
Sure, wasn't thinking much at the time of writing. Transpose is way faster, so I will edit it.