61,152 reputation
6185277
bio website mathprogramming-intro.org
location St. Petersburg, Russia
age 38
visits member for 2 years, 11 months
seen 1 hour ago

Ok, an obligatory note: opinions expressed here are mine and not those of my employer.


Jan
25
comment How can I collect data for visualization of quick sort?
You can also use Trace. Have a look at this answer, where I was showing how to trace the execution of merge sort implementation (not quick sort, but also recursive).
Jan
25
comment Upvalues, TagSet and UpSet, what's the difference, when should a use each?
In addition to the answer of @Mr.Wizard, I discussed exactly this issue in this answer (last subsection), where it is put in a wider context of UpValues in general.
Jan
24
comment Plotting results of numerical differential equation
You can try using ParametricPlot for that.
Jan
24
comment Override @ to mock Java Classes
@pjc42 Glad if I could help. Thanks for the accept, too.
Jan
24
comment How do you multiply out integer powers in a symbolic expression?
You could use NonCommutativeMultiply, or any other inert head for your intermediate representation of powers as products, and convert back at the end, when you need it.
Jan
24
revised Override @ to mock Java Classes
added 268 characters in body
Jan
24
answered Override @ to mock Java Classes
Jan
24
comment Override @ to mock Java Classes
Strongly related (or even dupe) question. Alas, the answer there isn't very satisfactory.
Jan
23
awarded  Enlightened
Jan
23
comment Mathematica and Python integration?
I think it is possible, but to my knowledge this has not been done yet, at least at the same level of intergation as with R. Writing a general link with Python is likely to be a lot of work. But I agree that it would be nice to have it.
Jan
23
comment Assign the output of a loop
@Darwin You should have started with your real problem / code, as long as it is not too long.
Jan
23
comment Overloading second argument of CountryData
@Stefan Long experience... :-). This particular issue is covered in Mathematica book and also David Wagner's book on Mathematica programming.
Jan
22
awarded  Enlightened
Jan
22
comment Overloading second argument of CountryData
@ssch Was glad to help. I think I've run into exactly such problem with ...Data before. Also a good example of when manual rule reordering is really needed. Thanks for the accept.
Jan
22
comment How can I merge two lists in a special way?
+1. You could have used Outer[Append, x, y, 1] instead.
Jan
21
awarded  Nice Answer
Jan
21
answered Overloading second argument of CountryData
Jan
21
comment How can I connect Mathematica to Clojure?
@JoelKlein I think you should've kept this as an answer, just to give another point of entry. Even if this is just a video, at some point I am sure the associated notebook will also be available. This is a valuable piece of information, and keeping that as a comment will reduce its visibility. Besides, comments are not indexed by search engines, and may eventually be deleted. Anyone is free to express their own opinion (by downvoting in particular), but this does not mean that everyone here shares that opinion.
Jan
21
comment Removing elements from a list which appear in another list
@rm-rf I am,sometimes :) I was staring at your answer and comments for it for about 2 minutes when I saw your comment popping up. And I switched to it completely randomly from something else I was doing, not on SE.
Jan
21
comment Removing elements from a list which appear in another list
@rm-rf Without going too deep into this, I'd think you are right. The funny thing is, I wasn't notified of your comment.