0
votes
0answers
3 views

N[Integrate] failing to return an accurate result from an interpolated integrand

I need to N[Integrate] a function Cos[alpha*x]*f(x) between x=0 and 30 at increasing alpha-values. Here f(x) is an interpolated function derived from a set of 120 equally-spaced points belonging to ...
1
vote
2answers
56 views

FindMinimum step size too small

I'm running a simulation of an electromagnetic system using Radia, an external code that is run from Mathematica. I want to use FindMinimum to determine some ...
0
votes
0answers
2 views

Two Stage Maximisation

I'm new to Mathematica and this forum. I want to evaluate a two stage maximisation problem. be, de, al1 etc are all parameters. I am interested in finding a1N. I hope this is in the appropriate ...
0
votes
0answers
9 views

How to count number of white voxels in an image

It seems to be a very simple problem. However, I don't have any clue how to count the number of white voxels in a binary 3D image. Re: Consider segm2 in the following link: ...
1
vote
2answers
16 views

Grid - change entire row background color based on values on one column?

Given a matrix defined through Grid, how can I specify the background color of entire rows based of the values of the cell in a specific column? For example, I have ...
1
vote
0answers
14 views

The permutation of given number sequence that has specific correlation with another

I am interested in the relationship between the Pearson correlation coefficients and the permutations of two random number sequences. An initial Mathematica study is as below: ...
1
vote
0answers
6 views

How to use Mathematica and Wolfram Alpha for predicting football results?

This is more of a fun question :D. At work we have been discussing and goofing around a lot on how to create algorithms in order to make predictions on the results of the upcoming UEFA EURO 2016 ...
0
votes
1answer
58 views

Add color bar in SphericalPlot3d in version 8

I want to add a color bar in my spherical plot. I have tried the BarLegend command in version 8 but it seems not working. Could anyone help me out a bit? I wrote ...
12
votes
1answer
283 views

How to use Get on a folder

In the documentation for Get it says: If the file found by <<name is a directory, the Wolfram Language will try to ...
4
votes
1answer
56 views

Argument attributes for pure functions

In his book, Leonid Shifrin says: One important limitation of the # - & notation for the pure functions is that it is ...
3
votes
1answer
104 views

BoxWhiskerChart with logarithmic axes 2

I actually already found my answer on the question, however it is not working. see BoxWhiskerChart with logarithmic axes I want to create a boxwiskerchart with a logaritmic axes. But when I try ...
6
votes
1answer
105 views

Wrong limit: Limit[(1 + (-1)^n/n)^n, n -> Infinity]=1 (Mathematica 10.4 and W-Alpha)

Since $(1-\frac{1}{n})^n\to 1/e$ and $(1+1/n)^n\to e$, the sequence $(1+\frac{(-1)^n}{n})^n$ has no limit as $n\to\infty$, but has limits for odds and even numbers. If $n$ were taken to be real, there ...
8
votes
1answer
68 views

Evaluation leak from Dynamic in Button's action

a = 1; Button["Print", a++] Button["Print", Dynamic[a++]] Button["Print", Dynamic[a++];] Button["Print", {Dynamic[a++]}] Dynamic @ a The second ...
0
votes
1answer
46 views

Metric Simplify & grouping

I'm changing a basis from one metric to another. When simplifying the result Mathematica doesn't seem to grasp all the possible simplification: ...
4
votes
1answer
36 views

How to make height of PlotLegend the same as height of plot which has a fixed horizontal width

This is a problem of Legends in density plot. As pointed out by this post. Generally we want to same height of legend bar and plot. The code for the basic case is ...
76
votes
1answer
3k views

Open-source IntelliJ IDEA plugin to support Mathematica development

Although we already had a question asking for development alternatives to Wolfram Workbench, I want to ask a more specific question: One of the most advanced IDE's especially for Java programming ...
-1
votes
0answers
31 views

How can I plot conditional expression with mathematica?

I want plot an expression that includes some integrals. The answer of these integrals are conditional expression.so this make plotting difficult. My code is in these way: ...
0
votes
1answer
25 views

Solving and Plotting Infinite sums over solutions to transcendental equation involving Bessel functions

I am trying to use Mathematica to plot the following equation $E(q,\Delta)$ vs $qa$, for set values of $ D \Delta/a^2$ and $\bar\rho a/D$. I have looked at other stackexchange posts which deal with ...
2
votes
2answers
97 views
6
votes
3answers
107 views

What function superseded SpaceForm?

In older versions of Mathematica you could use SpaceForm to leave a certain amount of spaces when writing to a file. For example, if we have the following data: ...
0
votes
1answer
54 views

Solving for five unknowns in a 3 x 3 matrix

I know that matrix.Transpose[matrix] = IdentityMatrix[3] matrix = {{0.8111, 0.4867, -0.3244}, {a,b,0}, {c,d,e}} I tried ...
1
vote
0answers
11 views

How do I use Mathematica to upload to Clyp?

Clyp is a service for hosting sound files that (as of now) doesn't require registration. I'm wondering if it's possible to write a function that'll upload a Sound object to Clyp, just like the ...
1
vote
1answer
45 views

Antialiasing points on a line?

I'm probably being stupid here, but I can't get my points to go in a smooth line: At this scale they should all equally cover the red line. I must be doing something wrong, anyhow I tried to use ...
48
votes
4answers
3k views
6
votes
1answer
51 views

ArrayPlot with a user-defined color function is misbehaving

I am using ArrayPlot to show some arrays with values from 0 to 1. I want 0 to be black and 1 to be white, so I am using: ...
0
votes
0answers
16 views

Evaluates fine but blank printing/pdf?

Hey guys I've got a document that evaluates fine but when I go to print preview/print/convert to pdf the result is a single blank page. Any thoughts as to how this occurs?
6
votes
1answer
51 views

Integrate and NIntegrate disagreeing over branch cut of Sqrt?

Bug introduced in v9.0.1 or earlier, and persisting through v10.4.1. In Mathematica 10.2 I'm trying to integrate this piecewise continuous function, but ...
0
votes
0answers
18 views

Stop front-end auto-adjust of window to output

I have made a simple "percent complete" output to track my For loop, where I incrementally print values and then delete the output right before printing the next ...
1
vote
2answers
34 views

Plotting points using adjacency matrix

Given an adjacency matrix on n vertices and a polygon on n vertices, how to add edges from adjacency matrix on the Polygon? eg: if polygon is {(0,0),(0,1),(1,0),(1,1)} and the adjacency matrix has 1 ...
3
votes
2answers
116 views

GridLines for a coordinate system with a particular basis

Suppose that I use the vectors (2,1) and (-1,1) as a basis for $R^2$. ...
7
votes
1answer
151 views

Is there an easy way to do set counting in Mathematica?

I'm using counts of elements in sets, along with logic. So, for instance, I'd like to determine if Count[$a \land \neg b$] = Count [$a$] - Count[$a \land b$] ...where ...
-1
votes
0answers
19 views

how to choose from M a point which will be the center of the circle, and in that circle must be a minimum of points [on hold]

C programming on a plane are given a set of points M. Choose from M a point which will be the center of the circle, and in that circle must be a minimum of points
0
votes
0answers
17 views
0
votes
0answers
67 views

Error - Differential equation //2

This is a follow-up question, since it relates to the solution of a modified version of the original differential equation discussed here: Differential equation: NDSolve::berr I receive an error ...
5
votes
2answers
115 views

How-to ensure consistent legend when using PieChart?

Description: I would like to enforce consistent legend and style throughout dynamic PieChart evaluation. Problem: Based on current implementation, the color ...
0
votes
1answer
23 views

Troubles with showing axis after saving in EPS

I'm trying to save a picture in EPS and then to put it into my LaTeX document. But when I put it the left axis is not shown. How do I fix it? (look at the screens) If I save the image in JPG, ...
2
votes
0answers
38 views

How to understand the LocalClusteringCoefficient use in directed graph? [duplicate]

When this function use in undirected graphs,its action is normally and can be explained by this formula $$CC_v=\frac{n}{C_{k}^{2}}=\frac{2n}{k(k-1)}$$ n is adjacent nodes of $v$'s number of ...
-3
votes
1answer
62 views

Animate Spring Pendelum

Is there ANYBODY who can solve this exercise??? Visualize the oscillation of a spring pendulum . Write to a function ( modules ) "spring mass" [ eg , nzigzag ] , which visualizes the spring ( Line ) ...
4
votes
3answers
117 views

Extracting *firstly roots* from some lists to plot their pairs values

I have two different lists as list1 and list2. Their ListPlot3D of them are: and As shown in these plots, there are some points of which ...
3
votes
1answer
65 views

Visibility Graph of Polygon

Could anyone provide a function that takes a polygon as input and outputs its visibility graph ? Visibility Graph If not, is there a function that checks whether a line segment lies inside a polygon? ...
2
votes
0answers
192 views

DSolve versus DSolveValue [closed]

I've just discovered the new command DSolveValue in Mathematica 10. Is this new command now the preferred instead of DSolve? Is ...
17
votes
4answers
320 views
0
votes
0answers
23 views

Stopping NDSolve when encountering stiffness

I am solving a differential equation for different initial conditions using ParametricNDSolveValue. I need to look at the value of the solution at some later point, ...
0
votes
1answer
34 views

Replace argument of delayed function before it evaluates [duplicate]

How should I use replace so that f[x_] := x^2 Replace[f[3], 3 -> 1] OUT = 9 evaluates to 1, instead of 9? This way, the replacement of the argument is done ...
0
votes
0answers
27 views

Extracting the data of each frame from an AVI file

What's the most straightforward way to "Import" the data of an AVI video? For instance, if I record a 30 frame per second video, then after 10 seconds I would have 300 frames. How can I import the ...
0
votes
3answers
121 views

Do loop with If condition

I have the following formulas: 1- A cross section: sigma[beta_,alpha_,Y4_] := c^2/(256*Pi) * (1/2) ( Ytt[beta,alpha,Y4]/ m ) * Abs[A]^2 Where c is a strong ...
-1
votes
1answer
99 views

Solve an equation in several variables

I'm new to Mathematica, so my question may be quite trivial, but I need help. Let $F(x,y,a,b,c,d):\mathbb{R}^6\rightarrow \mathbb{R}$ be a function in 6 variables. I need to find conditions for $x$ ...

15 30 50 per page