49,939 reputation
4120286
bio website
location ND
age 30
visits member for 2 years, 3 months
seen 7 hours ago

contact details

Visit Mathematica.SE


9h
comment Determining the dimension of a probability distribution
@Daniel Well, for DistributionDomain the first guess is pretty obvious and it worked. But you can always try a bit of spelunking to find interesting stuff ;-) Use the (newer) code from GitHub.
10h
comment Determining the dimension of a probability distribution
@DanielMahler ?something* will search in all contexts that are in $ContextPath and ?*`something* will search in all contexts. The latter tends to return a lot of internal stuff that's not useful, so there's more to wade through. The warnings I gave you about undocumented/internal stuff are not meant to deter you, I sometimes use these too. But the problems can and do happen (I've been bitten several times.)
11h
comment Loading Statistics`Library`
It's a good idea to give some context for your question and link back to the original thread that prompted this. Statistics`Library` is not a package, so it can't be loaded. (Loading is triggered by the use of some other stats functions.) It is a context (namespace) containing functions meant for internal use: there's no documentation, no guarantee these functions will work properly or that they won't crash your kernel or cause memory leaks, and they're likely to change in future versions.
11h
comment Determining the dimension of a probability distribution
@DanielMahler Evaluate ?Statistics`Library`*. Keep in mind that anything that's not documented and not in System` might go away/change in the next version, might crash your kernel, or might give you a wrong result. Yes, these things do actually happen. I found DistributionDomain by making a good guess and searching for ?*Domain*.
2d
comment Determining the dimension of a probability distribution
@Andy I think you're in a much better position to answer this ... Is DistributionDomain robust? It's not documented but it is in the System context.
2d
comment Determining the dimension of a probability distribution
I've never used this function before, I found it using some spelunking when I saw your question.
2d
comment Mathematica function Det has unexpected behavior
Please put all code in a code block, otherwise it is unreadable and people are not going to look at the problem. Formatting help is on the right of the edit box.
2d
comment Can ParallelDo speed up a counting problem?
For parallelization, the first thing to do is to try to formulate the problem in terms of functions with no side effects. That rules out using = on any global variable. So think about whether you can use ParallelTable instead (what Oleksandr said). Before trying to parallelize, also consider vectorization, i.e. doing arithmetic on arrays of numbers in one go. Many array operations are internally parallelized already.
Apr
17
comment How to compute variances from a matrix/table
If your data is stored in data, what does Dimensions[data] say?
Apr
16
comment Scan vs Map vs Apply
Do not define f when you do this, then it'll be much easier to understand what's going on. ...^2 threads over lists so your results don't reflect only the effect of Map, etc. but also this auto-threading. Take a look here and in the documentation page of each function. There are plenty of examples. For example the documentation clearly explains that Scan is the same as Map except it doesn't return anything. If is useful when f has a side-effect, e.g. f=Print.
Apr
16
comment Mathematica9: NDSolve slows down after repeated calls
@user13754 This is not an official Wolfram site. We are just users like you. If this bug affects you then the best thing you can do is contact Wolfram support and complain about it, which I guess might help prioritize this problem.
Apr
15
comment How can I make my MM code more compact and readable? Can I put functions in different notebooks?
Everything from the last section header up to the end of the document is part of the last section. Make a new section for your new cells.
Apr
15
comment How can I make my MM code more compact and readable? Can I put functions in different notebooks?
Place the cursor not in a cell, but inbetween two cells. Then press Alt-4 which created a section header cell. Type the name of the section. Now everything below this section header will belong to the section (up to the next header) and can be collapsed by double clicking the corresponding cell bracket (vertical blue line on the right).
Apr
15
comment How can I make my MM code more compact and readable? Can I put functions in different notebooks?
Use sections (Alt-4, Alt-5, etc.) in the notebook to structure it, then fold them so they're invisible. If you have lots of functions that you don't change much, use packages.
Apr
15
comment Why isn't Mathematica plotting my differential equations?
That's because the solution contains non-numerical parameters. A simpler example: you can't plot a*x^2 in terms of x without giving a a valuer first.
Apr
15
comment PDF files generated by Mathematica on Windows cannot be viewed on Ubuntu
This question appears to be off-topic because the problem was caused by one particular PDF reader and not Mathematica.
Apr
15
comment ParallelTable, ParallelDo and ParallelMap all fail on simple evaluations, a BUG?
If you use SetSharedVariable, it'll mostly negate the benefits of parallelization as it forces constant callbacks to the main kernel. Reformulate your problem in terms of side-effect-less functions such as Table. See here: mathematica.stackexchange.com/a/1771/12 and here: mathematica.stackexchange.com/a/2727/12
Apr
15
comment PDF files generated by Mathematica on Windows cannot be viewed on Ubuntu
I'm afraid there's hardly enough information in the post to solve this. In the very least, post a PDF, but really you should: provide a reproducible example to generate the PDF files; mention your version of Mathematica; mention your PDF viewer and if the result is the same with other viewers.
Apr
14
comment Same Mathematica 9.1 Student License on both Ubuntu and Windows 7
@Sjoerd I imagine that if the OP gets his license from his school then he can just get another activation code and install it on another machine/OS. But some personal student licenses probably allow installation only on a single machine. I didn't want to discuss it though because I'm not sure, and also because "licensing" is really just an agreement between the user and the company and might change if the OP contacts WRI and explain his situation. It's not a fixed objective thing like the correct syntax of Table that's guaranteed not to change until the next release.
Apr
14
comment Same Mathematica 9.1 Student License on both Ubuntu and Windows 7
@SjoerdC.deVries Besides, support is so easy to contact: they even have live chat support for issues like this (not for technical issue). The OP would have gotten a quicker and reliable answer if he just calls them or if he uses the live chat support.