# All Questions

221 views

### Using Plot and Piecewise to graph a roller coaster

I am graphing a roller coaster using Piecewise and Plot commands on Mathematica. I have the first 2 Piecewise functions and would like to add a loop to the end of it. Here is my initial graph: This ...
79 views

### NDSolve: obtain time difference when different solutions get same distance to equilibrium value

I have a numerically solved a differential equation which has an equilibrium value and a starting point, both included as a parameter. I want to plot the difference between the times it takes to come ...
56 views

### “Undo” not working for script, gothic, and double-struck letter forms?

Has anyone else experienced anomalous behavior using "Undo" (Ctrl-z) with notational alphabet letter forms? Since Mathematica's built-in functions are capitalized, one generally avoids beginning user-...
211 views

### DensityPlot: giving the same color to a range of values

The following command DensityPlot[x y, {x, -3, 3}, {y, -3, 3}, PlotLegends -> Automatic, ColorFunction -> {"Rainbow"}, PlotRange -> {{-3, 3}, {-3, 3}}] ...
58 views

### Can I customize the shell command line prompt?

Is there a way to customize the command line prompt (e.g., colorize it) for MathKernel when it runs as a shell command (in general, but specifically on OS X)?
194 views

### Automatically detect higher slope in numerical data (within a certain range)

Suppose the dataset data is part of some simulations whose results should follow a certain model. Here is data and its ...
121 views

### Brownian Bridge - Multiple Paths [closed]

I am attempting to simulate multiple Brownian Bridges on the interval [0, 1]. I have the following snippet: ...
128 views

### Integrating 2d exponential function symbolically with polynomials of 2nd order running for days

I'm trying to integrate this function by Mathematica ...
149 views

### import of a opj file (Origin)

Is there a way to import a file of opj-type? Or do you know a package to convert the data? The Import[] function seems not to know this format.
164 views

### Modifying the content of a list

If I have a long list of form {{1,2,3,4},{5,6,7,8}, ... {97,98,99,100}} how do I edit/convert it by adding the text as shown below ...
83 views

### ParametricPlot and Piecewise function

I want to create a ParametricPlot with multiple Piecewise functions in it. I have tried the following code but it doesn't work ...
512 views

### How to generate a closed B-spline curve?

I wrote a function called deBoor using the Cox-de Boor algorithm to generate a B-spline curve. ...
142 views

### How to DumpSave all variables or the whole notebook?

Is there a way to DumpSave all the variables in the notebook? Or better whole notebook so that opening it would restore all the definitions.
374 views

### Generating repeated elements in a list [closed]

Is there a function in mathematica that allows you to generate repeated elements inline within a list. For example, let's say you provided this as input text: {1, 2, 3, 4, Repeat[5,3], 6, 7} ...
51 views

### Extract list of values associated with specific header within an expression

I would like to have a function that can extract from an expression a list of values that are within the brackets of a certain header at any level: ...
164 views

### Why am I getting different answers for an integral depending on method?

I'm trying to carry out an integral and I'm finding different answers depending on which method I choose to integrate with. I assume this has something to do with divergent pieces but I don't ...
237 views

### Mathematica 10 on Ubuntu: Extremely slow input and random key inputs

I have some problems with my mathematica 10 on Ubuntu 12.04. First, the keyboard input is extremely slow. I press a key, and then the input comes with a delay. This makes typing very cumbersome. ...
177 views

### How to solve this two algebraic equation simultaneously for u and H ?(all real number)

I want to find the non-zero value of H when beta is changing(especially what value of beta when increasing will there be a non-zero H value). H is between [0,100]. This is actually the calculation ...
157 views

### How to dynamically plot the trajectory of a particle from the ODE solution?

This is what I've done: ...
101 views

### Searching for literal strings with TextSearch

The documentation indicates that TextSearch can be used to look for a "literal string" inside documents, but it appears Mathematica may be applying a regex-style ...
39 views

I'm trying to prevent Mathematica from opening previously opened notebooks when I start it up. I'm using version 10.0.0.0 on Mac OS X Yosemite. I've dug around in the preferences, and have tried ...
173 views

### Techniques to find all local minima of black box function with n continuous derivatives?

I have a blackbox function f on [a,b] that is known to be continuous, and has n continuous derivatives. The function uses polynomial interpolations (but isn't a polynomial interpolation itself), so no ...
53 views

### Get Domain resp. implicit piecewise definition of numeric Function

Given the following quintic polynomial ...
171 views

### Maximizing a function defined using NIntegrate [duplicate]

I have two functions fn[x,y,z] which is in integral form and I have another function gn[x,y] which is also in integral form ...
124 views

### How to add a caption below a cell?

How can I change my stylesheet definition for a cell to optionally add a caption below? For example, I would like to add a caption to my "Program" cells shown here: like this (but with the option ...
36 views

### How to find the optimum word length of a group element?

I have a (large, finite, permutation) group, and a group element that I know is a product of length=20 of the generators. But when I ConvertGroupElementToWord, I get a word of length=118. Other, ...
2k views

### Advice for Mathematica as Mathematician's Aid

I use Mathematica mainly as an aid in symbolic attacks on problems, usually intermediate or harder and often number theoretic. While Reduce, ...
88 views

### 2D plot using output from the other function

I would like to get 2D plot using output from the other function. FindInstance[0.5*x^2 + Cos[y + P] == 1, {x, y}, Reals] By changing values of P manually it gives ...
276 views

### How to do multi-dimensional principal value integration?

The toy model is: $$\int_{-2}^{2}\int_{-2}^{2}\frac{1}{1-(x^2+y^2)}\, dx\, dy$$ The integrand have opposite sign across the circle $x^2+y^2=1$, so one would expect that the integral has meaning only ...
70 views

### Area of a surface spanned by 2 parametric curves

I would like to find the area of a surface spanned by two parametric curves in 3D. I came up with this metric for distance between curves. The illustrations are in 2D for simplicity. ...
42 views

### Failure in use of SetPrecision with Filter

I am working with a narrow band filter and I wish to use a high precision version. The filter is defined using Integers with Laplace variable s. Here is the, rather horrific, equation: ...
400 views

### How to find a quotient group?

Given a normal subgroup H of a (large, finite permutation) group G, knowing a set of generators for each of H and G, how to find a subgroup K of G that is isomorphic to G/H? (Using Mathematica.)
55 views

### Avoiding misconversion of data with ToExpression function [closed]

I've got a list of data with the following structure which can be easily converted To expresion by some manipulation such as ...
178 views

### Linear Fit of multidimensional data

I am trying to find linear decomposition of vector B (of arbitrary dimension $n$) in the form : $B = \alpha_{1} C_{1} + \alpha_{2} C_{2} + ...$ where $C_{i}$ are known vectors (of dimension $n$) ...
192 views

### Kernel is crashing during evaluation of FindRoot [closed]

I have a bunch of aux functions and constants ...
466 views

### n-dimensional plot

I want to plot 6-dimensional data using parallel axes (https://en.wikipedia.org/wiki/Parallel_coordinates). The list looks like this: ...
770 views

### How to zero (or replace) the diagonal of a square matrix?

Zeroing the diagonal of a square matrix is an operation I need frequently, but somehow I still haven't managed to find an elegant solution that satisfies all these requirements: works with both ...
126 views

### Differentiation help [closed]

I am new in Mathematica. I want to differentiate ...
268 views

### Finding the FWHM of a NonlinearModelFit gaussian [duplicate]

I have a NonlinearModelFit in a very large program, f1 = NonlinearModelFit[d1, a Exp[-(b (x - c1))^2] + yoff, {a, b}, x] Which is used in my program to produce ...
35 views

54 views

### Importing binary structured C++ data file

I am trying to import a binary data file. It seems that BinaryReadList would be appropriate? However the data file is composed of c++ structures like this: ...
120 views

### Monitor the computation only if a certain Option is given to the function

Suppose I have the function heavyFunction[x_]:=Module[{n},Do[Pause[0.1],{n,100}]] representing some complicated and time-demanding computation. I want in some ...
92 views

### Optimization of recursive functions by using the //. operator [duplicate]

In some cases, recursion in Mathematica (without storing values) is not very efficient. For example, the recursive implementation of Fibonacci numbers (version which doesn't store the values) : <...
687 views

### How to delete subsets quickly?

I have some data like this: ...