All Questions

Filter by
Sorted by
Tagged with
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, ...
hare's user avatar
  • 220
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?
BigMistake's user avatar
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: ...
Suite401's user avatar
  • 4,313
0 votes
1 answer
125 views

How to compile this function to speed up operation?

...
fcwyq's user avatar
  • 319
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 ...
giztt's user avatar
  • 43
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. ...
Albercoc's user avatar
  • 946
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 ...
Jules Lamers's user avatar
  • 1,064
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 ...
Gwaine's user avatar
  • 33
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 ...
Aleks's user avatar
  • 25
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 ...
valar morghulis's user avatar
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. ...
florin's user avatar
  • 1,582
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 ...
Y. zeng's user avatar
  • 425
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 ...
Denis D. Bavrin's user avatar
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. ...
Weixin's user avatar
  • 1
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 ...
Fixed Point's user avatar
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 ...
Smaug's user avatar
  • 11
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 ...
licheng's user avatar
  • 1,873
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)...
Reality Check's user avatar
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 ...
QubitTy's user avatar
  • 107
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 ...
ShyPerson's user avatar
  • 440
1 vote
1 answer
151 views

How to solve the non-linear over-determined equations symbolically? [closed]

...
aamir farooq's user avatar
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 ...
infinitezero's user avatar
  • 1,335
3 votes
1 answer
74 views

Updating a data table

1. Example data I have a data table organized as an Association of Associations: ...
eldo's user avatar
  • 40.6k
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 ...
Denis D. Bavrin's user avatar
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 ...
azerbajdzan's user avatar
  • 7,094
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? ...
IntroductionToProbability's user avatar
3 votes
1 answer
32 views

How to include the default color for ArrayPlot ColorRules to the SwatchLegend?

...
Syed's user avatar
  • 38k
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 ...
Y. zeng's user avatar
  • 425
1 vote
0 answers
19 views

PDF export plot markers issue

I'm having an issue with a relatively textbook pdf export ...
Vsevolod A.'s user avatar
0 votes
0 answers
43 views

Plotting vector control interventions for Vector-borne diseases

...
Athanasios Paraskevopoulos's user avatar
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 ...
Larissa Santos's user avatar
1 vote
1 answer
60 views

Slow convergence of 6 dimensional integral in a spherical region

...
user1477339's user avatar
1 vote
0 answers
33 views

Separate definition of custom options and passed options in function definition

Why do these codes do not work? ...
azerbajdzan's user avatar
  • 7,094
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 ...
azerbajdzan's user avatar
  • 7,094
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 ...
user2686410's user avatar
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 ...
Quark Soup's user avatar
  • 1,560
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: ...
Peter's user avatar
  • 21
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 ...
IntroductionToProbability's user avatar
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 ...
azerbajdzan's user avatar
  • 7,094
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 ...
Dr. B. Mallick's user avatar
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 ...
Everett You's user avatar
  • 2,257
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 ...
Steven Buehler's user avatar
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 ...
Athanasios Paraskevopoulos's user avatar
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 ...
granular bastard's user avatar
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: ...
Ted Ersek's user avatar
  • 594
2 votes
2 answers
67 views

How to Extract Specified Edges from an EdgeList

Suppose I have the following edge list ...
user42700's user avatar
  • 1,553
7 votes
2 answers
146 views

Quickly seeking an entry in a table

I have a table: ...
apg's user avatar
  • 1,937
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? ...
Math_student's user avatar
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: ...
atomic-muclei's user avatar
1 vote
1 answer
51 views

Graph lines do not show dashes [closed]

I have the following code of an iteration: ...
Junaid Ahmad's user avatar

15 30 50 per page
1
3 4
5
6 7
1829