All Questions
91,414
questions
4
votes
6
answers
352
views
If and partial selection
There is some lists and this is consisting of {a,{b,c},d,e} elements.
For example,
...
1
vote
1
answer
104
views
Is "and" the exact same as "&&" in Mathematica? [closed]
Does the word "and" compile the exact same way as "&&" or are there differences?
0
votes
1
answer
44
views
String rearragement [duplicate]
I have another malformed list of football scores. Each score is reported in one of seven(!) possible formats, each which is sampled below:
...
0
votes
1
answer
125
views
4
votes
1
answer
58
views
Commutant of set of matrices
I'm trying to compute the commutant of a set of matrices, so the set of matrices that commutes with all matrices in the original set.
I'm a complete newbie with mathematica, so I would be greatful for ...
2
votes
1
answer
65
views
Function to Save/DumpSave without specifying full path
I am trying to create a function that saves a set of symbols into "test.mx" and is easy to use.
...
2
votes
3
answers
109
views
How to make a PlotMarker with two colors?
I have a very simple question. I'd like to display two points -- that currently appear on top of each other in a ListPlot -- as (replace them by) a single plot ...
2
votes
1
answer
35
views
Heatmap resolution issues
I am trying to plot a heatmap from the following code. I have a problem where the colour seems to stop before reaching the corners. Please can someone help me to make the colour run all the way to the ...
0
votes
1
answer
60
views
How could I customize ColorRules or ColorFunction in MatrixPlot?
Hello and have a nice day!
I need to make MatrixPlot for some data. Here you can find a notebook with preprocessing raw data and some functions from below text.
I want all "Inf" values to be ...
1
vote
2
answers
160
views
How to fit a data a long 3D path?
I have two data sets in the form dat1={{x,y,z}, f1[x,y,z]} and dat2={{x,y,z}, f2[x,y,z]} I want to fit a model with common ...
2
votes
2
answers
92
views
Computing a limit with assumptions
This program solves the recurrence for the expected time to extinction of a linear birth and death process with arrival rate A and death rate q A, and then attempts to simplify.
...
2
votes
3
answers
112
views
Space cannot be used in vertical string with unicode character
To reproduce the issue, use Ctrl+Enter to create 3 placeholders and enter 你 好 (or ...
0
votes
1
answer
65
views
How to force Wolfram solve the ODE with respect to h[s]?
I have a problem with the DSolve operator. It just gives me the initial ODE as an answer, however, obviously, I need to find the answer h[s] as a function of f[s] and its powers (or whatever else). It ...
0
votes
1
answer
89
views
Why am I not getting a result? Can you please help me take a look? [closed]
Why am I not getting a result? Can you please help me take a look? I really appreciate it.
...
0
votes
0
answers
56
views
High Quality ComplexPlot [duplicate]
Using version 12.0.0.0, I am using ComplexPlot to create a figure. This example is from the ComplexPlot help page. I am using the command
...
1
vote
1
answer
51
views
Labeling contours
I want to label several contours in one graph. First, I drew three lines 1 == ii3 + (1 + ss)/2, 0 == ii3 + (1 + ss)/2, and ...
6
votes
5
answers
299
views
Discover overlapping sublists within a list
Given a list, for example, L = {{1, 2, 4}, {8, 3, 5}, {5, 6, 8}, {1, 7, 4}}, some of these sublists have common elements, such as {1, 2, 4} and {1, 7, 4}. I only ...
0
votes
1
answer
33
views
Piecewise integration doesn't evaluate
I'm trying to integrate the following function:
$$q(d, \theta) = q_x(d, \theta) + q_y(d, \theta) - 2q_x(d, \theta) q_y(d, \theta)$$
where $q_x(d, \theta) = \min\left(2 - d\cos\theta, d\cos\theta\right)...
0
votes
1
answer
36
views
How to group terms with the same exponential factor together after Expand?
ET[t] :=
E1*Exp[-I*w1*t] + E2*Exp[-I*w2*t] + E3*Exp[-I*w3*t] +
E1*Exp[I*w1*t] + E2*Exp[I*w2*t] + E3*Exp[I*w3*t];
THGExp[t] = ET[t]*ET[t]*ET[t]//Expand;
I ...
0
votes
0
answers
35
views
Symbolic solutions to systems of Boolean constraints?
Is it possible to solve a system of Boolean constraints symbolically? I'm trying to solve systems like the following, where $X$ is the unknown Boolean expression I'm trying to find, $a, b, c$ are the ...
1
vote
1
answer
151
views
1
vote
1
answer
93
views
Pick random value based on list of probabilities
I'm pretty sure this must have been asked before, but I can not find the duplicate.
Given a list of values with their probabilities
...
3
votes
1
answer
74
views
Updating a data table
1. Example data
I have a data table organized as an Association of Associations:
...
0
votes
1
answer
52
views
How to reduct the terms of differential equation?
How can one bring the terms of a differential equation below to a standard form with coefficients before h[s], h'[s], h''[s] and their powers?
Or, better, can someone help me with solving it with ...
1
vote
1
answer
66
views
How to match sizes of objects among several Graphics outputs?
I want disks of equal size to be depicted the same size on different outputs of Graphics and at the same time images should be nicely clipped without any ...
0
votes
0
answers
34
views
CompiledFunction fails for Variance with a rank 3 input
Why does compiling Variance for a rank 3 input fail but Mean works?
...
3
votes
1
answer
32
views
3
votes
2
answers
182
views
How to stop folding in SwatchLegend?
How to stop folding in SwatchLegend? For example:
SwatchLegend[63, Range[20]]
outputs:
Is there a way to make them just one ...
1
vote
0
answers
19
views
PDF export plot markers issue
I'm having an issue with a relatively textbook pdf export
...
0
votes
0
answers
43
views
0
votes
1
answer
63
views
Gauss elimination with pivoting error
I am attempting to write code for Gaussian elimination with pivoting. I need my code to be able to find the maximum pivot in the column and swap the rows to ensure that the first element is always the ...
1
vote
1
answer
60
views
1
vote
0
answers
33
views
Separate definition of custom options and passed options in function definition
Why do these codes do not work?
...
4
votes
1
answer
112
views
Sorting by SortBy without converting to numerical values
First output returned by Sort is correct - ordered from smaller to bigger numbers.
Second output returned by SortBy is correct ...
3
votes
1
answer
55
views
Can you not use And[] inside a Select[]?
I have a list of lists of integers that are each sorted numerically. Here is a sample of it: {{2, 8, 9}, {3, 7, 9}, {4, 6, 9}, ...}. I wish to only pick out members ...
0
votes
0
answers
62
views
How do I find the definite double integral of a real number over a complex region?
This is a follow-up question of How do I take the integral of a real number over a complex region?
Given that $\tau'$ is imaginary, how would you calculate the definite double integral over a complex ...
2
votes
1
answer
85
views
Mathematica thinks that an initial condition is a boundary condition
I would like to solve the following reaction-diffusion problem in Mathematica using NDSolve:
...
0
votes
1
answer
57
views
Function to generate analytic solution of StandardDeviation of a list given sublists
Motivation
I have the Mean and StandardDeviation of several lists of equal size but I don't know the elements of those lists.
I ...
1
vote
1
answer
52
views
Intersection of region with triangular lattice in 2D
Is there a function that finds all points that lie in specified region and also are part of triangular lattice defined by {Sqrt[3] i, 3 (2 j + Mod[i, 2])} for ...
0
votes
1
answer
45
views
Plotting graph in a same figure for two different values of parameter
Here I am trying to plot the graph for two different values of the parameter m, say m=5 and ...
0
votes
0
answers
32
views
GraphicsBoxOptions no longer working in Mathematica 13.3
Previously, I used GraphicsBoxOptions to set BaseStyles for my notebook. It is no longer working in Mathematica 13.3. What is ...
0
votes
0
answers
41
views
Plot 3D (or spectrogram) from rtl_power input
I'm going to admit that I am a complete newbie when it comes to Wolfram Language (Dammit Jim, I'm a data analyst, not a mathematician!).
I have some output data from ...
1
vote
1
answer
50
views
Plotting Dengue Infection Prevalence Sensitivity to Biting Rate Variations
I want to explore how varying values of the biting rate affect infection prevalence in humans in our modeled dengue outbreak, keeping all other parameters constant.
I provide you the code that I use ...
0
votes
1
answer
218
views
Nullspace if denominator is zero
This question is based on a previous question where the matrix
mat = {{0, s, 1, 0}, {-s, 0, 0, 1}, {1, 0, 0, -s}, {0, 1, s, 0}};
is given and one wants to determine ...
8
votes
6
answers
962
views
How can I fit a parabola to 2D data points?
I am looking for good Mathematica code to fit a parabola to 2D data, such as this:
...
2
votes
2
answers
67
views
How to Extract Specified Edges from an EdgeList
Suppose I have the following edge list
...
7
votes
2
answers
146
views
Quickly seeking an entry in a table
I have a table:
...
0
votes
0
answers
41
views
How to find a positive minimum of a function?
How can I find a positive minimum of f and its corresponding R0?
...
1
vote
0
answers
40
views
Finding and manually weeding out images in ClusteringComponents clusters
I have processed images using the following code, where list1 and list 2 are x and y axes, sample of images:
...
1
vote
1
answer
51
views
Graph lines do not show dashes [closed]
I have the following code of an iteration:
...