# All Questions

49 views

### Conditional replacement of all occurrences of a variable?

I know there is functionality in Mathematica to perform replacements like: x[a] d[a,b]/.y_[z_] d[z_,p_]->y[p] Which naturally gives ...
79 views

### Create a ProbabilityDistribution

I am trying to wrap my head around the function ProbabilityDistribution. For training purpose, I'd like to recreate the binomial distribution (without using it) so that the two code lines return the ...
102 views

### Removing spurious parenthesis in TraditionalForm

I don't understand the following behavior (in v 9.0.1) of TraditionalForm regarding insertion of parenthesis. Let us start with the a definition for ...
105 views

445 views

### What is the right place for user-defined init.m?

What is the right folder to put a file init.m which will be run after all other init.m files applied by the various components of Mathematica have done their job? ...
732 views

### Change string date/time to be understandable for mathematica

I'm trying to convert a string of a data and time to be understandable for mathematica (I want to make time related plots). However, I can get my head around how to do this. For example: ...
94 views

### Generate a sequence of names such as a1, a2, a3 [duplicate]

How do I generate the sequency {disp1, disp2, disp3, ...}? I tried the following but it didn't give me what I expected: ...
34 views

### How to make a real number parameter go 2 decimal precision? [duplicate]

I'm new at community and I'm starting with Mathematica. I'm now having a trouble with a very simple problem which for many of you might be really obvious. In documentation ...
128 views

### Compatibility of Mathematica 10 and Endnote 7 on OS X

Given the new updates, are EndNote 7 and Mathematica 10 compatible when running on OS X?
42 views

### How to Plot with different styles different InterpolatingFunction [duplicate]

Im sorry for this question I'm new and it may be a stupid question, but I can't find nothing specific. I have these differential equations and NDSolve give me <...
128 views

### Exporting Code to pdf

I want to export Mathematica Input and Output code to pdf (for usage with Latex). I select the cells and use "Save selection as". However, the font size of the pdfs is to large for Latex usage and if ...
218 views

### NMinimize ignores constraints

I have a problem with NMinimize - I try to minimize quite a complicated function and use a couple of constraints (the way it is shown in the documentation). Now, ...
612 views

### How to create a function like in Python

I want to call a function that would perform a function rather than assigning an expression to them. I.e. ...
92 views

### Simultaneous fitting to multiple data sets with multiple variables and some common parameters [duplicate]

I am trying to fit two data sets to a function model described below which share a few common parameters. Say I have two functions with some common parameter(s) ...
376 views

### How to find all roots of a complex number [duplicate]

Finding all roots, and I know there are four f them, of this (1 - i)^(1/4) Not only real, but imaginary as well
197 views

### Mathematica 8 remove black background from image

How do I do that in Mathemtaica 8? I have found on this site many options like RemoveBackground[], but they don't work in Math.8. Are there any options? Here is ...
427 views

### Why doesn't FullSimplify simplify expressions with DiracDelta?

I want to simplify a complicated expression with some Dirac delta distributions, but FullSimplify does not do what I want. Specifically, I want ...
557 views

The dynamic billiard demonstration, that can be found on wolfram demonstrations (here), is only designed for an ellipsoid-shape boundary(snapshot below). The idea is to have a dynamic billiard with ...
295 views

### Manipulate showing the trajectory of a particle

I'm trying to plot the trajectory of a particle: ...
115 views

### How do I format the output to include the function definition?

To explain, I do most of my probability homework in Mathematica, and use the typesetting built into Mathematica to finish answers. Often, I want to output a function as the answer to a problem, but I ...
672 views

### How to generate a chirped signal

As there is no ChirpSignal function in Mathematica, can anyone tell me how to write a custom function to generate a sinusoid with a frequency that changes ...
171 views

### How to take derivative of a tensor leading to kronecker delta? [duplicate]

I'm trying to write a Mathematica program to find derivatives such as the following simple example: Could you please help?
293 views

### Why doesn't this pattern work?

I want the in-built function Count to count the elements in a list which are greater than a value. Example: ...
204 views

### Solve with variables as single vector

Say I have a set of equations where the unknown variables are the elements of a vector $c=(c_1,c_2,\ldots)$ and want to solve it for $c$. Is there a way to do this with ...
115 views

### Compile with modification of arguments' values

Is it possible to compile while changing the value of the arguments the function receives, instead of just creating new variables, and then returning those new variables,i.e., is it possible to pass ...
253 views

### Bug(?) in version 10: Tooltip and ListPointPlot3D

Bug introduced in 10.0.0, persists through 10.1 The coordinates of a point in a three dimensional graph can be shown in a tooltip: ...
2k views

### Find all roots in range

Is there any way to check for all roots in a range? Jens' findAllRoots function is pretty good, but runs at approx. 10% of roots missed when I ran a quick check on ...
531 views

### Colorize Grayscale Image

I have a grayscale image that contains two objects. The grayscale pixel values can be divided into three intervals where two of them represent objects and the third represents the background. The ...
73 views

### Unprotect fails the first time, works on second pass [duplicate]

I am redefining some of the standard math functions. I know this is dangerous, so I am trying to be extra careful. (For instance, in the redefinitions, I make sure to only match a custom head) The ...
242 views

### How can I use multiple Textures in Graphics3D

I am creating a Graphics3D object for a box using 6 Polygons (1 per side). I can use one single Texture on one or more sides but I can not find a way to use different Textures for different sides of ...
144 views

### Using conditionals to check if LinearSolve found a solution

Is there some way to check if LinearSolve found a solution using conditionals in Mathematica 9? I need to solve a large number of linear equations, but I am only interested in the cases where there ...
345 views

### ListContourPlot in V10

Bug introduced in 10.0 and persisting through 10.3.1 or later It seems that I obtain different results when using ListContourPlot under V9 and V10. Using this ...
140 views

### Nothing happens when I click the mouse clicked on my graphics

I wrote codes to record list of coordinates when mouse clicked. It is expected that the coordinates should be plotted dynamically. But actually nothing happened. Can anybody help me to find the reason?...
76 views

### How do I get a Do function to create a list?

I have a Do function which gives me a column of expressions. How can I get the Do function to give me these expressions in a list. i.e The do function gives me this: a b c d I would like it do give ...
154 views

### Rotate points by 60° in 2D

I wrote this code, to rotate a list of points 60° about the first point in the list in 2D, but Mathemtica says: "Recursion depth of 1024 exceeded."
231 views

### Vertex merging in graph?

Given a Graph such as the one produced with the following code ...
314 views

### How to define multiple functions using a for command

Let's say I want to plot 10 graphs of those following functions. Since they are recursive functions, I cant make a table with 10 different initial conditions because Mathematica stores each value ...
335 views

### How to join two strings one of which is Subscript? [duplicate]

If I write this one str=Subscript["x","y"]; StringQ[str] False How can I get str as string?
217 views

### How does Mathematica use system environment variables?

Is there a common way in which environment variables are accessed, stored, or used by the kernel? There are built-in functions for querying and setting vars in the system environment, but there are ...
200 views

### Problems opening a notebook in Mathematica

Reviewers: please see the comments below my answer for additional information on why the edits were made. -bobthechemist I have a text file (with a .txt extension) written for Mathematica, but ...
255 views

### Tooltip with ListLinePlot and interpolation

Is it possible to get the coordinates of any point on a graph using Tooltip, ListLinePlot and interpolation ? For example on this simple example ...
2k views

### Check if two lists are equal in any order

Suppose I have two lists, how can I efficiently check if the two lists are identical up to permutations of the elements? For example I would like the function to output: ...