# All Questions

429 views

### Text in columns

So far I've only seen the front end work in a one-cell-below-the-other manner, so I am probably not expecting much of this question, but here it goes. Is there any way to create a document with text ...
936 views

### Obtaining the square-root of a general positive definite matrix

I have a matrix which I know to be positive definite. The entries of the matrix might be complicated but they are all real. To find an expression for the square root of this matrix (i.e., ...
404 views

### Can't use CUDA shared memory

CUDALink is properly installed and up to date, all built-in functions work fine, and all little functions I did worked fine... Until I tried using shared memory. The only example I found on the help ...
235 views

468 views

### How to overload System`StringJoin to automatically use ToString on arguments?

I am using an overloaded version of the StringJoin function since years now, without any problem, as I've invested a lot of time and effort earlier to make its ...
281 views

496 views

### How to apply restrictions to the “integrated” variable, when using NDSolve?

I have to integrate an energy along a path. I know the energy at the "beginning" of the path (energy[0]), and I can determine the energy change (gain and loss) ...
647 views

Testing this answer I used: stream = OpenWrite["A:\\out.txt"]; Block[{$Messages = stream}, Mod[1, 2, 3, 4, 5] ] and I was surprised to find that the contents ... 1answer 419 views ### How can I speed up image importing? [closed] The following examples show how slow it is to load a simple GIF. Can anything be done to make it faster? System #1: Mathematica 8.0.1.0, HP notebook, Win7 64Bit, 2 x 2.4Ghz Intel Core i5, 2GB RAM, w/ ... 2answers 241 views ### Export a Row or Column as an image How could I export the following as a single image and set its dimensions ? ... 7answers 2k views ### How do you draw the plane on which two vectors lie? Given two arbitrary vectors$\textbf{v}_1$and$\textbf{v}_2$, how can I draw the plane which they span? 2answers 857 views ### How to unload automatically loaded packages? I know that this has been discussed here (How do I clear all user defined symbols?), but my case is somewhat different. How does one unload packages during runtime that were loaded with the start of ... 4answers 2k views ### Plotting several functions I'd like to plot a function of one real and one integer variable, but I don't want them all shown in the same 2-D plot - I'd like to see them as separate curves so I can see both 'axes', more like ... 1answer 298 views ### How to fix the orientation and scaling of Graphics3D? To visualize an eigenvector and value calculation I tried to display the eigenvectors (scaled by the eigenvalues) as arrows in a Graphics3D plot using Manipulate. The (symmetric) matrix is a function ... 3answers 531 views ### Probability problem — Rube Goldberg solution? A user posted this question on StackOverflow which was closed as off topic: 3 people are playing a game with a standard 52 card deck. Each player is given 2 cards each, possible cards and their ... 1answer 295 views ### How to fix errors in Gram-Schmidt process when using random vectors? I first make a function to get a random vector on unit sphere in a swath around the equator. That is what the parameter$\gamma$controls; if$\gamma = 1/2$, the vectors can be chosen anywhere on the ... 2answers 211 views ### What is the quickest way to convert a lot of SQLDateTime[] objects to DateLists I often run database queries that return sets of {date, datum} objects. A hypothetical query looks like ... 2answers 154 views ### RunScheduledTask didn't execute itself the first time, why? I have a problem with RunScheduledTask (new in Mathematica 8). A task that I usually need to do is to set a cron to start at a specific time and repeat itself at the same time every day (or the same ... 2answers 582 views ### Series expansion of an inverse I have to find the series expansion of the inverse function of :$\arctan\left(\frac{\ln(1+x)}{1+x}\right)$How do I find out the series expansion of any inverse ? Note: The inverse of a function ... 1answer 336 views ### Stealth daylight saving shift in SQL data I'm querying a SQL database with DatabaseLink and resulting SQLDateTime objects are shifted by an hour during daylight saving ... 3answers 481 views ### Threading a compiled function over multiple arguments of different lengths I am interested in threading a compiled function over multiple argument lists of different lengths. I will explain this in two steps: Suppose f is some function. Then one can define another ... 3answers 4k views ### Best way to give presentations with Mathematica I have typically used PowerPoint or plain PDFs of slides to give presentations, but with heavy mathematical content, it can be tedious to create these presentations and make them look good. How can I ... 1answer 262 views ### Suppress Mathematica Kernel taskbar tab when using .NETLink Is there a possibility to suppress the Mathematica Kernel taskbar tab when accessing it through .NETLink on Windows? 4answers 478 views ### Show path with arrows in a matrix I have a matrix, for example, 5x5 matrix Partition[Range[25], 5]. And I am given a list, for example: ... 1answer 255 views ### Reading from a text file and store the results back into it I am totally new to mathematica but started learning how to use it. I use the following function to convert a decimal number into its binary representation. ... 2answers 390 views ### Is Compress[] compatible between different Mathematica versions? Compress[] was introduced in version 6 of Mathematica. It gives a compressed version of expressions represented as a string of ASCII characters. It preserves more ... 2answers 246 views ### What is this character: [esc][comma][esc]? What is the character obtained with they key sequence Esc,Esc called? On my front end it is not displayed, but there's something there messing up my input. It's a bit annoying when I'm after a$\mu$... 1answer 245 views ### Feed a Manipulate[] Output into a Graphics[] Please consider : ... 2answers 775 views ### How do I extract the contents of a selected cell as plain text? My aim is to extract the contents of an Input cells as plain text. Ideally I would like to be able to select one or more Input cells and press a button which would then extract the text from these ... 7answers 1k views ### Selecting a sublist based on Length If you have a simple list of lists as follows: test = {{1, 2}, {4, 5, 6, 7}, {5, 4, 3}} How do you ask Mathematica to return the sublist of greatest length? ... 2answers 603 views ### Custom Mathematica Shortcut: Copy as$\LaTeX\$

If you edit the Wolfram Research\Mathematica\8.0\SystemFiles\FrontEnd\TextResources\Windows\MenuSetup.tr file you can make Ctrl+Shift+C copy not plain but in ...
367 views

### Unit testing J/Link projects in Workbench

I am having some problems setting up the MUnit testing framework for a J/Link project and would be grateful for advice. I do have J/Link working when running or debugging the .nb notebook in ...
2k views

### How can I implement dynamic programming for a function with more than one argument?

Dynamic programming is a technique for avoiding the repeated computation of the same values in a recursive program. Each value computed is immediately stored. If the value is needed again, it is ...
620 views

### Single dot textual form

How do I render a letter with a single dot above it? I see \[DoubleDot] and \[TripleDot] are readily available, but what about ...
2k views

### Function that takes another function inside

Looking at this QA, I'm trying the following - 2 functions (r in vector format) using Theta { A, 2 } functions (sorry for the inconsistent names...). ...
359 views

### How do I prevent auto loading of blank notebook at startup?

I'm using Mathematica 8 with operating system Mac OS X Lion. When I open Mathematica it always loads a blank notebook. I don't want it to load anything by default. In the Preferences pane there ...
1k views

### Most Efficient Way to Calculate the Product of All Items in a List?

Say that I have a list of returns on a financial asset over time and want to know the total compounded return. To get the answer, I need to add 1 to each return and then calculate the product of all ...
721 views

### How to make a parallel auto-generated .m package from Initialization cells?

according to the documentation at ref/InitializationCell, When you first save a notebook that contains initialization cells, you have the option to make a ...
353 views

### Default position and size of front-end windows (in Windows 7)

I'm running Mathematica 8 on Windows 7. When I start the Mathematica front end, I would like the menu bar and the blank notebook that opens to appear at a different position and with a different size ...
387 views

### How do I view initialization (or other invisible) cells in a notebook?

I am looking at someone else's notebook, and when I go to evaluate it, it asks whether I want to evaluate the initialization cells. I would like to look at them first, but "I do not see them here nor ...
694 views

### How can I set the speed of manipulate play button?

Can you set the speed at which a Manipulate plays when the play button is clicked?
3k views

### General::ivar is not a valid variable when plotting - what actually causes this and how to avoid it?

I was just evaluating a couple of expressions and started to get errors like this: ...
495 views

### Parallelize evaluation of function with memoization

I have a complicated function that I need multiple times, so I want to memoize it and have the first evaluation done in parallel. Unlike in my example below it's not a continuous function, so ...
2k views

### How to Delete Elements from List1 appearing in List2?

I'm new to functional programming of Mathematica and trying to remove one list of assorted elements from another. However I only find functions working with the Index rather than the values itself: ...
1k views

### Pattern to match a non-empty list of non-empty lists

Is there a pattern to match a list of lists, containing at least one list, with each list containing at least one element? In the Mathematica documentation it says that the pattern ...
461 views

### Using variables in function names

I want to make a list of plots and my functions are named C1, C2... Cn. The command I wish ...
291 views

### Multiple colors in Graphics[] environment

There are other questions on the site that are similar to this one, but the answers provided didn't help me. I want to draw disks of different radii. Each radius is the absolute value of a variable, ...
406 views

### Why does ListPlot ignore some global options?

Why does the following plot no use the global PlotMarkers option? ...