6
votes
1answer
144 views

Why is there a limit of 15 different instruments to be played simultaneously, with Sound / SoundNote?

It seems to be impossible to play more than 15 different instruments simultaneously with the Sound[{Soundnote[...],...}] construct. Any guesses why it is so? With ...
2
votes
2answers
428 views

How can I control the number format of exported data?

I'm having issues while exporting a tables of numerical values to "*.dat" data files. Here's the thing, sometimes when I export a table, I get more decimals on some random values. The problem is that ...
5
votes
1answer
1k views

Module with “local functions”

I am trying to use a Module having "local functions", i.e., those which I need to define only inside this module. So I tried this: ...
12
votes
1answer
1k views

Eigenvalues and Determinant of a large matrix

Can anybody kindly explain to me what is going wrong regarding a simple problem I have? I can find the eigenvalues of a large matrix using Eigenvalues[], but when I ...
7
votes
1answer
96 views

Attaching the same message to several symbols

It is common in many packages, as well as system symbols, that the same message can be issued by several functions. Here's an example: One mechanism that can be used for this is to define the ...
5
votes
2answers
454 views
-1
votes
1answer
162 views

How can I change the default output number form to accounting form?

By default, large numbers are displayed in scientific form in output like 1.2345 x 10^8 in Mathematica 8.0.4, but I would prefer having numbers in accounting form ...
12
votes
4answers
267 views

How to catch complete error message information

If I evaluate this expression: Module[{}, 1/0;0^0]; msg = $MessageList I get: ...
3
votes
1answer
149 views

Add new JDBC Driver to connect MM to SQL database

I cannot open a SQLConnection to a SQL vectorwise database and I assume the JDBC driver is the problem. A JAR file was provided to me - the only info additionally provided to me was the java class: ...
3
votes
2answers
621 views

3D scatter plot from a txt file

I have a txt file with space-delimited x, y, z coordinates of several points. The points are organized into groups of unequal size; the groups are delimited by skipping a line, like this: ...
12
votes
3answers
594 views

Mathematica Parellelization on HPC

I'm currently using Mathematica on a High Performance Cluster (HPC) which consists of many compute nodes each with around 16 cores. I currently run my Mathematica script on 20 of the nodes that ...
0
votes
2answers
2k views

Export plot data in Mathematica [duplicate]

How can I export data, which is plotted using something such as: Plot[Γ[x]/(1.6*10^(-19)), {x, 0.1, 1.2}] into a .txt file in Mathematica?
3
votes
4answers
305 views

Mapping over the last level of a list, or equivalent operations

I would like to style each element of my list using Style. But when I try ...
4
votes
1answer
391 views

CUDALink is not initialized

I've upgraded to Mathematica 9.0 on Ubuntu 12.04 with the latest Nvidia driver (304.64). I load CUDA by using, as usual, Needs["CUDALink`"]. ...
2
votes
2answers
66 views

Invalid comparison in RegionPlot

I'm trying to plot something like this: RegionPlot[0 < (.5*a2 - .25*a1)/(a2 - a1) < 1 && 0 < a1 < a2 < 1, {a1, 0, 1}, {a2, 0, 1}] The ...
8
votes
4answers
708 views

Numerical integration of a numeric data available as a nested list

I have some numerical data in the form of a list with the following structure: {...{x,y,z},...} defining a surface z=z(x,y) in a 3D space (x,y,z). The data came from a simulation, and I am ...
3
votes
3answers
296 views

How can I fill a wire-frame structure with gas in a Graphics3D drawing?

I am very poor at visualization. I want to make a transparent "building" filled with gas. I wrote the following code for the building and it's fine. ...
16
votes
1answer
439 views

List manipulation to build a functional expression

Since Mathematica deals with Head[a, b] as an expression in this way The first Part of Head[a, b] is ...
8
votes
1answer
471 views

Control objects Sizing and placement in Graphicsgrid Vs Grid:

I have created a grid, and also made a list of control objects(e.g., input fields, buttons, etc.). Then, I lay the list in my grid. There is no problem. However, the final layout takes a lot of time. ...
10
votes
7answers
476 views

How can I Flatten this List with Inner List of Lists?

Given the following List ...
4
votes
3answers
163 views

Creating a nonperiodic function in mathematica

I want to create a non-periodic square wave with values of 1 and -1(not necessarily alternating). For e.g. I want to convert an arbitrary array like {1,-1,-1,1,-1,1,-1} into a function. I tried ...
1
vote
1answer
93 views

Avoiding unnecessary computations within loops

Consider the following data: test = RandomReal[{1, 2}, {10, 5, 3, 3}]; How can I do the following without the For loops, e.g. ...
0
votes
1answer
201 views

ListPlot of recurrence equation of multiple variables [closed]

I'm working on a class demo of recurrence equations and I want to show the impact of different parameter values using Manipulate. Here's my code: ...
0
votes
1answer
155 views

Wolfram Alpha's Mysterious Trig Abilities [closed]

This is a very straight-forward question: I'm trying to simplify [sin(2pi*t +pi/4) + sin(2pi*t -pi/4)], and failing at it: ...
11
votes
1answer
556 views

GPU user experiences

Edit Thanks to all who have responded! I now have plenty of information on the GeForce 650M GPU as found in most new, mid-range Mac laptops; the Mandelbrot code below runs in comfortably under a ...
5
votes
1answer
189 views

Definite Integral over a path

What does Integrate[f[z], {z, a, b, c, d}] exactly calculate? Is it $$\int_a^b f(z)\, \mathrm{d}z +\int_b^c f(z)\, \mathrm{d}z +\int_{c}^d f(z)\, \mathrm{d}z ...
1
vote
2answers
220 views

Deep Pattern matching with repeating arguments

I have a function that accepts a single argument that is described by the following grammar: ...
4
votes
1answer
114 views

Why this code is considerably slower in version 9?

I have a Mathematica code for computing and plotting the density which corresponds to a given potential. The following code was written few years ago using version ...
1
vote
1answer
285 views

Stop Mathematica from giving imaginary solutions

I have the following equation: $$D=\frac{1}{64} \pi A ^3 B \sin \left(C\right)-\frac{1}{2} \pi A B \sin \left(C\right)$$ which I want to solve for $A$. The equation is cubic in $A$ so this should ...
1
vote
1answer
70 views

Confirming the existence of a function related to a matrix

Is it possible to get an answer to the following question in Mathematica? Let $M$ be a $n$ by $n$ matrix, is there a function $m:\mathbb{N}\times \mathbb{N}\rightarrow \mathbb{Z}$ such that ...
8
votes
4answers
626 views

Showing a rectangular plot on an almost-closed sphere

I am currently teaching some students about the "point at infinity", and how it allows us to treat circles and lines as "the same", etc. I would like to kind of show this happening with a series of ...
0
votes
1answer
189 views

How could we define a function recursively?

Let us first consider the constructon of the following simple iteration ...
6
votes
1answer
354 views

Mathematica vs Sigmaplot (Non LinearModelFit)

I asked a question in a previous post that was closed because "The title of the question is not correct and the issue here is too trivial to help anyone later". NonLinearModelFit It's possible ...
2
votes
2answers
647 views

Returning a function from a Module [duplicate]

I'm having problems working with the output from DSolve whilst in a module. To handle the result outside a module typically I would do something like ...
7
votes
1answer
1k views

Get the coordinates from ContourPlot and RegionPlot

How do I get the coordinates from a contour plot I've done in Mathematica? For example, I have a two-variable function f[x, y], for which I can make a contour plot: ...
5
votes
1answer
506 views

Problem displaying eps exported histograms in Word 2010

I am having problems displaying histograms exported as .eps in Word 2010. I don't have problems though displaying them in a specialized .eps viewer. (Postsript viewer from Rampant logic) I am writing ...
0
votes
0answers
30 views

How to define a vector of arbitary length [duplicate]

I need to use a vector of length which I can change, indexed symbolically So for e.g. when N=3 I'd like to have vec={c1,c2,c3} when N=5 ...
5
votes
1answer
141 views

Extracting text from cells, preserving non-ASCII characters

Consider the following setup, based on this answer by WReach: ...
2
votes
1answer
405 views

Extract data from plots in papers including error bars

I would like to know how to extract data from plots in a paper and, also, how to do that in a way that include error bars. I know there are specific softwares to do that, e.g. Plot Digitizer, which ...
2
votes
1answer
123 views

How to work with the symbol EndOfFile? [duplicate]

How to work with the symbol EndOfFile? I want to use the EndOfFile symbol to determine when my control structure reaches the end ...
-1
votes
1answer
96 views

How to separate a vector into two vectors, one having the first half of my original vector and the other having the second half

I have a set of n vectors with an even length. Let us make an easy example with 3 vectors of length=4: ...
6
votes
1answer
489 views

TensorContract of inverse matrix

Matrix inverse in mathematica If $A$ is an invertible $n \times n$ matrix, then $A\cdot A^{-1} = I$. To get this statement in Mathematica, you need the assumption ...
2
votes
0answers
1k views

How can I change the default font for all notebooks? [closed]

In Mathematica 8 I tried to change the default font for all notebooks in Format > Option Inspector > Global Preferences > Formatting Options > Font Options > large font selection screen > selection ...
2
votes
2answers
539 views

How to change the density range in DensityPlot?

This is an example from Mathematic Help, DensityPlot[Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3}, ColorFunction -> "SunsetColors", PlotLegends -> Automatic] ...
2
votes
1answer
104 views

How to change the output format of a built-in function

Is it possible to change the output of build-in functions? I would like to change the output for IdentityMatrix[n] to "I", so I tried ...
13
votes
4answers
462 views

Is it possible to select outliers on a graph and determine the index of the outliers?

I have a large data set of experimental data for which I have determined a theoretical fit. However, for some of the experimental data I took, there was systematic error, leading to the data deviating ...
1
vote
1answer
283 views

Solve equation with inequalities for parameters

I want to solve following equation: ...
2
votes
2answers
266 views

How to draw Graphics3D items with straight border lines?

I want to make a Polygon with straight border lines. For that purpose I wrote the following code, but it doesn't show straight borders. ...
0
votes
1answer
126 views

Problem with plot of discontinuous function of 2 variables and adding legend to a contourplot

I have 2 problems with which I would need help: -first one is that I would like to plot a discontinuous function of 2 variables but can't succeed (see attachment) -then I also would like to display ...
0
votes
1answer
124 views

TabView resets to default when selecting data using Control object

I have 3 drop down boxes on one of the tabs in my TabView. Two of the drop down boxes results are used in a Select statement to ...

15 30 50 per page