0
votes
0answers
2 views

How to solve the follwoing GR PDE?

Someone could help me for solving the following GR PDE? (this code do not work yet) ...
0
votes
1answer
9 views

Selection Limit on CheckboxBar

Is there an easy way to limit the number of selections in a CheckboxBar such that at any time you can choose only two options. I tried to use the "Enabled" option, but that grays out the whole ...
3
votes
1answer
106 views

Efficiently generating tuples with Outer

I'm trying to efficiently generate tuples of lists of objects that satisfy a given criterion. The similar questions that I have found on this website end up finding a specific workaround for the given ...
4
votes
1answer
134 views

Graphics3D/Plot3D rendering issue

I have an issue in Mathematica with the rendering of 3D graphics. Two sides (right and bottom) of some sort of bounding box are present, and, in the instance of ...
2
votes
2answers
167 views

A Query using Select and Quiet fails but Select by itself works

This is closely related to the question here, the key difference is that here data is structured as nested Association rather than a flat list: ...
7
votes
1answer
104 views

Causes “libGL error: failed to load driver: swrast” an Huge Overhead in Parallel under Version 10.3?

Under Linux (SUSE Linux Enterprise 11) for Mathematica Version 10.2/10.3 I observe the following error in parallel ...
-1
votes
1answer
35 views

Easy way to create an histogram with given heights?

What is the easiest way to create an histogram with the heights of each bin already determined? I read all the support page on histograms but I don't understand if there is a way to create an ...
0
votes
0answers
37 views

How to Minimize an NIntegral

My problem is to minimize in Mathematica a numerical integral. The command FindMinimum[With[{R=2.5},NIntegrate[(R*r1*a)*Sin[r1*a],{r1,1,R}]],a] does calculate ...
3
votes
3answers
65 views

sum involving binomial coefficient

To evaluate $ \sum_{\substack{\text{even }k\\ 2\leq k\leq m-2}} \binom{m-2}{k-1}(k-1) $, where $m$ is an even integer. Running the following in Mathematica 10.3.0 (October 9, 2015) ...
2
votes
1answer
158 views

Strange WhenEvent Behavior

Bug introduced in 10.3 or earlier and persisting through 10.3.1 or later Given: ...
2
votes
0answers
42 views

NDeigensystem returns error due to mesh discretization when calculating vibrations of a cantilever

There was an transcription error in the code I provided in a previous post: NDeigensystem returns complex non-hermitian error for the calculation of vibrations of a cantilever This resulted in it ...
4
votes
0answers
460 views

Masked Image Registration/Alignment/Correlation [on hold]

I'm trying to register (align) two circular grayscale images using a boolean mask to prevent them simply being aligned on the fixed circular border. There are also small fixed circular regions in the ...
2
votes
1answer
35 views

Is it possible to recover the efficiency of ListConvolve when generalizing the convolution?

I've noticed that, while ListConvolve is very fast, it becomes much slower when you use anything but the standard Times,Plus as ...
3
votes
1answer
35 views

How to access a web API with HTTP POST and JSON

I want to get data using HTTPS from POST https://developers.betfair.com/api.betfair.com/exchange/betting/json-rpc/v1 HTTP/1.1 using JSON ...
4
votes
2answers
139 views

How to draw a moving point with time?

I am new to Mathematica. Try to draw a point moving with time. Like at t=0, a point is at p1(coordinates are random numbers); at t=1, this point is at p2. And there is always ONE point on the graph. ...
1
vote
1answer
38 views

Combine three 2D graphics with animation

I am trying to simulate three kind of points (different color) entering a 2D rectangular region from different sides with animation. Below is my code: ...
3
votes
1answer
104 views

I want to compute the derivative of Black and Scholes option

Good evening to everybody, my question is about computing the derivative of a Black and Scholes option and to draw it. My code is ...
1
vote
1answer
79 views

NDSolve memory usage

I am trying to solve numerically a system of linear ODEs with some quickly varying driving functions. The basic command is: ...
1
vote
1answer
38 views

How to solve two ODE differential equations, numerically, with four dependent boundary condition

I have two ODE differential equations(DE) and four dependent B.C. $$y_1''(x)=-\frac{1}{2} \left(x-y_1(x)\right)$$ $$y_2''(y)=-\frac{1}{4} \left(y-y_2(y)-5\right)$$ $$y_1(0)=y_2(1)$$ $$y_1(1)=y_2(0)$$ ...
2
votes
1answer
79 views

Automatic text-wrapping in labels in `TimelinePlot`

Part-related to this question and part-related to this one, I would like to make use of the new features of TimelinePlot in 10.3, but would like to incorporate some ...
1
vote
1answer
61 views

Update: Calculate Tensor products and traces with Mathematica

My goal is to algebraically simplify expressions involving tensor products and taking the trace. That is, I would like to compute $\operatorname{Tr}\left( \prod_i(id+a_i \otimes b_i) \right)$, using ...
1
vote
1answer
70 views

Tooltip in Prolog and Epilog

I have a question concerning Tooltip. I got a ParametricPlot and included two pictures and a dynamic point. I try to use Tooltip for each of those 2 Objects. But it doesn't work. I am not quite sure, ...
3
votes
1answer
156 views

DiscretizeRegion on Raspberry Pi 2

Running DiscretizeRegion@Cuboid[] from the documentation under Raspbian on the Raspberry Pi 2, Mathematica version 10.0.0.0, gives the following response: ...
0
votes
1answer
32 views

Factor a polynomial Root into Roots of smallest possible degree

Suppose I have a polynomial Root representing an algebraic number. I want to represent it (if possible) as a product of several polynomial ...
1
vote
1answer
52 views

Fitting bivariate data using FindFit

I am trying to fit the following bivariate data set using the FindFit function: ...
1
vote
1answer
23 views

Trying to get simple excel data to be imported as a social network directed graph

My data has two columns that we'll call A and B. The columns proceed as such A B A1 B1 A2 B2 A3 B3 .... I'm trying to make this into a directed graph where A1 has an outgoing edge to B1 and ...
2
votes
0answers
16 views

Is it possible to change the fontsize and simultaneously TabSpacing when printing a notebook in the working enviroment

It is a dilemma: In order to easily edit code on the screen, I have to set Magnification to 1.25 and also to set fontsize for Input (using Courier New bold for Input) to 12 pt. Of course, in this ...
40
votes
5answers
4k views

Are there any cases when For[] loops are reasonable?

To my mind the only reason for the existence of For[] loops in Mathematica is to allow new users with some experience in procedural programming languages to write ...
1
vote
3answers
60 views

How to make a list (of data points) whose name is the same as the file name from which the data is imported [duplicate]

I have a set of files, e.g. file1.dat, file2.dat,... containing data (list of data points to plot, manipulate...) I want to do the following ...
2
votes
0answers
35 views

How can I convert some data in TableForm to a list form like as {{0,1}, {1,2},{…,…},…,{m,n}}? [on hold]

How can I convert some data in TableForm to a list form like as So, I have some data there I take from laboratory, but the data has a TableForm 0.0 0.2174 1e-06 0.2178 2e-06 0.2172 3e-06 ...
2
votes
0answers
32 views

Identity Matrix in symbolic Tensor Product

I am trying to simplify symbolic tensor products. E.g. ...
0
votes
0answers
42 views

Mathematica 10.3 with repeating block

I've written a template notebook that include repeating blocks with Mathematica 10.2.0.0. Everything work well, but after updating Mathematica to the last version (10.3.1.0) I get an error when I try ...
3
votes
1answer
367 views

How can I invoke the solution of NDSolve to determine a parameter in my equation just inside NDSlove?

I am trying to solve a differential equation by NDSlove for $h(x,t)$. It reads $$h_t=h_{xx}-V_h-\lambda(t)$$ where $V_h$ is a given function of $h(x,t)$ denoted by ...
4
votes
1answer
70 views
5
votes
2answers
163 views

Boundary identification

I want to get boundaries of grains from a microphotograph. I have tried using different methods but because of the texture of background I am not able to get smooth boundaries. Codes that I've ...
1
vote
1answer
67 views

Double arguments and place of the underscore

Could someone explain me of this bit of code below is correct: Is it possible to define a function with a second bracket, see below, i.e. f[x_][y_]? And what does ...
7
votes
6answers
421 views

Brackets around each item in matrix

I have a matrix where every item in the matrix has its own brackets that I do not want. How can I remove the brackets around each item?
0
votes
2answers
38 views

Random bipartite graphs?

RandomGraph[{n,m}] generates a random graph with $n$ vertices and $m$ edges. I want to generate a random bipartite graph, like ...
2
votes
0answers
40 views

Pattern Matching and overloading NonCommutativeMultiply

My goal right now is to implement some rules like linearity etc for noncommuting operators (arbitrary matrices etc). This is partly an exercise for me to understand MMA better so giving me a package ...
-4
votes
0answers
37 views

Conditionals within For Loops [on hold]

The following construct: For[i = 1, i <= Length[a], i++, a[[i]]? If[b[[i]] == a[[i]], p1++, p2++]: If[b[[i]] == a[[i]], p3++, p4++]]; yields the ...
2
votes
1answer
56 views

Problems with QueueingNetworkProcess [on hold]

I have a two stage queueing network and want to vary the number of servers at the second node. The input data and the Manipulate command is below: ...
0
votes
0answers
52 views

writing mathematica code for an exponential decay with certain parameters

I'm completely new to Mathematica, so I'm having trouble writing code for it : The following is what I need to do: Compute $exp(-x)$ in the range $x=\{0,100\}$ using sum of Taylor Series and break ...
3
votes
1answer
42 views

Image3D does not give the distinctive blurry look, version 10 Linux

The help file for Image3D shows two examples, But when I try to execute this code on my system ("10.3.1 for Linux x86 (64-bit) (December 8, 2015)") I get the ...
16
votes
2answers
463 views

Cluster a signal into areas of equal intensity

Introduction I have a greyscale photograph that I want to partition into areas of equal intensity. This means, that the integral over each partition should be (roughly) equal. There is no unique ...
3
votes
3answers
325 views

Postfix with two arguments

This must be duplicate but can't find any related post. I'm want to pas it two argument in postfix like f[a_,b_]:=a+b; 1,2//f ...
7
votes
1answer
230 views

How to modify tick's range in Image3D

Suppose we have an array of color data ...
0
votes
0answers
38 views

Find the height(h) of a Circular segment based on Radius and Length(c) [on hold]

I have found the formula for calculating the R of a circle, based on a circular segment, which is; R=h/2+c^2/(8h) Where, R is ...
0
votes
0answers
42 views

Suddenly all outputs begins with a newline… What to do?

I am almost sure nobody has yet asked this question, which is strange, because it concerns a tiny but annoying glitch. Now and then, out of the blue, all output cells are starting with a newline. I ...
3
votes
3answers
183 views

Handling options in my function

It seems this should be easy, by I just can not figure out how. I want to have a function that I can pass a list of options to, or use a default. I have found two very similar questions, but I can't ...
1
vote
1answer
44 views

Timing and ListPlot

I am currently trying to examine the Timing function as it relates to generating primes and factorize large integers. What I want to do is to visualize how time ...

15 30 50 per page