# All Questions

13 views

### Interpret hexadecimal sequence as a binary matrix that can be used in AdjacencyGraph

I have a database of hex sequences stored as blob. Each of them is a binary matrix representing the adjacency matrix of a directed graph. I want to use the ...
31 views

### Unexpected result from Sort with symbolic values

I think Sort should be able to sort symbolic values that are reducible to numerical values, but this example seems to get a wrong answer (here is a simplified ...
45 views

### Changing Rules to a list of lists

What are some easy ways to change {"Joe" -> 94, "Jane" -> 85, "Bob" -> 82, "Bill" -> 83, "Michelle" -> 98} to {{Joe,94},{Jane,85},{Bob,82},{Bill,83},{Michelle,98}}
56 views

### Pick elements from list “separately”

I have the following list I want to pick elements from: mylist = {1, 5, 7, 3, 4, 7, 2, 9, 9, 1, 10, 12, 2, 64, 34, 64} I have another list with 0's and 1's which ...
37 views

### Extending a list

I have a range of n integers (always starting at 1) which are 1 apart, f.e. Range[10], Range[17] or ...
26 views

### From an equilateral triangle to a square

In the equilateral restricted four-body problem the three primaries are located to the following points: $A(\sqrt{3}\mu,0)$, $B(-\frac{\sqrt{3}}{2}(1-2\mu), \frac{1}{2})$, ...
12 views

### Convergence of a recursive function

I am trying to study the convergence of a function that is defined by recursion. We want to find for which 'j' the difference between $g_i^j$ and $g_i^{j+1}$ is equal or smaller than $10^{-3}$ . ...
51 views

### Magnifying Glass on a Plot

Although there is a trick in TEX magnifying glass but I want to know is there any function to magnifying glass on a plot with Mathematica? For example for a function as ...
27 views

### Resources for bioinformatics or computational biology

I am looking for some textbooks/websites to learn applications of Mathematica to bioinformatics/computational biology. Searching on Amazon and Wolfram books section did not result in any direct hits. ...
89 views

### Strange performance of Outer

The following takes 0.07 seconds on my laptop. list1 = RandomReal[1.,1000000]; (Outer[Times, list1, RandomReal[1., 2]];) // AbsoluteTiming But this takes 1.2 ...
36 views

### Why is monomial list failing here? [on hold]

I've tried to use MonomialList here but it seems to be failing: ...
24 views

### Integrating high oscillatory function - triple integral - error message

I am working in a triple integral, but the second integral (qQ) and the first too ( aA ) is a oscillatory funcion. The third integral ( os11 ) is like a gaussian, and is easy to integrate. i am ...
36 views

### Calculating in the group ring $Q[GL_n(Z)]$

I am trying to use Mathematica to check some identities in the group ring $Q[GL_n(Z)]$. Is there a package/function of Mathematica to do this? Thanks a lot in advance!
20 views

### Social media data returns blank output

I have mathematica 10.3 The SocialMediaData command, asks me for for an access key. When I paste it, it returns a blank network. The related commands also return blank lists {}''. I work on linux ...
16 views

### Defining an object which is function in some variables and tensor in some other indices

I am trying to define an object which function in some variable and tensor in other indices. My attempt at it was: ...
34 views

### How to delete InterpolationFunction created by NDSolve/ParametricNDSolve?

I have faced a uncommon problem. The situation is that I need use ParametricNDSolve/ParametricNDSolveValue to solve ODEs system in the non-linear model fitting process. So every iteration generating a ...
26 views

### Smooth Curve using Drawing Tools Palette

I am learning to use the drawing tools palette that comes packaged with Mathematica. I'm attempting to create some diagrams for class using Mathematica's drawing tools rather than Adobe. Is there ...
32 views

### Why won't ImplicitRegion work with a custom distance function? [on hold]

I am trying (in 10.0) to create a region from a list of data points. I have created myDistance to use as the boolean test for whether or not a point should be included in the region ...
34 views

### String Question [on hold]

Consider: listOfScores = Import["http://www.handsonstart.com/ExampleDataScores.txt", "Data"] Which gives this output: ...
29 views

### Can I extract or deduce the effective input form to duplicate the results from an interactive toolbar?

The interactive toolbars that are available in 10.0+ are very nice for getting images to look the way I want; but the black box functionality is very un-Mathematica-like, and doesn't help me if I want ...
49 views

### Attaching labels to the vertices of an Octahedron

How do you attach the labels (e1,e2,e3,e4,e5,e6) to all 6 vertices of the Octahedron below, ensuring that the labels of the first figure corresponds to the end ...
65 views

### union several arrays of same flag(date for example) efficiently

Suppose I have several arrays from data files which look like: arrayi = {{datei1, xi11, xi21, ...}, {datei2, xi12, xi22, ...}, ..., {datein, xi1n, xi2n ,...}} ...
48 views

### SubsetQ[] without ignoring duplicates

How could one create a code that checks whether a set is a subset of another, but not ignoring the duplicates? For example, $\{1,1,1\}$ would be a subset of $\{1,1,1,1\}$, but not vice versa. ...
63 views

### Solving nonlinear 3rd order ODE over range from zero to infinity

Here are the code that I had tried but there is an error ...
33 views

### Labeling the vertices of a graph

I would like to label the vertices of a complete graph alphabetically. But I am stuck because I don't know how to associate only one vertex to a letter. ...
20 views

### Nestlist inside Compile

My question is a continuation of question1 and question2, but I think it may be considered as a self-contained one. I am interested to make the following code faster ...
143 views

### Concise alternative to First@First@Position[…, 1,Heads->False]

Is there a more compact way to accomplish this: lst = {0,0,7}; idx = Position[lst, Except[0], 1, Heads -> False] // First // First (* => 3 *) For ...
127 views

### How to plot real roots of complex polynomials avoiding branch cuts?

Lets say I have the following matrix: M={{1,3+E^(I x),-1+2I x},{3+E^(-I x),2,E^(3I x)},{-1-2I x,E^(-3I x),-2}};  M=\begin{pmatrix} 1& 3+\mathrm e^{ix} ...
46 views

### Improving strategy to solve this constrained root-finding problem

I am looking for roots of the function eqs defined below. It has $2k$ unknowns and returns a vector of $2k-1$ components. The sole purpose of the following block ...
17 views

### Tips on finessing Reduce[] with inequalities

Reduce[] sometimes solves inequalities I give it, sometimes it doesn't. Is there some general principles I'm missing or some common pitfalls I'm falling into? For example, here is easy problem I ...
47 views

### distribution for a random variable [on hold]

In a lab with $2 n$ PCs, half of which operate with IP v4 and half with IP v6. A professor is interested in having all PCs with the same protocol open, so at first he starts opening each pc one by ...
42 views

### Displacement around the x axis, how to change a function location

While plotting a function I want to change the location of x. I am doing a regression with the logistic function ...
94 views

### Plotting singular integral

I need to plot the following singular double integration where $x>0$, $t=m=0.2$, and $f(y)= \exp(-(y-4.68)^2/0.4)$. Due to singularities, I cannot plot $u(x,t)$ for $x=0..15$. I checked the ...
35 views

### Plot3D PlotStyle V10.3 vs V7 [duplicate]

This is the from the the very good book of Hazrat He used Mathematica 7.0. In Mathematica 10.3 one gets ...
50 views

### Rotate the output of Plot3D [on hold]

f[x_, y_] := Sin[x^2 + y^2] Exp[-x^2] + Cos[x^2 + y^2] g2 = Plot3D[f[x, y], {x, -2, 2}, {y, -2, 2}, PlotPoints -> 50, Axes -> False, Boxed -> False] ...
24 views

### Solve involving simple cancellation on both sides fails when there are too many constants

I've been working with a number of equations of the form x = A * B * x ^ C where I need to solve for x--basically, equations ...
45 views

### Bifurcation Diagram of Chua Circuit

I am currently working on a Bifurcation Diagram for Chua's Circuit but I am having trouble coming up with code for a bifurcation of a system of equations. The following equations are given in the ...
86 views

### Iterations in Mathematica [on hold]

this is probably a very easy question for all of you. I have a stochastic Mathematica code (not important what it's exactly) which gives me a number at the end. Now I want Mathematica to run this ...
93 views

### Wiggly and imprecise animated gif output

Trying to make animated gif of zooming into famous Ford circles. With the code ...
65 views

### Data fitted by two linear fits [duplicate]

can anybody help me please and tell me how to fit my set of points by two linear fits? It is always exactly two of them and are always linear and should cover all the data. The second line should ...
101 views

### generating randomly oriented non-intersecting cylinders

I could not find anything relevant with "googling" (only this) I can create a set of randomly oriented cylinders (code found here) ...
35 views

### Nonrectangular tensor encountered [on hold]

I am trying to solve a system of equations which characteristic matrix: ...
7 views

### Python to maple transferring data. And visa versa [migrated]

I'm inexperienced python user. So in python I generated a big equation, how I can transfer it to maple for solving, and after that transfer the roots of equations to python backwards?
56 views

### Mean squared displacement of a single trajectory

I have a single particle trajectory and would like to calculate the mean squared displacement. The particle is moving from blue over yellow, green to red data points. The {x,y} data are available ...
45 views

### How do you do a conformal transformation? [on hold]

I am attempting to solve an equation for a antenna project I am working on Here are the equations and values I am working with: ...
42 views

### How to make a maximum intensity projection of 3D data?

I am trying to make a maximum intensity projection of my 2D data, which has several intensity values in the third dimension and therefore makes the data 3D. So I want to take the maximum intensity of ...
22 views

### RunProcess not working on my Windows system

System: Windows 10 professional. Mathematica Version: 10.3.0 English. RunProcess doesn't work in my computer. I tried different examples given in the ...
33 views

### Why is the exponent in the analytical FourierTransform positive by default [on hold]

In the documentation of Mathematica the Fourier transform of a function is defined as the integral of that function times the typical exponential. In contrast to a positive exponent in Mathematica, ...