5
votes
2answers
845 views

Plot 2D Vector function in 3D

I want to plot a 2D vector function such as $F(x,y) = (a(x,y),\,b(x,y))$ in a 3D graph so that the vectors are embedded in the xy plane. I tried to do the following: First I defined a piecewise ...
2
votes
1answer
124 views

How do I remove this awkward plane? [duplicate]

Using Plot3D, I tried to plot $x^3 + y^3+3xy=z$ ...
4
votes
1answer
209 views

Simplifying numerical expressions involving special functions

I've encountered the following problem. There is the identity that the special functions EllipticK[x] and EllipticE[x] satisfy: ...
9
votes
5answers
820 views

How do I obtain the enclosed area of this particular parametric plot?

I'm trying to find a way to obtain the enclosed area of this particular plot. Can someone show me how? ...
3
votes
1answer
190 views

Numerical Error with Large Matrices

I am writing a Finite Element Analysis program in Mathematica. The code involves handling a large matrix with large entries. I get an error when I try to use Mathematica's "LinearSolve" to solve a ...
12
votes
4answers
419 views

FullSimplify Over Reals Automatically

Frequently, Mathematica will produce some expression in a complicated form, with a number of unset variables. For me, it is rare that I would be interested in solutions that are generalized to both ...
12
votes
4answers
848 views

Plotting data points: Optimizing size and visuals

The following problem is one that may have showed up to you while plotting a large data collection. Suppose you have a data set of say 1 million points. ...
4
votes
1answer
170 views

Precision of rendered Rectangles in stiff-scale graphics

The attchd graphics called chromograms represent a set of discrete-state, continuous-time - ie, discrete-event signals, generated with Mathematica 9 on OSX with a Cinema display. • Top 2 rows are ...
1
vote
1answer
134 views

Finding coefficients that make certain functional expression vanishing

My problem is to find a procedure that gives coefficients which make certain functional expression vanishing. For example if I have a polynomial $P(x)$ of one variable $x$ given by $P(x)=a_0+a_1 ...
4
votes
1answer
148 views

How do I group a nested list further according to a rule, and average selected elements?

I have a nested list of numbers like { {36, -244}, {37, -225}, {38, -197}, {48, -200}, {49, -181}, {50, -133} } which needs to be further nested into "bins" according to a rule. I would describe the ...
1
vote
3answers
457 views

How to make a plot on top of other plot?

I want to plot two functions. One should appear on top of the other. The x axis has the same values for both functions, but should appear twice (the second- upper I want to be dashed). y axis should ...
8
votes
1answer
449 views

High Contrast Syntax-Highlighting

I have a neurological disorder which causes me to have migraines if I look at a white computer screen. To combat this, I have put the following at the top of all of my Mathematica notebooks: ...
3
votes
2answers
346 views

Density plot for data with a wide dynamic range

I'm generating some figures for a paper. One of them has a pattern like the following figure: ...
0
votes
1answer
134 views

No Tukey Test on ANOVA package

I'm trying to use the ANOVA package and have mathematica display the Tukey PostTest, but all I get is this: ...
1
vote
1answer
614 views

ErrorListPlot Legend with Markers

I'm trying for some days now to integrate markers in my legend. I have a ErrorListPlot with markers and a legend but difficulties to realize the markers in the legend as well. Thanks a lot for your ...
1
vote
1answer
137 views

How to export a plot into a file?

I am trying to save some graphics into a file, and it seems impossible. ...
6
votes
1answer
628 views

Does Mathematica solve transfer functions differently to Matlab?

Please note this is an edit to the same question posed a few weeks back: I'm using Mathematica to derive the transfer functions for a three phase AC/DC inverter. Given below is the code for the ...
4
votes
1answer
175 views

How I get random keys from keyboard for game controls?

I'm trying to make moving object using controls. I'm trying to do this using Buttons. The code is ...
6
votes
2answers
133 views

Making ColorSetter work like a PasteButton

I might be missing something obvious here. I am building a palette for constructing code to make certain graphics. The idea is that my colleagues can click buttons instead of having to know the right ...
0
votes
1answer
136 views

Simplifying Complex Numbers that contain physical units

I am trying to evaluate the following: Simplify[Meter Nano Re[(a + I b)/(Meter Nano)], Assumptions -> Element[{a, b}, Reals]] However, Mathematica returns: ...
4
votes
1answer
171 views

OpenGl Z-Order Equivalent in Mathematica?

I am trying to draw the arrows in this picture on top of the two parallel plates. In OpenGL I would just set the 4th coordinate the z-order to be closer. Any ideas how to draw them on top in ...
2
votes
1answer
126 views

Looking for documentation on code editor's color/style highlighting

Where can I find reference documentation (as opposed to, e.g., tutorials, etc.) on the meanings of the various color/style highlightings that Mathematica automatically assigns to code as one types it? ...
5
votes
2answers
238 views

Computing the sign of the real part of eigenvalues in a 3D linearized system with 3 parameters

So I have this dynamical system given by: $$ \left\{\begin{aligned} x' &= a(y-\phi(x))\\ y' &= x-y+z\\ z' &= -by \end{aligned}\right. $$ where $\phi(x) = \mu x^3 - \nu x$ and $a,b,\mu,\nu$ ...
2
votes
2answers
75 views

How can I get a Button to evaluate an expression containing Get? [duplicate]

I have problems making Button evaluate an input like this one: Button["Load", Get["/Users/simonlausen/Desktop/Input/ex1.mx"]] ...
2
votes
2answers
248 views

NMinimize problem again

Following up my previous question which got great replies, I am now trying to do ...
3
votes
1answer
514 views

Getting over Mathematica Bar Chart Limitations….

I am trying to create a pareto chart for some non technical folks and having the hardest time formatting it correctly… Here’s my sample code: ...
3
votes
2answers
234 views

Computing the minimum distance in a contour plot

I have the following Mathematica code ...
10
votes
3answers
656 views

Extract connected components from PNG image file and write to individual PNG files

Given the PNG image below with the three leaves in it, I'd like to extract each individual leaf and write it to its own PNG file, using Mathematica 9. Note that in the original image, the box bounding ...
2
votes
0answers
123 views

Is there documentation on the comparative performance of Mathematica functions? [duplicate]

Recently I have been solving some Project Euler problems. I find there are always several ways to do the same thing. For example, one could join two lists like this: ...
7
votes
1answer
223 views

Exporting German Umlauts to PDF and importing them doesn't work - character encoding problem

I am using Mathematica 9.0.0.0 under German Windows 32bit. I am on trying to export and import German text to PDF and re-import it. It seems that there is a confusion about the character encoding. It ...
11
votes
1answer
234 views

Is there a summary of answers Head[] can give?

Sometimes you need to check for the type of an expression. You use Head[data] to get answers. Some data: ...
3
votes
5answers
788 views

Plotting the solutions to a transcendental equation

I am trying, to no avail, to use Mathematica to produce a plot in (x, y)-space of the solutions to the equation Cos[Sqrt[y]] + Sin[Sqrt[y]]/Sqrt[y] == Cos[x] ...
5
votes
2answers
256 views

List version of SphericalPlot3D

could you give me some input on how to create a list version of SphericalPlot3D[r[theta,phi],{theta,min,max},{phi,min,max}] When r[] is an explicit analytical ...
0
votes
0answers
75 views

Tooltip and table in plot [duplicate]

Plot[Tooltip@{1.` k^2, 1.2` k^2, 1.4` k^2, 1.6` k^2, 1.8` k^2, 2.` k^2}, {k, -2, 2}] gives But why does ...
10
votes
4answers
396 views

How to add lists with unequal length?

Given lists of unequal lengths, I want to add them together element-wise, treating missing elements as zero. For example, {1, 2, 3} + {a, b} + {x} should give ...
11
votes
1answer
423 views

Get both output and return code of external program

Run["program"] will run an external program and return the return code. Import["!program", "String"] will run the program and ...
1
vote
2answers
291 views
5
votes
1answer
68 views

Why does Play fail to produce a widget sometimes?

If I define: aNote[x_] := Sin[440 * 2 * Pi * x]; then this works (i.e. it produces a widget with a Play button, and clicking on this button produces an A note): ...
4
votes
3answers
241 views

How to control the speed in Manipulation

As the title says, I want to control the speed when I use Manipulate. I have the following piece of code ...
2
votes
0answers
159 views

Is there a relatively easy way to add the “Cone of Influence” to a waveletscalogram?

I am analyzing time series data using the ContinousWaveletTransform function and plotting the results with WaveletScalogram. I ...
8
votes
3answers
291 views

Benchmarking expressions

It often happens that I'd like to know which of two or more alternative expressions (that should evaluate to the same value) is fastest. For example, below are three ways to define a function: ...
-3
votes
1answer
161 views

How can you show data in a CDF Animate Graphic?

I want to show (dynamically) the curvature and torsion in a CDF to understand the quantitative measure of any points. Do you know what I have to do to show data in a ...
18
votes
3answers
1k views

Programming a numerical method in the functional style

I am new to Mathematica and I would like to learn a bit more about functional programming. At the moment I have assignments like programming different numerical methods (for integration: ...
4
votes
1answer
213 views

How can I create input fields based on the user's choice from a popup menu?

I'm trying to create an interface with Mathematica. However, I need some instructions concerning the code below. This is about 10% of what I have in mind, but first I need to know how can I create ...
4
votes
2answers
212 views

Convergence and value of a complex power series

I've done a little math and I got the following power series expansion of $\log z$ about $z_0=-2+i$. $$\log z=\log(-2+i)+\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n(-2+i)^n}[z-(-2+i)]^n$$ I've shown that ...
6
votes
1answer
150 views

Could a package be composed of references?

Could a package be composed of references (e.g. usage messages)? Do the code for an induvidual function implemented in a package has to be physically in that package file where it is referenced (i.e. ...
2
votes
2answers
112 views

How do I generate a set of n-tuples containing integral solutions to a linear equation provided certain constraints?

Let $m,k,p$ be fixed positive integers. I want to create a table of k-tuples $(x_1,x_2,\ldots,x_k)$ comprised of solutions in positive integers to the equation below: ...
3
votes
4answers
123 views

What is the inverse of CoefficientList?

I have numbers in vector notation. I need to get polynomial notation from them. My numbers are {0, 1, 23, 5, 15, 0, 0, 0}. I want to get x + 23x^2 + 5x^3 + 15x^4 ...
1
vote
1answer
295 views

How can I factor my trigonometric equation?

The equation $$3\sin^2 x - 3\cos x -6\sin x + 2\sin 2x + 3=0$$ has a solution $x = 0$. That means it has a factor of $\cos x - 1$. I tried to write the given equation has the form $$(\cos x - ...
1
vote
3answers
134 views

Define new number set

May seem strange at first, but can you make mathematica change the value of 0 to 10 and 11 to 1 for all occurrences. Let me explain: I'm looping through a matrix and for each element, I want ...

15 30 50 per page