# All Questions

76 views

### Gram-Schmidt Process

I've discovered the Orthogonalize command: Clear[x1, x2] x1 = {1, 1, 0}; x2 = {-2, 0, 1}; Orthogonalize[{x1, x2}, Method -> "GramSchmidt"] Which returns an ...
1k views

### Pixel perfect world map with no border lines

I'm trying to build a real world map in Minecraft and want a pixel-perfect raster image I can copy pixel for block. How can I modify ...
122 views

### Finding “nice” solution for under-determined system with constraint?

Consider the following equation: ...
22 views

### Does VertexAdd/EdgeAdd always simply append new vertices/edges to the old list?

I have a weighted digraph and I want to add new vertices and edges. The problem is that the EdgeWeight property value gets reset to automatic when a new edge is added. ...
56 views

### My plots are overlapping while using Show[] command [on hold]

I want to display these two equations in one graph. Both are having different values but by using Show command only single line comes in graph. My Code is: ...
33 views

### Min Weight Perfect Matching on General Graphs

I'm looking for a minimum weight perfect matching algorithm in Mathematica. Ideally, it should be able to handle arbitrary weighted graphs (e.g. not just bipartite, as that case is easy), although I ...
74 views

### How to read and write data to open sockets?

I am trying to open connection with socket. I am using this: ...
127 views

### 3D Plot with the Manipulate Command

I'm trying to make a 3D Plot using the Manipulate command. The code is: ...
31 views

37 views

### Mathematica Not finding Eigenvectors? [duplicate]

I have the following matrix: mat = {{-60., 0., 2.1*10^-35 II + 2.1*10^-35 (-1. II + Istar), 2.1*10^-35 II + 2.1*10^-35 (-1. II - 4.7619*10^6/Istar)}, {-6.4*10^22 II - 6.4*10^22 (-1. II - ...
30 views

### How to make graph like that [duplicate]

Can I know how to make graph like below: it's a list of disconnected points like {200,5}, {500,10}, .. {1000,15} and then plotted by list plot, but how to add these rounded pins on these points
95 views

### How to plot a pair of functions as solid and dashed, but a list of those pairs as different colors, in one plot?

I have a list of pairs of functions: fns = Table[{a*x, a*x^2}, {a, 5}] {{x, x^2}, {2 x, 2 x^2}, {3 x, 3 x^2}, {4 x, 4 x^2}, {5 x, 5 x^2}} What I would like to ...
48 views

### Clustering using Mathematica

I've got a two column table (Fields, Methods) and I'd like to find which Methods relates to many Fields. Can I accomplish this task using Mathematica? This are the sample data. https://jpst.it/L6I5
35 views

### The definition of variables [on hold]

how to define some variable according photo attached.
65 views

### Apply If function to FoldList [on hold]

I have defined the following function: cpdz[c0_, m_,s_, r_, t_, n_] := If[c0 > 0, c0*(m*c0\s - (m - 1)*Exp[r*t/n]), c0*Exp[r*t/n]] for s I have a set of ...
66 views

### How can I find the eigenvalues of a Sturm-Liouville equation?

I am trying to find eigenvalues of a Sturm-Liouville equation using Mathematica10.2, but setting different precisions in ParametricNDSolve gives me different ...
15 views

### Recursion limit error in FeynRules

I added this lagragian to the Standard Model file LBSM =HC[CC[dR]][sp1,ff1,col1].Ga[0,sp1,sp2].del[dR[sp2,ff1,col2],mu] Gaux[mu,ff2,ff2,col1,col2]; where Gaux is ...
101 views

### How do I define a two point random variable?

How do I define a random variable $X$ such that $Pr[X=x_1]=p_1$ and $Pr[X=x_2]=p_2$ where the values $x_i$, $i=1,\,2$ are just symbols and the probabilities $p_i$, $i=1,\,2$ are symbolic expressions ...
84 views

I have three equations as follows: $A_p=F \cos(\alpha+ \phi) - \mu N^{'}_{S_1} - \mu N_{S_1} - W \sin \theta = m ( \ddot x - r \ddot \theta (\sin (\gamma+ \phi)) )$ $B_p=F \cos(\alpha+ \phi) - \mu ... 1answer 63 views ### Rule for derivatives I have a differential equation of the form $$f'(x)=g(x,f(x))$$ (where$g$is has a known explicit form, e.g.$x f(x)$) and I have an expression which contains several derivatives of$f$. I want to ... 1answer 130 views ### Replace nested external definitions in Compile f = #^2 &; Compile[{{x, _Real, 1}}, f /@ x, CompilationOptions -> {"InlineExternalDefinitions" -> True}] // CompilePrint works fine. ... 1answer 49 views ### Colouring of 3DPlot I have a ParametricPlot3D in which I would like to change colouring to meet the rest of my work. There seems to be some orange colour as the basic one which is ... 2answers 501 views ### Reproducing the xkcd “Self-Description” comic Trying to brush up on my programming, I wanted to see if I can reproduce at least the first two panels of the following comic in Mathematica: I have some code for trying to reproduce the first ... 1answer 137 views ### Incorrect result when integrating Mathematica 10.4.1.0 produces Integrate[ Log[1 + 2 a*Cos[2 x] + a^2]*Sin[x]^2, {x, 0, Pi/2}, Assumptions -> a > 1 ] ... 0answers 30 views ### Error with Wolfram|Alpha query from Mathematica? I upgraded to version 10.4 of mathematica, then I run a query with WolframAlpha inside Mathematica but there comes a error message. I do not know what happened. It send me this: ... 2answers 48 views ### Changing Plot Options for two different graphs under Manipulate I am trying to plot two discontinuous functions, each with different plot options, using Manipulate. In my code, I have defined a function for$z$and$sq$in my code. ... 1answer 46 views ### solve equation with integer maximum [on hold] how to solve with Mathematica a)$ \left [\kern-0.10em\left[ 5 x \right]\kern-0.15em\right] = 2x+1$b)$ \left [\kern-0.10em\left[1/ 5 x \right]\kern-0.15em\right] > 2x+1$EDIT = double ... 0answers 30 views ### Making NestWhileList call TuringMachine until it produces a halt state [on hold] I want TuringMachine to produce output while it hasn't reached a halt state defined as a configuration of the tape. So, if I specify that the halt state for the ... 0answers 27 views ### why this function can not work and how to solve it? [duplicate] I can't get this to work, It just have the same problem as {5,6,7,8}[1]=1.How to solve this question? ... 1answer 102 views ### switch between automatic and manual updating I have a plot with interactive controls. I'd like to give the user the option between having the plot automatically update (when the plot's parameters are changed with the slider) and having the ... 1answer 67 views ### A Complicate sum with Mathematica, need Help! [on hold] I found the sum shown below in a scientific paper. I need to calculate it. $$\sum_{k_1+k_2+...+k_n=m}{m \choose k_1,\,k_2,\,\ldots,\,k_n}\ f_{k_1}(x)\,f_{k_2}(x)\,...\,f_{k_n}(x),\qquad k_i \in \... 2answers 49 views ### GeoRegionValuePlot not using ColorFunction colours I have a custom Blend for use with GeoRegionValuePlot's ColorFunction option. ... 2answers 250 views ### Graph diameter algorithm Does anyone know what the complexity of Mathematica's GraphDiameter algorithm is? I have a family of very large (and very regular and very sparse) graphs, and if Mathematica uses something like the ... 2answers 59 views ### Use cases to exclude data values over a certain threshold I am trying to parse data output from a fluorometer. My output is basically signal intensity over time. So I have a list of 2 value lists with the first value time and the second signal e.g., ... 0answers 15 views ### Seconde Derivatives of an integral [on hold]$$ g(x) = \int_{-\infty}^{x^2/2} e^{-(x^2+1)t^2}dt\,. $$Trouble calculating the first and the second derivative of this function. 1answer 68 views ### How to plot a function containing \pm and unlimited solutions n? [duplicate] I have$$y=n\pi\pm\arcsin(\sin(x)), n\in\mathbb{Z}$$How can one define and plot such a function in Mathematica for multuple n at the same time? 1answer 82 views ### Inverting an ImageAdjust ImageAdjust does an excellent job of auto-leveling an image. Although there doesn't appear to be an explicit way to get the contrast, brightness and gamma values ... 0answers 48 views ### colored array of output I would like to have colored array of an output. Assume for example we have an array of numbers or texts as output and we want different colors for different classes of them. For example A={... 2answers 85 views ### solving PDE equation like Helmholtz equation in 2D In my project I need to solve following equation analytically could anyone help me ? As I read the other questions, my equation seems like Helmholtz equation$$ \triangledown^2 u(x,y) - k_cu(x,... 1answer 77 views ### Getting complex infinity for solution to differential equation DSolve[y''[x] - (2 n + 1) (3 + 2 n) y[x]/(4 x^2) + \[Beta] y[x]/ x^(-2 n) == 0, y[x], x] I am trying to solve the equation and all I am getting is ... 1answer 65 views ### Generating a very large list of integers not divisible by a set of primes I have read (58520), but the solutions there do not work when using a large maximum value because they rely on Range. For example, ... 1answer 27 views ### Using set of lists in if function? [on hold] I have the following function: a3[m_, C_, St_, Stt_] := If[C > 0, (m*C)/St*Stt, 0] now my input for C, St and Stt are different set of lists. So I tried to ... 1answer 61 views ### how can I get the right derivatives in this Sum? I want to get the derivatives of$q_i$of the following function Q in Mathematica: $$Q=\sum _{i=1}^N q_i$$, Using the command of $$\frac{\partial Q}{\partial q_i}$$, the software give me an answer of$...
I'm trying to reproduce the solid blue graph on the left hand side in the following picture: The analytical expression for the graph is:  - \frac{1}{\tau} \ln \Bigg ( \Bigg [ \frac{|\eta|}{1 +...