• All Sites
  • All Meta Sites

0 answers

How Do I Use Indexed with NIntegrate in Mathematica?

I'm having trouble using Indexed[] with NIntegrate[] in Mathematica. I want to evaluate something like NIntegrate[Indexed[t, 1], {Indexed[t, 1], 0, 1}] with a lot more variables (indices). ...

0 answers

wrong value from atan2 function in excel

I am trying to calculate the angle between two latitudes and longitudes but I am getting wrong result of atan2(X,Y) when used on Excel. β = atan2(X,Y) = atan2(0.05967668696, -0.00681261948) It ...

1 answer

Why MATLAB is slow in this case compared to Mathematica

I have this code in Mathematica: n = 5; k1[x_, t_] := t^2; k[m_, n_] := (1/(m!*n!)*D[k1[x, t], {t, n}, {x, m}]) /. {x -> 0, t -> 0}; kmn = Table[k[i, j], {i, 0, n}, {j, 0, n}]; kmn // ...

1 answer

Equivalent MATLAB code from the Mathematica code

I have the following in Mathematica n=5; Xt = Table[t^i, {i, 0, n}] The Mathematica outputs the following: {1, t, t^2, t^3, t^4, t^5} I want the equivalent MATLAB code. Please note the symbolic ...

1 answers | Aug 1 at 20:26 by NoMan on Stack Overflow
2 answers

Mathematica: adding a list of lists elementwise

I have a list of lists of numbers. I add them into one list by adding all of the first elements together, all of the second elements together, etc. For example, if my list were { {1,2,3}, {1,2,3}, ...

1 answer

plot not showing legend when used in Miktex

A have density plot in Mathematica as ShowLegend[ DensityPlot[Sin[x y], {x, 0, \[Pi]}, {y, 0, \[Pi]}, Mesh -> False, PlotPoints -> 30], {ColorData["LakeColors"][1 - #1] &, 10, " 1", ...

1 answers | Aug 1 at 8:21 by zenith on TeX - LaTeX
0 answers

How to work with DESLib in Wolfram SystemModeler 4.1

As a newbie in System Modeler 4.1 I am interested in queuing systems and found the DESLib, especially the ArenaLib. Unfortunately DESLib 1.7 seems not to work within this environment (version ...

1 answer

Trouble in proving that $\|x\|_p = \max|x_j|$

We define p-norm in this way: $\|x\|_p = \{\sum ^N_j=_1|x_j|^p\}^ {1\over p}$ We know that It change to $\|x\|_p = \max|x_j| $ when $ p \to \infty $ How can I prove this ?

2 answers

Colour ListPointPlot3D points by index in Mathematica

Is it possible to colour points based on list index value? E.g. suppose I have a set of coordinates l1 := {{20.729858261394142, -11.014787072072988, 20.910738872021085}, {26.754953134772755, ...

2 answers | Jul 29 at 17:34 by pbs on Stack Overflow
1 answer

Range gives me something else in place of 0, why?

I wanted to put some FrameTicks to a Plot with xticks = Range[-2, 2, 0.2] and got {-2., -1.8, -1.6, -1.4, -1.2, -1., -0.8, -0.6, -0.4, -0.2, 1.11022*10^-16, 0.2, 0.4, 0.6, 0.8, 1., 1.2, 1.4, 1.6, ...

2 answers

Mathematica Manipulate[] slider initial position

the initial position of a slider when using the Manipulate[] command is always the left side. Is there an option to set a different position at which the slider is positioned when the notebook is ...

2 answers | Jul 28 at 17:41 by Eli Duenisch on Stack Overflow
2 answers

Paste Mathematica code so that's it's broken into separate input cells

I often copy Mathematica code from websites (such as SO) to a notebook. The code usually gets pasted as a single input cell. I'm looking for a simple way to paste it as several input cells for ...

0 answers

fixed point iteration to find out second order non-linear diff equations

I am working on some model analysis, getting two diff equations and after I convert them into matrix form, I have equations looks like $$ [A][X]=C\times\big(\exp([B][X])-1\big), $$ where $C$ is a ...

1 answer

How to change the contours and legend in mathematica contour plot?

The ContourPlot function in Mathematica automatically gets you a legend and contours with colors on the plot which are uniformly distributed ( for example, blue color from 0.1 to 0.2 function values, ...

1 answers | Jul 27 at 21:10 by Maria on Stack Overflow
1 answer

Mathematica: ListPlot with only special points lableld & PointSize

I tried now a couple of hours to get a 2D Listplot of the following kind. A ListPlot data of points should have a "3rd coordinate" like time (years) running with them. This works so far, but is just ...

1 answers | Jul 27 at 14:07 by edwin bubble on Stack Overflow
0 answers

Minimizing NExpectation for a custom distribution in Mathematica

This relates to an earlier question from back in June: Calculating expectation for a custom distribution in Mathematica I have a custom mixed distribution defined using a second custom distribution ...

1 answer

pair multiple y-value lists with a single x-value list

I've got multiple lists, which each correspond to the chemical concentration of some species over 49 time-steps of some simulated chemical reaction. I also have a list of system temperature values at ...

1 answers | Jul 26 at 0:57 by Tucker on Stack Overflow
2 answers

Trying to install Wolfram Mathematica on Jessie

I recently upgraded from wheezy to jessie. During the installation Mathematica was removed. Trying to reinstall it via sudo apt-get install wolfram-engine produces the error The following packages ...

1 answer

How to make labels for a 2-D figure with Mathematica

Goal: obtain the figure format like this one, Figure C in Fig.5.enter link description here Assume: we draw Sin[x] with the range from 0 to 2Pi. Plot[Sin[2 x], {x, 0, 2 Pi}, AxesLabel -> ...

1 answers | Jul 23 at 16:02 by ycagelulu on Stack Overflow
0 answers

Is this system of inequalities (and equality) tractable?

I have some real parameters here. The $\mu_i$ - for $i=1,2,3,4,5$ - are 'convex coefficents' in that $\mu_i\geq 0$ and $\sum_{i}\mu_i=1$. The $x$ and $z$ are such that $x^2+z^2\leq 1$. The ...

1 answer

Frequency of a wavelet filter

Assume that I have decomposed a data set using Symlet Wavelet with six levels. How can I estimate the approximate frequency interval of each level? That would be great if you consider your answer in ...

1 answers | Jul 21 at 8:43 by K-1 on Cross Validated
0 answers

Solving a differential equation in Mathematica

I have a syntax problem solving a differential equation in Mathematica (10th version). The input for the equation I need to solve is as follows: solv = DSolve[{ a*u''[y] - b*u[y] == d, u'[0] == 0, ...

2 answers

How do I find many maximums in a list in Mathematica

I have some data that i'm trying to analyze and it has many cycles where it returns to a maximum value. I want to be able to select and pull out all of those maximum values and make a trend line to ...

1 answer

In Mathematica/Wolfram language, is there any way to check that an expression evaluated?

If I have a function: Foo[x_] := If[x==2, Print@"Two", Print@"No"] Then if I write the following: Foo[oops]; Foo[5] Where oops is a misspelled name for a global variable, the result is that the ...

1 answers | Jul 20 at 14:43 by Mark Green on Stack Overflow
3 answers

Avoid & Count non-numerical values computing basic statistics in Mathematica

Please consider: dalist={{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, {2.88`, 2.04`, 4.64`,0.56`, 4.92`, 2.06`, 3.46`, 2.68`, 2.72`,0.820}, {"Laura1", "Laura1", "Laura1", "Laura1", "Laura1", ...

0 answers

Using DSolve for a real part of a differential equation (Mathematica)

I try to solve a differential equation (using DSolve) of the form: Sys = {(Re[a T'[x] + b T[x]] == 0), T[1] == 3}; Sol = DSolve[Sys, T[x], x]; Plot[T[x]/.Sol, {x, 0, 1} Where 'a' and 'b' are ...

1 answer

extracting text from specific tags in html using Mathematica

For a page with html like this structure: <tr class=""> <td class="number">1</td> <td class="name"><a href="..." >Jack ...

0 answers

Convergence of a hypergeometric function

The hypergeometric function, ${}_{2}F_1(a,b,c;z)$ can be written in terms of a power series in $z$ as follows, $${}_{2}F_1(a,b,c;z) = \sum_{n=0}^{\infty} \frac{(a)_n (b)_n}{(c)_n} ...

2 answers

Making customized InputForm and ShortInputForm

I often wish to see the internal representation of Mathematica's graphical objects not in the FullForm but in much more readable InputForm having the ability to select parts of the code by ...

5 answers

How to insert a column into a matrix, the correct Mathematica way

I think Mathematica is biased towards rows not columns. Given a matrix, to insert a row seems to be easy, just use Insert[] (a = {{1, 2, 3}, {4, 0, 8}, {7 , 8, 0}}) // MatrixForm 1 2 3 4 0 ...

5 answers | Jul 17 at 14:29 by Nasser on Stack Overflow
15 30 50 per page
1 2 3