All Questions

2
votes
2answers
118 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 ...
1
vote
1answer
67 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 ...
15
votes
1answer
352 views

Why is TextString[-0.5] a positive number?

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 measurement, the sign ...
0
votes
0answers
45 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: ...
0
votes
1answer
61 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: ...
0
votes
1answer
43 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$). ...
5
votes
1answer
146 views

Forcing NonLinearModelFit through a point

Like the title says, is there a way to make an NLM fit pass through a specific point.
2
votes
1answer
35 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 ...
0
votes
0answers
24 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 ...
2
votes
1answer
29 views

Linear function on strings using UpValues

I have two functions Sup and Sdown that take a string of letters with allowed characters ...
3
votes
1answer
70 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 ...
0
votes
2answers
39 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 ...
8
votes
1answer
126 views
+50

How to use C language functions in Mathematica?

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: ...
6
votes
4answers
195 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: ...
0
votes
0answers
52 views

Solve unable to interpret set of equations [closed]

I have Solve[(7*h^2+10*h+7)*(a*h^2+b*h+c)==(33*h^2+8*h-14),{a,b,c}] for which Mathematica returns partial answer which is actually not useable. Even by hand I ...
0
votes
0answers
33 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, ...
2
votes
0answers
54 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 ...
0
votes
1answer
59 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 ...
0
votes
0answers
27 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 ...
0
votes
0answers
35 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 ...
1
vote
2answers
44 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 ...
1
vote
2answers
41 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 ...
0
votes
1answer
62 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 ...
-1
votes
1answer
72 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 ...
1
vote
0answers
82 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 ...
-1
votes
0answers
42 views

Earth revolving around the sun Issues

I created the necessary code for making the earth revolve around the sun in an interactive from but for some reason it is not working now. Can some help me to fix this problem? also is it possible for ...
0
votes
0answers
23 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 ...
0
votes
0answers
29 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 ...
4
votes
2answers
100 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. ...
4
votes
2answers
266 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 ...
8
votes
1answer
114 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 ...
1
vote
2answers
48 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 ...
1
vote
1answer
70 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 ...
0
votes
0answers
38 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: ...
2
votes
1answer
69 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 ...
0
votes
0answers
75 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 ...
3
votes
3answers
109 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 ...
1
vote
1answer
74 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 ...
0
votes
0answers
35 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 ...
5
votes
3answers
157 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 ...
1
vote
0answers
46 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 ...
3
votes
2answers
63 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: ...
0
votes
2answers
73 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 ...
2
votes
1answer
51 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 ...
0
votes
1answer
43 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, ...
4
votes
1answer
50 views

Create group from multiplication table

Suppose I have a multiplication table for a group. For example, m = {{1, 2, 3, 4}, {2, 3, 4, 1}, {3, 4, 1, 2}, {4, 1, 2, 3}} I would like to create a group from ...
0
votes
0answers
22 views

Why does Mathematica play midi that bad?

When I import a midi file,then play it in Mathematica 10,occasionally the sound is very disappointing! There are no problem when I play it in KMPplayer... The sound's volumn is sometimes very small ...
5
votes
0answers
72 views

A new tag for MMA or list of published articles which used Mathematica [migrated]

I can imagine that many of the users of this website are PhD students in various research fields. I would like to have a list of published articles which used MMA to get their results or used MMA to ...
0
votes
2answers
90 views

How to draw the following plot in mathematica? [duplicate]

I have a function (x^2-9)^2. I can plot it with x-range{-3,3} so that three extremum s can appear in the plot. I add another axis y ranging{0,10}. I want to plot the previous function (x^2-9)^2 at ...
4
votes
3answers
175 views

Changing the atom color for plotting xyz-files

Mathematica takes the standard color code for atoms when plotting an xyz file, but I want to customize the color for the specific atoms. I really become desperate as I did not get it so far. ...

15 30 50 per page