2.6 Thursday, November 12, 2020

2.6.1 Top new questions this week
2.6.2 Greatest hits from previous weeks
2.6.3 Can you answer these questions?

2.6.1 Top new questions this week

How to cut a list by max sum
Is it possible to ask Mathematica to stick two plots together to give a continuous plot ? (An example is given)
ReplaceAll, Unexpected output
Find All Permutations for Multiset
Counting the number of edges between two graph partitions
Summing over Partitions
Incomplete web image scraping

How to cut a list by max sum

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=234240

 {5, 10, 3, 8, 9, 8, 8, 4, 1, 7}

let maxsum=20, then I get ...

asked by wuyudi https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=68689 9 votes

answered by kglr https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=125 12 votes

Is it possible to ask Mathematica to stick two plots together to give a continuous plot ? (An example is given)

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=234373

I want to plot a function over a large range of \(x\). The problem is that for very large \(x\), even increasing PlotPoint to \(5\times 10^6\) and MaxRecursion 15, it does not give the whole result. But I ...

asked by charmin https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=74550 8 votes

answered by kglr https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=125 15 votes

ReplaceAll, Unexpected output

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=234344

Each week I import a dataset, and every week the dataset differs in length (the number of records). After the import I need to do some transformations. One of these transformations is the ReplaceAll.

asked by Michiel van Mens https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=9590 7 votes

answered by Carl Woll https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=45431 9 votes

Find All Permutations for Multiset

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=234143

Take a list with repetitions, say {a, a, b, c}, and some permutation thereof, say {c, a, b, a}. I want to know which ...

asked by AccidentalFourierTransform https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=34893 7 votes

answered by ciao https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=11467 6 votes

Counting the number of edges between two graph partitions

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=234462

Consider the following:

g = RandomGraph[WattsStrogatzGraphDistribution[1000, 0.1, 5]] 
comm = FindGraphPartition[g, 2]; 
CommunityGraphPlot[g, comm]

asked by Caitlin https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=74961 5 votes

answered by kglr https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=125 5 votes

Summing over Partitions

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=234302

Imagine I have a list of integers \(l=\{l_1,l_2,...,l_{50}\}\), say, for example

l = RandomInteger[10, 50]

and I want to find how many ways there are of summing ...

asked by sam wolfe https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=64001 5 votes

answered by Carl Woll https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=45431 6 votes

Incomplete web image scraping

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=234154

Occasionally when I scrape images from a webpage, such as:

Import["https://www.freeart.com/gallery/m/mondrian/mondrian.html", "Images"]

only a ...

asked by David G. Stork https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=9735 5 votes

answered by Rohit Namjoshi https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=58370 4 votes

2.6.2 Greatest hits from previous weeks

Positioning axes labels
How to perform a multi-peak fitting?
How to generate a random snowflake
Figuring when the minute and hour hand coincide on a clock
Is there an open source implementation of Mathematica-the-language?
How to make a Spherical Cow?
What’s the most difficult multidimensional integral that Mathematica has solved?

Positioning axes labels

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=87388

I need to change the position of my axes labels such that the y-axis label is in the middle and parallel to the y-axis. I’d also like the x-axis label to be in the middle of the x-axis rather than ...

asked by John_dydx https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=7849 15 votes

answered by Virgil https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=27697 16 votes

How to perform a multi-peak fitting?

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=26336

I am wondering how to implement the multi-peak detecting and fitting in Mathematica. Following is an example of fitting the data using three peaks (such that the data ~ peak1 + peak2 + peak3). The ...

asked by Everett You https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1389 55 votes

answered by Silvia https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=17 55 votes

How to generate a random snowflake

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=39361

'Tis the season...

And it’s about time I posed my first question on Mathematica Stack Exchange. So, here’s an holiday quest for you Graphics (and P-Chem?) gurus.

What is your best code for generating ...

asked by Peltio https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=6745 140 votes

answered by Silvia https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=17 181 votes

Figuring when the minute and hour hand coincide on a clock

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=573

I would like to list all possible times in a 12-hour period, where the hour hand overlaps the minute hand completely. This is really a question about three distinct things - to be done in Mathematica ...

asked by Steve D https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=191 15 votes

answered by Verbeia https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=8 21 votes

Is there an open source implementation of Mathematica-the-language?

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=4454

I’ve seen questions before such as "What is the best open-source equivalent for Mathematica?", but that specific question (and that line of inquiry in general) cares more about the computer algebra ...

asked by sblom https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=178 122 votes

answered by Simon https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=34 85 votes

How to make a Spherical Cow?

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=125043

Being a theoretical physicist, I always have a great respect for Spherical Cow. So I thought about making one myself. I am not sure how can I create (something considered to be the simplest!) this ...

asked by Sumit https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=8070 69 votes

answered by andre314 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5467 76 votes

What’s the most difficult multidimensional integral that Mathematica has solved?

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=222184

I am interested in benchmarking numerical integration methods and am trying to develop a wider set of difficult multivariate examples. For my particular methods, I only want to look at non-negative-...

asked by ben18785 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=19278 6 votes

2.6.3 Can you answer these questions?

Solving \(E[abXab]=Y\) for Gaussian \((a,b)\)
Problem with RunProcess
Does NumberLinePlot give the whole results over a large domain? Or we need to increase its precision?

Solving \(E[abXab]=Y\) for Gaussian \((a,b)\)

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=234502

I have \(d/2\)-dimensional variables \(a,b\) jointly distributed as Gaussian(\(\mu ,\Sigma \)) in \(d\) dimensions, and need to solve the following equation for \(X\) \[E[ab^TXab^T]=Y\] This is equivalent to ...

asked by Yaroslav Bulatov https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=217 1 vote

Problem with RunProcess

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=234260

I’m trying to use the RunProcess function to run docker on Mac OS using Mathematica. But there is a problem:

asked by Wei Li https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=75601 1 vote

Does NumberLinePlot give the whole results over a large domain? Or we need to increase its precision?

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=234324

I use this code over the domain \(x\in (0,300)\)

asked by charmin https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=74550 1 vote