0
votes
0answers
37 views
1
vote
2answers
57 views

Associating values of two matrices through sum

I have the following code: ...
2
votes
1answer
51 views

How to set proper time zone for weather data

I am running a query to pull historical temperature readings from Los Angeles using the following query: ...
3
votes
1answer
108 views

Discrepancy between Matlab and Mathematica

What is the difference between how Matlab and Mathematica solve State-Space and Transfer Function models? I have a $16 \times 16$ state space system for which I am calculating transfer function. ...
0
votes
0answers
12 views

Print joined string with variable superscript [duplicate]

I like to join some strings which I then like to print. A substring contains a number that I like to be printed in scientific format. An example to clearify: ...
1
vote
1answer
57 views

Distribute operator on functions

I wrote this code: ...
0
votes
0answers
28 views

How do I do Cauchy product of infinite series?

I have two series and want their Cauchy product series as a result. For instance, I want to multiply Sum[1,{x,0,Infinity}] to Sum[2,{x,0,Infinity}] The directConvolve method does not work, ...
0
votes
0answers
33 views

Why Mathematica does not Maximize when using parameter

I have recently started using Mathematica and I have got a question using it. I would appreciate if one could help me figuring out how to handle it. I have the following simple maximisation code <...
0
votes
0answers
35 views

Prime-Generating Cellular Automaton

I'm trying to use these ...
-6
votes
0answers
26 views

regex patterns not working [on hold]

i am using this regex ^[[ \w\.\,\-\$\€\&]* ({[\w]+\:[\w]+})* ({=[\w ]+\.[\w]+})*]*$ and i want to match paterns like this ...
0
votes
0answers
33 views

Opportunity for ordering mathematics through symbols

Hilbert came up with the idea of grounding all of mathematics in an a priori synthetic knowledge of symbols. Mathematica also pegs all mathematical operations down under a single roof aided by ...
11
votes
1answer
98 views

What is the effect of giving ColorFunctionScaling a numerical argument?

(by making a mistake) I realised that ColorFunctionScaling can take a list of numerical arguments rather than just booleans. The following is true for ...
6
votes
3answers
296 views

Any alternative way to compute IntegerPartitions?

I tried to compute IntegerPartitions[100] using mathematica on my intel core i3 system. the system hangsup everytime. Is there another way to do such a large computation?
1
vote
1answer
69 views

How can I solve my system of simultaneous polynomial equations?

I want to solve the system of equations (y + 1)(a - x^p*y^q) == 0 (y + 1)x^p*y^q - c*y == 0 But I am getting the massage this system can't be solved by ...
1
vote
1answer
79 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 ...
10
votes
2answers
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 ...
7
votes
1answer
131 views

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

Consider the following equation: ...
0
votes
0answers
25 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. ...
2
votes
1answer
58 views

My plots are overlapping while using Show[] command [closed]

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: ...
1
vote
0answers
38 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 ...
6
votes
0answers
108 views

How to read and write data to open socket?

I am trying to open connection with socket. I am using this: ...
0
votes
3answers
132 views

3D Plot with the Manipulate Command

I'm trying to make a 3D Plot using the Manipulate command. The code is: ...
-1
votes
1answer
34 views

How to use Collect[…] with matrices? [closed]

I have a matrix function $T_4(t)$ which is evaluated as follows: $$\left( \begin{array}{cc} \frac{1}{48} \left(t^4-8 t^2+48\right) & \frac{1}{768} t \left(t \left(t \left(t^3-32 t+64\right)+256\...
5
votes
0answers
46 views

How does the Contours→{{f_1, g1}, {f_2, g_2}, …} setting work?

I want to plot some wavefronts in Mathematica, and I'm having some trouble reining in one of the options for my ContourPlot3D. More specifically, the documentation for ...
0
votes
0answers
30 views

How to display an image at native size on a display using CreatePalette? [duplicate]

I am trying to display an image in a new Notebook, centered on the display, using CreatePalette. Here is example code: ...
0
votes
0answers
30 views

Show full output for a matrix in mathematica [closed]

I have a very large rectangular matrix. It is an incidence matrix that I obtained from a bipartite graph data. I want to view the whole matrix. It only shows SparseArray[...] and specifies dimensions ...
0
votes
0answers
5 views

Formula for the area of a trapezoid when only points are known [migrated]

I am making a personal website and the main menu consists of scaled trapezoids. I can find the coordinates of the points for each trapezoid, and I know the parallel edges. I need a formula that can be ...
0
votes
0answers
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 - ...
0
votes
0answers
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
1
vote
1answer
98 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 ...
1
vote
1answer
51 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
-3
votes
0answers
37 views

The definition of variables [closed]

how to define some variable according photo attached.
-4
votes
1answer
68 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 ...
2
votes
1answer
70 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 ...
0
votes
0answers
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 ...
3
votes
3answers
143 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 ...
0
votes
0answers
92 views

Need help with very complex mechanical system of equations

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 ...
3
votes
1answer
66 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 ...
8
votes
1answer
134 views

Replace nested external definitions in Compile

f = #^2 &; Compile[{{x, _Real, 1}}, f /@ x, CompilationOptions -> {"InlineExternalDefinitions" -> True}] // CompilePrint works fine. ...
2
votes
1answer
55 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 ...
10
votes
2answers
542 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 ...
3
votes
1answer
140 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 ] ...
0
votes
0answers
34 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: ...
1
vote
2answers
51 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. ...
1
vote
1answer
47 views

solve equation with integer maximum [closed]

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 ...
0
votes
0answers
31 views

Making NestWhileList call TuringMachine until it produces a halt state [closed]

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 ...
0
votes
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? ...
5
votes
1answer
119 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 ...
-6
votes
1answer
67 views

A Complicate sum with Mathematica, need Help! [closed]

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 \...
3
votes
2answers
51 views

GeoRegionValuePlot not using ColorFunction colours

I have a custom Blend for use with GeoRegionValuePlot's ColorFunction option. ...

15 30 50 per page