0
votes
0answers
3 views

Parallelization and memoization?

I have an expensive function on discrete values, f[n_] := f[n] = n^2 (* Expensive calculation *) Since f[n] is an expensive ...
0
votes
0answers
6 views

Parsing RLink RObject for summary.aovlist

There's some slightly similar requests out there (e.g. Getting R textual output into Mathematica ) but I'm wondering if anyone has put together a more general purpose solution to parsing ...
0
votes
1answer
31 views

Array element problem in optimization

I have the following piece of code in Mathematica: ...
2
votes
2answers
28 views

Cumulative histogram with log-log scale

How to do a cumulative histogram on Mathematica on a log-log scale? This question is pretty straightforward, but a search didn't help me at all. Keep in mind that all I have is a list of n numbers ...
1
vote
0answers
14 views

Is the “Table” function limited in number of elements it can compute?

i tried using "Table" to compute a list of 400,000 strings but the output takes forever to get. I have tried with smaller size of about 100 and i get results as fast as possible. But when the number ...
0
votes
1answer
14 views

Using Loop to create mutiple EventHandlers

I have a problem, that is I want to use loop to create multiple EventHandlers, but my code shows nothing. What can I do? ...
0
votes
0answers
17 views

Plot function producing no graph [on hold]

I am trying to plot this probability distribution but nothing is showing up on the axis: ...
1
vote
2answers
30 views

Integrate full derivative

I want mathematica to do Integrate[D[f[x],x], {x,0,t}] and achieve the answer f[t]-f[0]. But Mathematica doesn't intergrate ...
2
votes
1answer
181 views

How to make a function from body with variable number of arguments?

Suppose I have an UNKNOWN function, which generates formulas with given number of x[i]. ...
1
vote
0answers
24 views

1D FDTD lens simulation

Ok finally last question on the topic. I have made a working 1D FDTD propagator and now I would like to make it work with lens. The code that does that is simple enough: ...
2
votes
2answers
32 views

Unexpected behavior using FromDigits to reconstruct polynomial

I have an issue with the reconstruction of a polynomial using FromDigits. The documentation of the function CoefficientList says: Fold the operation for multivariate polynomials: ...
0
votes
0answers
12 views
0
votes
0answers
22 views

cteq5 mathematica

Trying to compute the total cross-section for gg -> ttbar via cteq5 with Mathematica. So I know to use set 3, parton 0, but for q, do I use 7TeV for both pdf's, which would correspond to a total cms ...
6
votes
2answers
85 views

Where put or edit an init.m to add menu commands?

In this question, answers were given that worked to add items to some menu commands, e.g., additional colors on the Format > Background Color menu, or Help menu items. I have code for such in an ...
1
vote
1answer
125 views

graphics grid legend

I'm working with mathematica 9.0 and I want to make a graphic grid containing 3 different plots. My problem is that when I use plotlegend to label the plots the legend does not show up or the left ...
0
votes
1answer
42 views

How to extract contour functions from contour plot [duplicate]

I would like to extract the functions that describe the contours of a contour plot. For example, if I have the function: ContourPlot[f[x,y], {x, 0, 4 Pi}, {y, 0, 4 Pi}, Contours -> 4] I would like ...
1
vote
1answer
55 views

Why I'm getting 9999s after decimal and how do I fix it? [duplicate]

Check the screen shot. Why I'm getting 999s? It is suppose to be 127,977.52 Thanks in advance, Quick solution: AccountingForm[58156.48 + 69821.04, 16] And thanks to Yves Klett
0
votes
1answer
40 views

AutoGeneratedPackage Formatting

If you do Ctrl+Shift+o you open an option inspector. And then you can enable ...
2
votes
0answers
16 views

Multidimensional integral to compute the end-to-end distribution of a FENE ideal chain

How do I evaluate the quantity $\left.\frac{d}{d\alpha} \ln Z_\alpha\right|_{\alpha=0}$ for N=30 in Mathematica, when $$ Z_\alpha = V\int e^{-\beta [H(\vec r_1)+H(\vec r_2-\vec r_1)+...+H(\vec ...
0
votes
0answers
24 views

Direction of change plot in 2 images taken from video

I have two successive images from a video and I would like to plot the largest direction of change from the first image to the second image as a vector plot. For example, if image 1 was ...
2
votes
2answers
115 views

Maximize simple Polynom: Wrong answer

I want to maximize $poly$ under the constraints $g1,g2,g3=0$ ...
2
votes
1answer
239 views

Map of all graphs obtainable with GraphData?

I've been trying to put together an answer to another question, but I am stuck, so I decided to post this question instead. Mathematica contains (among its curated data) information on definition, ...
3
votes
1answer
45 views

List interpolation

Hi mathematica people! So i am looking for the best way to interpolate a function given a list of its values. I have an iterative algorithm which needs high precision otherwise the numerical noise is ...
1
vote
1answer
111 views

Writing a conventional free-standing application in Mathematica (CDF)

I intend to write a small program that can be exported to CDF and consist of two main parts: A. The construction of a layered structure consisting of different materials. B. Superimposing ...
-1
votes
0answers
17 views

What are the steps using boolean algebra for creating one equation from other one? [on hold]

I have a special case where I have two equations which I solved in my better and quicker way but I need to use Boolean algebra for that ... Using the laws of Boolean algebra, I have to prove that ...
0
votes
0answers
17 views

NDSolve solution does not satisfy boundary conditions

I am trying to solve a 1st order non-linear ODE ...
1
vote
0answers
41 views

Lens profile in a grid

So I have a FDTD code which works and its all good the propagator of the code it self is: ...
6
votes
1answer
68 views

Installing LinkSnooper on Windows

I tried to install LinkSnooper on my Windows 7 computer, as described in the documentation and here. According to the answer of @Todd Gayley, I entered the following string in the field MLOpen: ...
1
vote
1answer
52 views

How to define the symbolic expression $V = \frac{1}{N} \sum_{i=1}^N ( y_i(g) - z_i)^2$ in Mathematica?

I want to define this expression symbolically: $V = \frac{1}{N} \sum_{i=1}^N ( y_i(g) - z_i)^2$ in which $\{y_i(g)\}_{i=1}^N$ is to be understood as a symbolic sequence that depends on a vector $g$. ...
0
votes
1answer
53 views

Block matrix and calculate it's inverse

How to define the following block matrix $$ A=\begin{bmatrix} H-G_1 & -G_1 & \ldots & -G_1 \\ -G_2 & H-G_2 & \ldots & -G_2 \\ \vdots & \ldots & \vdots & \vdots ...
4
votes
2answers
160 views

Filling an area with cushion effect

This code: (by @kguler, can be found here, as an answer to "How to shade a plotted region in specific direction?") ...
2
votes
1answer
65 views

plot the numerical value of the average on a BoxWhiskerChart

Im using BoxWhiskerChart to get a boxplot of a matrix of two columns. I need to read the value of the sample average directly from the plot and not from the axes. ...
1
vote
0answers
95 views

Volterra integral equation

I have to find an approximate numerical solution for the equation $$ F(x) - \lambda \int\limits_1^{x} \text{d}s \;s^2 F(s) Z(x-s) = G(x) $$ $$Z(s) = (\psi''(1-2\ h\ i\ s)- 0.5 \psi''(1-2\ h\ i\ s))$$ ...
0
votes
1answer
55 views

Diffentiating a function f with respect to x [duplicate]

I have a tabe y={10,20,30,40...} and x={62,63,64,65...} y is a function f and this function needs to be interpolated. How do I defferentiate the function f with respect to x?
18
votes
3answers
811 views

Is it possible to draw really thin lines in Mathematica?

I want to have in Mathematica the same result I have in Python: I have this nice effect simply by using very thin lines. But it seems in Mathematica thickness property has some limit and i just got ...
4
votes
1answer
49 views

How to print $\odot$ without it being cropped? (\[CircleDot] symbol)

Preamble: In some applications (astronomy, cosmology, etc), it is useful to measure things in solar quantities, say distances in $R_\odot$ or masses in $M_\odot$, and so on. Now and then I see ...
2
votes
1answer
43 views

Displaying a list in form of an upside down pyramid graphic

I was wondering how to display a list like this: list={{0,1,1,0},{1,0,1},{1,1},{0}} in form of an upside down pyramid, that is the first element of the list is ...
1
vote
0answers
60 views

Plotting phase portrait from NDSolve (i.e., must plot x'[x], where $x=x(t)$)

I'm doing a double pendulum system and I wish to plot the phase portraits for each angle. I've successfully used NDSolve to solve for each of the angles. Let's just ...
0
votes
0answers
36 views

Question about treillis structures

I have difficulties finding a command to plot multiple segments connected in nodes in Mathematica. Ultimately, my goal is to modelise something like this by entering nodes coordinates. Also, the ...
2
votes
0answers
35 views
0
votes
0answers
16 views

prime number greater than 100 [migrated]

I 'm confused about prime number. It is possible that we can find a not prime number that is greater than 100 and not divided by {2,3,5,7,9}. because someone said to me that we can check if a ...
0
votes
1answer
48 views

sluggish 3D graphics

After I plot two concentric cylinder, I see that rotating the 3d object is not smooth and it's slow. ...
0
votes
0answers
41 views

How to solve this Partial differential equation?

I want to solve a Partial differential equation: ...
4
votes
1answer
98 views

Can anyone help me to get the solution of this first order ODE?

$\ y'(x)=-\sqrt(y(x)^3)$ with initial condition $\ y(0)=-2$. In fact, this is an example here in page 3-4 ...
0
votes
1answer
31 views

dropOperator done on Matrix of a Matrix - How is this done?

I have implemented this dropOperator from dropOperator from stackexchange and works fine on a single Matrix. But now I have a Matrix of a Matrix and want to drop some rows or columns (in the pic below ...
5
votes
1answer
171 views
25
votes
3answers
2k views

Understanding differences between Maple and Mathematica in examples picked by Maplesoft

I am reading the document "How Maple Compares to Mathematica" found at http://www.maplesoft.com/products/maple/compare/HowMapleComparestoMathematica.pdf. On page 15 there is an example where ...
0
votes
1answer
28 views

probability going outside 1 (due to optimization violation of constraint)

I am working on an optimization, which involves the following density: ...
4
votes
2answers
53 views

Count the number of element repeats at various distances

I have a function of x: f[x_] := Abs[Extract[list, x + n] - Extract[list, x]] I then apply this: ...
1
vote
1answer
74 views

ReadList can't read “.csv” data with correct line number?

Well, the problem was solved today. Since "testAll.csv" is generated by Java/Eclipse, and I noticed that the LineSeperator is ...

15 30 50 per page