# All Questions

73 views

### ListPlot3D with small (but acceptable) precision

Consider the following minimal example: ...
69 views

### Trouble representing an equation

I'm having trouble representing the following as an equation ...
77 views

### Symbol appears in multiple contexts when load two packages with unique function names

I have two packages "packageA" and "packageB". The function names across packageA and packageB are unique. No two functions have the same name. When I issue the ...
252 views

### NMinimize/NMaximize is unable to generate initial points

Mathematica 10 generates a warning that it is unable to generate initial points for numerical optimization problems. I picked a particularly simple example. The problem goes away when ...
179 views

### ListLinePlot of multiple series with data value and legend appearing as the cursor moves over ploted lines

I have multiple series and I am plotting using Mma's ListLinePlot function. But I am trying to implement a feature to my plot so that I can view legend and corresponding values of the series at a ...
211 views

### How do I display the plane of best fit in 3D?

I'm trying to display the plane of best fit in the same 3D-box. Currently, I have the following code which spits out a plot of the points in 3D. I want to have a plane of best fit, can Mathematica do ...
79 views

### Help creating a simple function

Can someone help me to create a function. The truth I'm new in Mathematica and I don't understand well the way functions work in I. I need a function that animate some rectangles according to a curve ...
556 views

### Why is TextString[-0.5] a positive number?

Fixed in 10.0.2 I want to format numbers in decimal notation and chose TextString for this task. But today, when looking at the final result of my 3-weeks ...
49 views

### More on performance of Sum[]

There is an interesting discussion on performance of Sum[] in this question. I actually wanted to reproduce findings from this answer. So, I entered: ...
234 views

### Simplify trigonometric equation knowing that $\sin(a)=n \sin(b)$

I was working on a problem involving trigonometry. I used Mathematica to help me in solving it. I ended up with this formula: ...
49 views

### Programming a series involving alternative log expressions

This is likely my error but I cannot see it. I define a vector: x1 = {{{2, 2}}, {{2, 1}, {3, 1}}, {{3, 2}}, {{2, 1}, {5, 1}}} If x1[[ i, 1,2]] is 2, I would like to find $(\log$ x1[[ i,1,1]]$^2$). ...
198 views

### Forcing NonLinearModelFit through a point

Like the title says, is there a way to make an NLM fit pass through a specific point.
81 views

### Deleting empty cells and selecting cells matching a pattern

Is there any way for me to automatically select all cells that are completely empty? You know, those cells that you create but end up cutting what's in them and paste it somewhere else, so after a ...
68 views

### Real or Imaginary result of spherical bessel and hankel functions of imaginary arguments

I am trying to calculate a rather complicate expression involving Spherical Bessel and Hankel functions. My problem is that somehow for pure imaginary arguments the functions are not pure real or ...
38 views

### Linear function on strings using UpValues

I have two functions Sup and Sdown that take a string of letters with allowed characters ...
77 views

### Integrate[] does not work when the function has an antiderivative function

This function (1 + (1 + 1/(2*Sqrt[x]))/(2*Sqrt[Sqrt[x] + x]))/(2*Sqrt[x + Sqrt[Sqrt[x] + x]]) has the antiderivative function, since ...
52 views

### RecurrenceTable - does it have a solution search option like FindRoot?

I have a second-order non-linear difference equation like $$0=f(x_{t+2},x_{t+1},x_t)$$ where $x_{t+2}$ is implicitly determined. I have tried the code like ...
239 views

### How to use C language functions in Mathematica? [duplicate]

I'm trying to find out the way to use c-functions in Mathematica (I'm using 14 version) on OS X 10.10. For example I've got this lines of code: ...
242 views

### Question in ParametricPlot3D, how to join the minima of a {x,y} function

Thanks to my previous question I have plotted the function with the following code: ...
37 views

### Finding a specific number of eigenvalues in Mathematica

I'm trying to learn how to determine a specific number for eigenvalues for a transcendental equation. For example, ...
78 views

### Is it Possible to create my own Dictionary?

When I count the number of words in the English dictionary wordsInLanguage[lang_] := {lang, Length[DictionaryLookup[{lang, All}]]} wordsInLanguage["English"] it ...
68 views

### Preventing Colors of Graphics from Blending

I am displaying multiple Disks that overlap and many of the Disks are different colors. Currently, the regions in which the Disks overlap are a color that is a mixture of the two Disks. I would like ...
42 views

### JLink-Java Console cann't show Chinese characters

My version is mathematica 10 on windows 8.1 x64 中文 Chinese character can't be shown in the console correctly. Any methods to overcome this problem? It seems the ...
46 views

### Using List/Histogram Data As A Weighted Function?

I have a list of data points that I would like to use as a weighted fucntion. The data represents the number of particles within a bin of a particle distribution. Ultimately I would like to multiply ...
56 views

### Symbolic integration of a indexed product term?

I am trying to perform the symbolic integration of the following expression $$\int \prod_{i=1}^n p(x_i | z) p(z) dz$$ where p(x_i|z) = \frac{exp(\frac{-(x-z)^2}{2\sigma_i^2})}{\sqrt{2 \pi ...
53 views

### Large Tuples with Negative Integers

I am trying to run a loop that cycles through the elements of Tuples[{-1,0,1},116] and terminates when a desired result is found. Unfortunately, this creates a memory problem due to 116. All of ...
103 views

### Graphic timeline from array

I found this question where someone put some code to graphic a timeline based on a certain number of events. In that code in particular, the events are hard coded one by one, I want to modify it, so ...
213 views

### Putting two functions in one manipulate plot

I have a problem that is somewhat related to this http://stackoverflow.com/questions/7727668/putting-two-plots-in-a-manipulate-whilst-keeping-the-plots-visible but I would like to plot two functions ...
92 views

### Is there any way to solve this convex-concave like optimization problem?

This is a bit of a non-standard way of asking a question perhaps but I couldnt even think of writing any code about the following optimization problem. I wonder if it could be at all solvable and if ...
24 views

### Accidentally used assigned a value to a string, cannot unassign it [duplicate]

I am using Mathematica for typesetting a homework assignment, and I accidentally assigned a value to a sort of complex variable (I typed = instead of ==). Here's what happens when I type it: Now I ...
79 views

### Running Mathematica code from a command line

I've read a number of questions and answers about this and wasn't able to accomplish it. So if this is really a duplicate please direct me to a previous question that can help. Ultimately I will ...
194 views

### FindPeaks does not smooth noise on peak?

I have experimental data which is noisy. My objective is to find the peaks. Here is a short part of the data. ...
296 views

### Replace x, but not x[a]

I want to replace all occurences of the symbol x with x[a], as long as it is not in the form ...
204 views

### How do I override options with my own defaults?

I'm calling a function f from within a function g and would like to pass any valid options for ...
58 views

### Strange behavior of the Evaluate function

I am solving a system of differential equation whose unknown are saved under variable vec={C00,C01,C10,C11} and the solutions are saved under variable ...
125 views

### using Module in NDSolve

I am trying to solve a set of two wave equations where solution of first equation defines initial conditions for the second one. And I would like to use Module to define those equations as a function ...
51 views

### Could It get more efficient way (fastest)?

Before Mathematica 10, If I need something like a Map, dictionary I used to make something like: ...
94 views

### How can I adjust ContourPlot in Mathematica?

I have problem because of the max point and min point, when I have too high or low data point, it just make it white. Here is example of data ...
105 views

### Non linear curve fit

I am trying to fit a non linear curve to my data which looks like following The code I am using is following. You can see I have six unknown variables ...
175 views

### How to shade a plotted region in specific direction?

I am using RegionPlot to plot a linear program maximize 30x1+25x2 with the constraints ...
95 views

### Apply functions to functions yields slow execution speed

I'm trying to write a function that parametrizes a curve c(t) by its arc length. Technicly I'm finished but if I plot the result for an example curve like ...
69 views

### Comparing heavy tailed and non-heavy tailed distribution using Mathematica

I have data from a heavy tailed distribution (see picture 1) and a non-heavy tailed distribution (see picture 2) and want to compare it using a histogram on log-scale. However the picture 3 does not ...
263 views

### Plotting jump function without vertical lines

Consider this list plot: ListPlot[{{0, 0}, {1, 2}, {3, 4}, {4, 2}, {6, 0}}] I want to draw a jump function in this list plot such that for each point I get a ...
112 views

### Position ticks labels at the other side of the axes [closed]

I use ticks label both for scale (0.8, .9, 1.0, ... ) and for marking specific values of interest (with custom text). I'd like the numbers to be above the axis and the text below it. I was able to ...
106 views

### BarChart rasterized in EMF export

My boss wants several Mathematica graphics as vector graphics in EMF format. All my plots are exported neatly, except for a BarChart which gets rasterized for no apparent reason: ...
97 views

### Symbolic matrice or vectors in Mathematica?

Suppose I would like to define an expression, containing and array or matrix of symbolic elements. Like this ...
59 views

### Is there a way to show some “weighted” residuals after LinearModelFit?

I am fitting some functions to some data and then I want to analyze the residuals of that fit. I'd like to see how those residuals compare to the values of the original data, hence my "weighted" in ...
64 views

### Computing a binomial series

I have a simple question: how to compute the following series? Sqrt[1000000]/4^1000000 NSum[Binomial[2*1000000 - 1, 1000000 - k]/((2 k - 1)^2 + Pi^2), {k, 1, ...