# All Questions

327 views

### How to generalize and speed up this program?

There is a vector whose length is $n*m$, we can part it into $n$ sections in order. I want to define a function to compare the $i$-th and $i+1$-th section and find the minimum. The program for $n=m=3$ ...
183 views

### Image's pixels GPU colour classes splitting

How can I split in color classes, the pixels of an image that I load in Mathematica? I would an output like this: ...
1k views

### How do I find line integrals?

For example, how can I calculate $$\int_{\left | z \right |=1}\frac{dz}{z}$$ I know that the answer is $2\pi i$ but how do I do it using Mathematica?
462 views

### How to integrate this cumbersome piece-wise function?

I have this systems of equation: ...
428 views

### How to add new nodes to an existing graph with fixed (coordinates) nodes?

I'm ultimately trying to create a directed graph with some of the nodes in fixed positions and the other nodes placed around them in "acceptable" positions. It's better if I ask the question by ...
309 views

### ParametricPlot3D and Sphere Graphics

I'm trying to put a sphere into a 3D parametric plot, but I seem to have a strange problem. Here's the code: ...
75 views

### Some boundary issue of Integration

When I try to solve the integration f(x) as following (type it in the Mathematica) $f(x)= \frac{1}{π} \int_{-1}^{1} \frac{\sqrt{1-y^2}}{(y-x)}dy$, I met some boundary problems. I have searched some ...
169 views

### RevolutionPlot3D: Inconsistency between Mathematica 8/Linux and Mathematica 9/OSX

The following code runs error-free in Mathematica 8.0 under Linux. ...
91 views

### Interaction of InputField with Row (but not Column, Grid or Panel)

In Mathematica 9, there's an interaction between InputField and Row. The following fragment (without or without ...
494 views

### Interpolate throughout a 3d data list without extrapolation

I have a 3D list of data for which I'd like to plot an interpolated surface. There are several ways to achieve this, but none I cannot find a method which ONLY plots the ENTIRE interpolated surface ...
84 views

### What's the best way to select compatible options? [duplicate]

How do i safely, efficiently, and elegantly select compatible options? I normally do ...
165 views

### ParametricPlot3D Question

When I graph: ParametricPlot3D[ If[11*Cos[t] <= 5, {9*Cos[s]*Sin[t], 10*Sin[s]*Sin[t], 11*Cos[t]}, Null], {s, 0, 2*Pi}, {t, 0, Pi}] I get but ...
94 views

### Use Mathematica to determine the falling law

We have a one-variable equation $\rho(R)$ where ρ = (14656.4+277.526*R^2)/(45.9225+R^2)^{5/2} + 0.370036/(R*(0.25+R)^3) This equations describes the evolution of ...
350 views

I have a large bzipped file that I want to read using OpenRead on a pipe with UTF8 encoding. Doing the following does not give me UTF-8 encoding. My ...
47 views

### How can I manipulate a circular part of an image? [duplicate]

I want to a specific part of an image, while leaving the rest of the image unchanged: The part should be circular en the center and radius of the circle should be easily adjustable. So far I can only ...
135 views

### How does Plot determine vertical range when not user-specified?

Consider the example1: p0 = Plot[Tan[x Pi/2], {x, -1, 1}] In this case, the vertical range specified would be $(-\infty, \infty)$, which is clearly impossible to ...
222 views

### How can I track the execution time of an evaluating Manipulate cell?

In Wolfram's tutorial on Advanced Manipulate Functionality, a nice example of a continually evaluating Manipulate cell is presented: ...
127 views

### Auto line breaks in workbench

I have been using Mathematica for a while and thought of using Worbench to structure my project better. However, moving my code from .nb-files to .m-files in a Workbench project does not really work, ...
325 views

### Automatically close Mathematica

It seems there are a lot of related topics but I haven't found an answer. I want to automatically quit Mathematica after some procedures are done but dialog window appears: ...
198 views

### Select and Blank

I try to filter sublists of a list which match a pattern. test = {{"String1", "a"}, {"String2", "b"}, {"String3", "a"}, {"String4", "a"}}; The result should ...
301 views

### How can I solve a forward-backward-looking recurrence system?

I would like to (numerically) solve a forward-backward looking recurrence equation in Mathematica. The system is something like: ...
124 views

### Function optimization errors

I have the following Mathematica code (Mathematica version 9): ...
406 views

### Matrix Rational Canonical Form

Is there a way to calculate the Rational Canonical Form of an $n\times n$ integer matrix using Mathematica? I have been perusing the documentation and web, but nothing so far.
708 views

### How to cancel a common term from numerator and denominator?

What mathematica commands are needed to simplify $\frac{x+n x^m}{x(1+x)}$ to $\frac{1+n x^{m-1}}{(1+x)}$ ? ...
118 views

### Copy/paste of Interpretation to Latex fails, but works for InputText

As part of another issue, the following has come up. Create an Interpretaion: Interpretation[Subscript[a, b], a[b]] Select ...
419 views

### Saturated Density Plots

I am making some density and contour plots in Mathematica. These plots have very high peaks which saturate with color and prevent me from seeing differences in the peaks. Is there a way I can tone ...
537 views

### Modelling a Rocket Launch using NDSolve

I'm trying to model a rocket launch with Mathematica but I've run into a little problem since I don't know how to turn the thrust off. I'm using Newton's Law of Universal Gravitation plus an added ...
174 views

### BSplinefunction and its derivative

Hi I am trying to use curve fit some data using the BSplinefunction. I havent been using Mathematica long, so my questions might be quite basic. ...
164 views

### Add Pattern to List Removing Duplicates

Lets say I have a list of patterns ...
96 views

### Symbol not added to context

I have run into a problem that is currently stumping me. I'm running a WebMathematica server, and am trying to create a package to use on one of the pages. However, when I load the package, it appears ...
116 views

### “Save as (html)” and still render Input cell code as text?

When I' m testing on this post' s method I found some problems. ...
111 views

### Why I cannot use the option “MathOutput”?

I'm on Windows 8.1 with Mathematica 9. ...
381 views

### Given a symbolic expression how to find if starts with a minus or not?

I am using a Mathematica function which returns some error term in symbolic form. I needed a way to determine if this term starts with a minus sign or not. There will be only one term This is to ...
266 views

### Interpolation steeply drops to 0 beyond data

I use Interpolation on unstructured 3-D-Data to visualize different regions via RegionPlot. A problem I run into is that the interpolating function steeply drops to zero beyond my set of data. This is ...
206 views

### Given a Boolean representation of a system, how can the Reliability Function be displayed as symbolic algebra?

Can Mathematica 9 convert a Boolean representation of an RBD to its symbolic algebraic form? If I have a simple series Reliability Block Diagram made up of 2 components, c1 and c2 bexpr1=And[c1,c2] ...
173 views

...
234 views

### Create ParametricFunction object without ParametricNDSolve

Documentation of v9 states that ParametricFunction is generated by ParametricNDSolve and ...
164 views

### Robust function for manipulation of nested lists

I have a nested list of the form: ...
334 views

### Using Solve Within Manipulate to Model Feedback Control System Problem

This post is extremely long and I do apologize - but please bear with me with all the explanation of the context of the question - due to how long the code is I have included a hyperlink where you can ...
478 views

### Displaying index as subscript on output: e.g. C[i] -> C_i with Notation[…] or Interpretation[..]?

You have all convinced me not to type in formulas with subscripts. However, in order to be able to match the subscripts in my whiteboard math, I figure a 2nd best solution is to want to display ...
548 views

### Bifurcation diagrams for system of equations

I am interested in constructing a bifurcation diagram for parameter a in the dynamical system given in the code below. I want to see how parameter changes affect the stability of the system. The ...
129 views

### Moles/Liters doesn't get simplified to Molar even though Molar*Liters gets simplified to Moles

Why can't Mathematica 9 simplify mol/L to M, when it can simplify M*L to mol? ...
204 views

### CUDA* commands are very slow on OS X and Mac

I have Mathematica 8.0.4.0 installed on my new MacBook Pro running OS X 10.8. I also have the latest CUDA drivers (and even the CUDA SDK) from nVIDIA. I've noticed that commands like CUDAQ[] take a ...
136 views

### Why are the two shades of the same color in this figure?

Given $S \subseteq \mathbb{C}$ I am trying to plot $f(S)$ for given complex valued function $f$ Looking at other answers on this site for similar questions, I came up with this ...
58 views

I have a general query about simplifying expressions in Mathematica, which I will illustrate using quadratics. If I tell Mathematica to simplify $a x^2 + b x + c$ then ...
202 views

### Plotting region $f(S)$ for given complex function $f$ and $S \subseteq \mathbb{C}$ [duplicate]

I have a function $f: \mathbb{C} \rightarrow \mathbb{C}$ and I want to be able to see the effect of $f$ on any particular region of $\mathbb{C}$ e.g. what happens to the unit disk under this ...
200 views

### Exporting graphics without X server

I have a Mathematica installation on a Linux server that is intended to be used for batch processing. Some of the things that will be processed will include rendering of graphics. However, if I use ...
248 views

### Demonstrate aliasing effect in sound

I'm trying to demonstrate the aliasing effect using sound, that is, when the sample rate is fixed and the sound frequency is increased, we would hear the sound pitch go down when we pass the Nyquist ...