2.16 Thursday, August 20, 2020

2.16.1 Top new questions this week
2.16.2 Greatest hits from previous weeks
2.16.3 Can you answer these questions?

2.16.1 Top new questions this week

Deleting duplicates after n-occurrences
How can I enclose a closed curve with another identical slightly bigger closed curve?
Glowing weighted graph (network): vertexes and edges
Why does it take so long to Quit?
How to use Flatten to a specific element of a list
Parsing error [bug?] with systems of nonlinear PDEs, Mathematica 12.0.0
Collecting common powers of terms

Deleting duplicates after n-occurrences

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

As a generalization of DeleteDuplicates, I want to delete duplicates from a list, but only after n number of duplicates. Say,

asked by azerbajdzan https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=53172 11 votes

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

How can I enclose a closed curve with another identical slightly bigger closed curve?

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

I have a closed curve. I am trying to enclose this closed curve with another closed curve, which looks identical in the shape of the first closed curve, but slightly bigger. How to do this?

asked by acoustics https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=53981 10 votes

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

Glowing weighted graph (network): vertexes and edges

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

I am trying to find a way (desirably simple and performance/speed optimized for larger graphs) to do the following :

Styling graph vertexes by glow-effect and its intensity depending on ...

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

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

Why does it take so long to Quit?

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

Running Quit is a core task repeated many times in any debugging/development cycle. Its efficiency is therefore important and yet in my set-up it is taking ...

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

answered by Ronald Monson https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=2249 9 votes

How to use Flatten to a specific element of a list

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

Let's say I have a list {{1, 2, 3}, {4, 5}, ...}. I want to make the list 
look like {1, 2, 3, {4, 5}, ...}. I am doing this way:

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

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

Parsing error [bug?] with systems of nonlinear PDEs, Mathematica 12.0.0

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

I find the following behavior using 12.0.0. (EDIT: I asked a friend to try it in 12.1.1 and he finds the same result.) Here is a system of coupled nonlinear PDEs that ...

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

Collecting common powers of terms

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

How to collect the common powers appearing in the following function using MATHEMATICA, such that if I input

(4 m^6)/((m - n)^2 (m + n)^4 (2m+n)^4)

then the ...

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

answered by Bob Hanlon https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=9362 3 votes

2.16.2 Greatest hits from previous weeks

Help find a bright object on Mars!
How to plot an ellipse?
How to make the digits of \(\pi \) go around in a spiral like this?
How to calculate contour integrals with Mathematica?
How to make a Spherical Cow?
How to find integer solutions?
Plotting a Phase Portrait

Help find a bright object on Mars!

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

In today’s news, scientists found a bright object on one of Curiosity’s photos (it’s near the bottom of the picture below). It’s a bit tricky to find - I actually spent quite some time staring at the ...

asked by Victor K. https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1351 198 votes

answered by Niki Estner https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=242 257 votes

How to plot an ellipse?

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

I’m new to Mathematica, and I’m finding it difficult to plot an ellipse. I tried using

Plot[(x/5)^2 + (y/3)^2 == 1, {x, -5, 5}, {y, -3, 3}]

but I’m getting ...

asked by Sriram https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=6075 17 votes

answered by Jens https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=245 29 votes

How to make the digits of \(\pi \) go around in a spiral like this?

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

Here is a start.

MapIndexed[Text[Reverse[First[RealDigits[Pi,10,252]]][[Tr@#2]],#]&, 
 Table[{t Cos[t],t Sin[t]},{t,0,16Pi,0.2}]]//Graphics

asked by matrix89 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5379 56 votes

answered by Martin Ender https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=2305 71 votes

How to calculate contour integrals with Mathematica?

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

How to calculate the integral of \(\frac {1}{\sqrt {4 z^2 + 4 z + 3}}\) over the unit circle counterclockwise for each branch of the integrand?

asked by user64494 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=7152 40 votes

answered by Artes https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=184 63 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

How to find integer solutions?

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

Following is the equation: Need to solve for integer values of x,y when a,b lies between -1000 and 1000. Problem is to find the number of integer values of pair (x,y) that satisfy it.

asked by Sahil Sareen https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=12396 2 votes

answered by bill s https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1783 4 votes

Plotting a Phase Portrait

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

I’m trying to plot a phase portrait for the differential equation \[x'' - (1 - x^2) x' + x = 0.5 \cos (1.1 t)\,.\] The primes are derivatives with respect to \(t\). I’ve reduced this second order ODE to ...

asked by covertbob https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=4528 38 votes

answered by David Slater https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1746 32 votes

2.16.3 Can you answer these questions?

Export function not working via JLink in Java8 compiled application
Custom arrowhead will not align properly
How to control a presenter notebook with a mobile device?

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

I have documented the following issue with evaluating the Export function via J/Link: https://stackoverflow.com/questions/63390977/wolfram-mathematica-kernellink-export-function-not-working-via-jlink- ...

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

Custom arrowhead will not align properly

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

I am trying to put a custom arrowhead on an arrow I am drawing in a plot. My problem is that the (thick) line of the arrow is showing behind the arrow tip. So it seems like the arrowhead is aligned ...

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

How to control a presenter notebook with a mobile device?

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

In the video of the link below, at 1:40 is said that the presentation can be controlled by a mobile device, how can I do that?

https://www.youtube.com/watch?v=GMHM_iUL_sU

asked by Daniel Rocha da Silva https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=74279 1 vote