45,505 reputation
394194
bio website halirutan.de
location Leipzig, Germany
age
visits member for 2 years, 6 months
seen 6 mins ago

Although I'm quite familiar with Mathematica, I always try to keep an open mind and don't use it as golden hammer. I'm particularly good at things that are fun, for instance


12h
comment Why is my compiled code slower?
The example code is missing braces and is syntactically not correct. In its current form the question cannot be answered.
1d
comment Simple Choice-Dialog like the auto-completion popup
@ArielSepulveda With popup at cursor I mean the behavior the autocompletion popup shows: It appears exactly beneath your current cursor position where you type.
1d
comment Simple Choice-Dialog like the auto-completion popup
@ArielSepulveda I do have a hand-crafted list-dialog-clickedy-clack too for my symbol information palette but this lacks of the short-cuts and arrow keys. You always have to click. Additionally, and I haven't mentioned this here, I would like the dialog to popup at cursor (not mouse!) position. This seems impossible to achieve as far as I can tell. As always, if you want to do a real application with the dynamic UI elements it is never a one-line like advertised in the million toy-demonstrations.
1d
comment How to convert a notebook cell to a string retaining all formatting, colorization of identifiers etc?
(here and here) a rather pessimistic view about the possibility to access front end used for highlighting.
1d
comment How to convert a notebook cell to a string retaining all formatting, colorization of identifiers etc?
@VladimirReshetnikov Although you can include all kinds of formatting in a Mathematica string, the things you want to extract are done on-the-fly by the front-end for viewing purposes only. While it makes some sense to provide e.g. access to a hidden front end Mathematica lexer, I would really be surprised, if there is any way to use the front ends internal algorithms used for highlighting. Anyway, maybe the only person that could give you an answer here mentions at several places...
Jul
27
comment Plotting and NIntegrate
Before you plug your NIntegrate call directly into the Plot command, you should try it. What if your integral is complex? How should Plot draw it then? Btw, your integral can be computed analytically: function = y^(3/2)*Exp[I t y - y^2]; int = Integrate[function, {y, -Infinity, Infinity}]; Plot[{Re[int], Im[int]}, {t, -20, 20}]
Jul
26
comment Extrude 2D cross-section to 3D shape with shrinkfactor
@Michiel Can you include the points of your 2d shape in your question? With this, we can work with your data and see what you see. Or if your data is too large, then put the list of points to pastebin.com
Jul
25
comment Extrude 2D cross-section to 3D shape with shrinkfactor
@Öskå In its current form not. body really gives the length of the constant middle part and the round corners are always added. You have to change thicknessFunc to make the shape more rectangular, but I'm not sure how ParametricPlot3D will handle such an abrupt jumpg.
Jul
25
comment Conditions under which a given function is less than zero
This really depends on your function. Let's say you have an easy one with two variable f[x_, y_] := Sin[x*y]; then you can use Reduce[f[x, y] < 0, {x, y}, Reals] to get the conditions. With 10 variables and a moderately complex function, this might not work.
Jul
25
comment Connect Frontend to Kernel Started by JVM via JLink
..more people, because they can easily try the code on their own without having knowledge of Groovy.
Jul
25
comment Connect Frontend to Kernel Started by JVM via JLink
As I understood it until now, UseFrontEnd in the JLink` package was not meant to create a user interface, but for certain things (like image rasterization) that usually needs a front end. I tried it from the command-line and I wasn't even able to create a notebook windows. With your CreateWindow command, I get an icon in the task-bar without an actual window. I cannot raise this window. It's like having a symbol for something that is not there. That being said, would it be possible for your to edit your question and first try to do this from command line? I guess this will attract..
Jul
23
comment Table with multiple iterators running parallel
So lets say you want a list which includes the cylinder number and the angle-shift for each cylinder of your engine, how about: cyl=8;Table[{i,(i-1)*2Pi/(cyl)},{i,cyl}]?
Jul
23
comment Table with multiple iterators running parallel
Let's assume we had this Table which increments both i and r at the same time, so i and r are always equal. Can you tell me only one example where you can create a list with those two iterators which you cannot create with a single iterator? Otherwise, I won't understand what you try to do.
Jul
23
comment Mathlink program with low cpu usage on linux machines only
If your assumption is correct and the copying and transferring of your data into the MathLink program is the problem, then you might think of using the LibraryLink instead of MathLink. There, you can set up C functions that use the data of Mathematica directly without making a copy first. If you are unsure, you might first consider to write a small program for MathLink and LibraryLink to compare whether the data transfer is indeed the problem.
Jul
23
comment Is there any way to automatically evaluate selection in new window or new notebook?
Yes, I guess it should be fairly easy to make a button which copies the currently selected cells, inserts them into a new notebook and evaluates everything. Please look at SelectedCells, CreateDocument and NotebookEvaluate.
Jul
21
comment Anti-aliasing not working in Mathematica 10 and Linux
@sebhofer Would you consider upvoting the question then to indicate your interest in the issue?
Jul
20
comment The front end encountered an error while processing a “NotebookPredictions” packet
I guess Wolfram fixing that bug is the better approach than turning off a highly advertised feature. Otherwise, people might realise that uninstalling the software is another way of preventing the error from happening :-)
Jul
20
comment The front end encountered an error while processing a “NotebookPredictions” packet
Try to find out how exactly you can reproduce the error. A small example where the issue comes up 100% of the time. Then, you click in Mathematica on Help and then Give Feedback and describe what you experience and how they can reproduce it. Don't forget to append a notebook where you store SystemInformation[] so that Wolfram sees your settings.
Jul
20
comment Anti-aliasing not working in Mathematica 10 and Linux
@OleksandrR. No, nothing changed with the latest driver. I have reported this to wolfram, but I always dislike sending them screencasts, images etc. Therefore, I regularly post the issue here and link in my bugreport to this site. Btw, do I have to mention that all the issues were introduced in the final release version of 10?
Jul
20
comment Graphics3D flickers in Mathematica 10 and Linux
@Mr.Wizard Nope. Exactly the same flicker. Btw, per suggestion of Olek I updated the NVidia driver to the newest version. Still the same behavior.