Chapter 1
Year 2021

 1.1 Thursday, May 27, 2021
 1.2 Thursday, May 20, 2021
 1.3 Thursday, May 13, 2021
 1.4 Thursday, April 29, 2021
 1.5 Thursday, April 22, 2021
 1.6 Thursday, April 15, 2021
 1.7 Thursday, April 1, 2021
 1.8 Thursday, March 25, 2021
 1.9 Thursday, March 18, 2021
 1.10 Thursday, March 11, 2021
 1.11 Thursday, February 25, 2021
 1.12 Thursday, February 18, 2021
 1.13 Thursday, February 11, 2021
 1.14 Thursday, February 4, 2021
 1.15 Thursday, January 28, 2021
 1.16 Thursday, January 21, 2021
 1.17 Thursday, January 14, 2021
 1.18 Thursday, January 7, 2021

1.1 Thursday, May 27, 2021

  1.1.1 Top new questions this week
  1.1.2 Greatest hits from previous weeks
  1.1.3 Can you answer these questions?

1.1.1 Top new questions this week

   Is Internal‘StringToDouble broken in 12.3?
   in V 12.3, expression in notebook shakes when scrolling mouse to edit them. How to stop this effect?
   Programming language prototyping in Mathematica
   WriteString to TCP socket appears to be broken in Mathematica 12.3
   DirichletCondition doesn’t always work with RegionBoundary
   What are the key reasons for the performance improvements in 12.3?
   Default window size too small in version 12.3 (in Windows 10)

Is Internal‘StringToDouble broken in 12.3?

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

I believe Internal`StringToDouble was the only way to fast convert string into numbers. Now in V12.3 it was removed: Internal`StringToDouble["1"]

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

answered by Itai Seggev https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=4848 20 votes

in V 12.3, expression in notebook shakes when scrolling mouse to edit them. How to stop this effect?

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

I noticed in V 12.3, when trying to edit an expression in a cell, and moving/scrolling the mouse, the expression itself shakes. It seems to auto-resize or adjust while one is editing it. This does not ...

asked by Nasser https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=70 14 votes

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

Programming language prototyping in Mathematica

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

Are you aware of any projects using the Wolfram language resp. Mathematica as an environment to explore the design of programming languages - in particular languages with a focus on mathematics (...

asked by Math Gaudium https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=74255 12 votes

answered by Anton Antonov https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=34008 18 votes

WriteString to TCP socket appears to be broken in Mathematica 12.3

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

I have a large codebase in which some functions make calls to Python TCP servers. The code used to work perfectly in Mathematica 12.2, but has not worked since I ...

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

answered by Dorian B. https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=23275 2 votes

DirichletCondition doesn’t always work with RegionBoundary

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

I am trying to solve the heat equation on a circle with a square shaped hole in it. It works:

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

answered by Tim Laska https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=61809 11 votes

What are the key reasons for the performance improvements in 12.3?

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

The built in benchmark test on my stationary workstation shows an improvement from 2.82 to 5.99, all other hardware and operating systems settings the same. This looks very good. My question is: What ...

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

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

Default window size too small in version 12.3 (in Windows 10)

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

After starting Mathematica 12.3, the default window size is like this, it’s too small for me, I don’t want to manually drag the window every time. I have tried this,

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

1.1.2 Greatest hits from previous weeks

   Multivariable Taylor expansion does not work as expected
   How to calculate contour integrals with Mathematica?
   What does ”Tag Integer is Protected” message mean?
   Is there an open source implementation of Mathematica-the-language?
   How to express trigonometric equation in terms of of given trigonometric function?
   How can I plot a graph of an integral?
   Find eigen energies of time-independent Schrödinger equation

Multivariable Taylor expansion does not work as expected

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

The basic multivariable Taylor expansion formula around a point is as follows:

\[ f(\mathbf r + \mathbf a) = f(\mathbf r) + (\mathbf a \cdot \nabla )f(\mathbf r) + \frac {1}{2!}(\mathbf a \cdot \nabla ) \]

asked by matheorem https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=4742 65 votes

answered by Jens https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=245 73 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 42 votes

answered by Artes https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=184 64 votes

What does ”Tag Integer is Protected” message mean?

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

(Newbie question)

For every function I define I get this message: When I close and reopen Mathematica, and re-enter the function definition, I don’t get the message anymore. What does it mean?

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

answered by J. M.’s ennui https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=50 13 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 124 votes

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

How to express trigonometric equation in terms of of given trigonometric function?

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

How can I express a trigonometric equation / identity in terms of a given trigonometric function?

using following trigonometric identities

asked by Prashant Bhate https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=99 30 votes

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

How can I plot a graph of an integral?

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

I want to plot the following function:

\[ \int \left (\frac {\Gamma (x+1)}{2}-\frac {\Gamma (x-1)}{2}\right ) \, dx \]

asked by Anixx https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=651 4 votes

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

Find eigen energies of time-independent Schrödinger equation

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

I’m trying to get the eigenvalues of a one dimensional time-independent Schrödinger equation,

\(-\frac {h^2}{2m_0}\frac {d^2\psi }{dx^2}+U(x)~\psi =Ei~\psi \)

where \(U(x)\) is some potential and Ei is the ...

asked by xslittlegrass https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1364 49 votes

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

1.1.3 Can you answer these questions?

   What is ”Flatten” doing to my elements?
   Inconsistent boundary and initial conditions when solving sine Gordon equation
   Step-by-step solution for a Limit

What is ”Flatten” doing to my elements?

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

Here’s some of my code. x1 results in returning the position of a list in a {{{n1}},{{n2}}...}. Im trying to flatten it such that the list reads out as {n1,n2,n3....} some how it’s adding elements.

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

Inconsistent boundary and initial conditions when solving sine Gordon equation

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

I have been trying to solve the following sine Gordon equation \(\partial _{x,x} u(x,t) - \partial _{t,t} u(x,t) - \sin (u(x,t)) - \alpha \partial _t u(x,t) + \gamma = 0\), for \(x \in [0,15]\) and

asked by Đạt Lê Thành https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=68852 1 vote

Step-by-step solution for a Limit

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

Is it possible in Mathematica to get a step-by-step evaluation of some functions? Such that Mathematica is outputting not only the result but all the stages that have led to it? If so, how does one do ...

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

1.2 Thursday, May 20, 2021

  1.2.1 Top new questions this week
  1.2.2 Greatest hits from previous weeks
  1.2.3 Can you answer these questions?

1.2.1 Top new questions this week

   Stable fluids code for electromagnetic mixture application
   How can I create an animation showing how a circular sector deformed to a cone?
   Dataset from association of lists doesn’t work
   Creating the Yin Yang symbol with minimal code
   On the ordering of the vertices of a polygon
   Is it possible to vary the thickness of curves according to their color code
   How can I style a Line like ”Glassrectangle”?

Stable fluids code for electromagnetic mixture application

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

This code has been translated from the original Jos Stam code and improved with some Mathematica functions. It solves problem of viscous incompressible flow with electromagnetic force in a rectangle ...

asked by Alex Trounev https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=58388 14 votes

answered by xzczd https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1871 11 votes

How can I create an animation showing how a circular sector deformed to a cone?

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

I want to create the following animation with Mathematica.

What is the simplest way to do so? My first effort:

asked by Kim Jong Un https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=42141 12 votes

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

Dataset from association of lists doesn’t work

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

Mathematica 12 on wolfram cloud isn’t rendering the table for an association of lists. According to the documentation you should be able to make columns in the table by:

However I tried this

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

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

Creating the Yin Yang symbol with minimal code

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

The following code creates the Yin Yang symbol

asked by nilo de roock https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=156 9 votes

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

On the ordering of the vertices of a polygon

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

Writing:

pts = {{1, 0}, {2, 0}, {2, 3}, {3, 3}, {3, 4}, {0, 4}, {0, 3}, {1, 3}, {1, 0}}; 
Graphics[{Red, Point[pts], Blue, Line[pts]}]

we get:

and all of this ...

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

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

Is it possible to vary the thickness of curves according to their color code

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=246125 I have this data data = Table[{x, Sin[5 x], Tanh[3 x]}, {x, -1, 1, 0.01}];

which I plot as follows

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

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

How can I style a Line like ”Glassrectangle”?

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

I’d like a thick Line to look like ChartElementFunction -> "GlassRectangle" How can that be accomplished?

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

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

1.2.2 Greatest hits from previous weeks

   What’s the most difficult multidimensional integral that Mathematica has solved?
   Extract real part of a complex expression better than Re does
   Exporting graphics to PDF - huge file
   My Girlfriend is going to prison...Save her with Math
   How to plot an ellipse?
   Is there something like DensityPlot3D to visualize atomic orbitals?
   Calling Correct Function for Plotting DiracDelta

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

Extract real part of a complex expression better than Re does

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

I have a complex expression with real positive variables only.

Mathematica Input Style:

asked by max https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=796 34 votes

answered by nixeagle https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=814 54 votes

Exporting graphics to PDF - huge file

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

I want to draw some basic surfaces, export them to PDF and include them in a LaTeX file. I create a simple 3D graphics object, for instance with

asked by Matthew Leingang https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=395 109 votes

My Girlfriend is going to prison...Save her with Math

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

Salacious title, but true story.

asked by Prisoners Dilema https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=46025 42 votes

answered by bobthechemist https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=7167 23 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 18 votes

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

Is there something like DensityPlot3D to visualize atomic orbitals?

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

I’m visualizing some hydrogen like atomic orbitals. For looking at plane slices of the probability density, the DensityPlot function works well, and with something ...

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

answered by xslittlegrass https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1364 25 votes

Calling Correct Function for Plotting DiracDelta

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

I am wondering what is the correct function in Mathematica to plot the true impulse function, better known as the DiracDelta[] function. When using this inside of a ...

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

answered by Heike https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=46 19 votes

1.2.3 Can you answer these questions?

   Speeding up this function?
   Error when integrating with constants?
   Is there an analog of ArrayQ for datasets?

Speeding up this function?

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=246242 Is there a way to speed this function?

asked by An old man in the sea. https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=11313 2 votes

Error when integrating with constants?

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

I’m trying to integrate an ellipse: (x^2)/alpha^2) + ((y^2)/beta^2) = 1. I am not sure if I should have insert constants for alpha and beta or if there’s a way to keep them there.

This is my code

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

answered by Daniel Huber https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=46318 0 votes

Is there an analog of ArrayQ for datasets?

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

ArrayQ provides a nice way to check for missing data (specifically, it checks if the array is ragged). But if you import your data as a dataset, and apply ArrayQ, it will return False for both ragged ...

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

1.3 Thursday, May 13, 2021

  1.3.1 Top new questions this week
  1.3.2 Greatest hits from previous weeks
  1.3.3 Can you answer these questions?

1.3.1 Top new questions this week

   Finding ”chains” of numbers in a matrix
   How to formulate this problem in Mathematica?
   Problem with optimal control and Pontryagin’s maximum principle
   Sorting Associations by DayName (day of week) using KeySort and/or KeySortBy
   Using the PowerPoint’s laser pointer in symbols of plots
   How would one add Hyperreals as a new type to Mathematica?
   Extract held value from Association

Finding ”chains” of numbers in a matrix

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

To give some context, this problem is related to music theory. I have a matrix I’m generating with this code:

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

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

How to formulate this problem in Mathematica?

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

Say, I have the following expressions

f = R[p] 
g = S[p]

where R,S are rational functions, and I want to find a polynomial such that

asked by nilo de roock https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=156 6 votes

answered by Roman https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=26598 11 votes

Problem with optimal control and Pontryagin’s maximum principle

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

For dynamic system: \(\dot {x}=\frac {df}{dx}+u\) where \(f=e^{-x^2}\) It is necessary to develop optimal control, minimizing criterion: \(J= \int _{0}^{t_f} ((\frac {df}{dx})^2+u^2) \,dt \) Algorithm:

We ...

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

answered by Alex Trounev https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=58388 7 votes

Sorting Associations by DayName (day of week) using KeySort and/or KeySortBy

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

I have an association where the keys are the days of the week:

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

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

Using the PowerPoint’s laser pointer in symbols of plots

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

I am interested in exploiting a symbol that is similar to the PowerPoint’s laser pointer in the role of PlotMarkers. Is there any idea to create that!? This symbol ...

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

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

How would one add Hyperreals as a new type to Mathematica?

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

Hyperreals are an extension to the real numbers; they formalise the concepts of infinities and infinitestimals as numbers, rather than the named limit points outside of the system of reals and form ...

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

Extract held value from Association

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

Consider an association which contains a key which must not be prematurely evaluated. assoc = <| key :> value |>

For example, a value of ...

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

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

1.3.2 Greatest hits from previous weeks

   1 Plot, 2 Scale/Axis
   How to perform a multi-peak fitting?
   Standard deck of 52 playing cards in curated data?
   Is it possible to export the equations from Mathematica to MATLAB?
   LaTeXand Mathematica
   How can I plot implicit equations?
   Calling Correct Function for Plotting DiracDelta

1 Plot, 2 Scale/Axis

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

I would like to plot those two datasets on top of each other. But they have very different range on the \(y\) axis. How can I have two different axis?

I found the following on the help menu but quite ...

asked by 500 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=172 152 votes

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

Standard deck of 52 playing cards in curated data?

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

I am not sure how to find out what all is included as curated data. For example, are the individual images of each of the 52 cards in a standard deck of playing cards included?

If not, is there a way ...

asked by JohnD https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1629 25 votes

answered by rm -rf https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5 23 votes

Is it possible to export the equations from Mathematica to MATLAB?

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

Is it possible to export the output expressions from Mathematica computations (e.g., equations) in valid MATLAB syntax?

asked by Seyhmus Güngören https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=4256 43 votes

answered by rm -rf https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5 48 votes

LaTeXand Mathematica

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

I quite often would like to draw graphics in my LaTeXdocuments using Mathematica. I have encountered three problems. I would like to know if there are any workarounds to these problems

I would ...

asked by Thomas Rot https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=227 130 votes

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

How can I plot implicit equations?

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

If you enter the following into Wolfram — Alpha, you get nice graphs:

graph 4 x^4 + y^2 = 2

How do you do this in Mathmatica? I realize that these are not ...

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

answered by Timothy Wofford https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=9391 41 votes

Calling Correct Function for Plotting DiracDelta

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

I am wondering what is the correct function in Mathematica to plot the true impulse function, better known as the DiracDelta[] function. When using this inside of a ...

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

answered by Heike https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=46 19 votes

1.3.3 Can you answer these questions?

   Excess lines in the solution plot of vector ODE
   Algorithmically imposing a substitution in a difficult integral
   How to expand a rational function as a single fraction

Excess lines in the solution plot of vector ODE

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

I’ve got an ODE system, which I attempt to solve by two ways: solving the system itself, and using vector ODE. Here is code of first way:

asked by Cpp Nosavvier https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=79893 3 votes

Algorithmically imposing a substitution in a difficult integral

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

Consider the following integral: \[ I = \frac {1}{\pi c^2} \int \limits _{r=0}^c 2 \pi r\ e^{-\frac { \left (\sqrt {a^2 - r^2} -\sqrt {b^2 - r^2} \right )}{\lambda }}\ dr \] under the conditions \(a>b>c>\)...

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

How to expand a rational function as a single fraction

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

This has been annoying me for a long time. I want a rational function to be represented in the form

    n        0
anx--+-....a0x--
bmxm  + ....b0x0

But this seems to be quite difficult. Mathematica ...

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

answered by Ulrich Neumann https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=53677 0 votes

1.4 Thursday, April 29, 2021

  1.4.1 Top new questions this week
  1.4.2 Greatest hits from previous weeks
  1.4.3 Can you answer these questions?

1.4.1 Top new questions this week

   Replacing duplicates instead of deleting them
   RecurrenceTable and While
   Speed up averaging of numerically solved differential equations
   FEM: how to redo a composed boundary mesh for better quality?
   Were these Images made with Wolfram Language / Mathematica?
   How to find the repeated elements in a vector
   How to separate two regions in DensityPlot

Replacing duplicates instead of deleting them

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

My code replaces each repeated element by ”X”.

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

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

RecurrenceTable and While

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

Good day. Let’s take an example from Help on RecurrenceTable

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

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

Speed up averaging of numerically solved differential equations

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

I deals with a coupled system with non-linear differential equations of first order. I perform numerical solution with NDSolve and then use obtained solutions,

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

answered by Alex Trounev https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=58388 1 vote

FEM: how to redo a composed boundary mesh for better quality?

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

Suppose you have region with 2 materials: one embedding material matrix containing some particles

asked by Mauricio Fernández https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=24710 4 votes

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

Were these Images made with Wolfram Language / Mathematica?

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

I am currently writing a paper in which Fibonacci Spirals are discussed. In the text of the paper the mathematics of these objects is discussed and the relevant equations and relationships are shown ...

asked by urquiza https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=79636 4 votes

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

How to find the repeated elements in a vector

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

Is there a way to write a function where the input is a vector and the output is the elements in the vector that are repeated? I was trying to use something along the lines:

asked by Trashlife https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=79628 4 votes

answered by Roman https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=26598 7 votes

How to separate two regions in DensityPlot

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

I want to separate two regions in DensityPlot similar to the attached image.

In my code and the obtained result, I want to separate the region with less value of one from others. How can I do this? ...

asked by mehrosadat ebrahimi https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=40575 4 votes

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

1.4.2 Greatest hits from previous weeks

   How to graph a sphere with cartesian equations?
   Parallel and perpendicular symbol from Mathematica to LaTeX
   How do I make a 3DPlot using cylindrical coordinates?
   What does Compile[] do to make code run so much faster?
   How do I clear all user defined symbols?
   Formatting legend text font
   How can I plot the direction field for a differential equation?

How to graph a sphere with cartesian equations?

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

I’m new to Mathematica and I need to ask how to graph a sphere, cylinder, etc.. using cartesian equations.

For example in sphere’s case \(x^2+y^2+z^2=1\)

I tried to use ...

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

answered by Dr. belisarius https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=193 14 votes

Parallel and perpendicular symbol from Mathematica to LaTeX

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

I want to get the following expression from Mathematica to LaTeX:

\[ \begin {bmatrix} E_{\parallel } \\ E_{\perp } \end {bmatrix} \]

I have tried to use inbuilt ’symbol’ character from the special ...

asked by Steve Hatcher https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=13314 20 votes

answered by Sjoerd C. de Vries https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=57 27 votes

How do I make a 3DPlot using cylindrical coordinates?

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

I’m trying to plot a function of the form \(z(r,\theta )\) where \(r \in [0, R]\) for a finite R, \(\theta \in [0,2\pi [\), and z is the third coordinate, a function of the first two. I couldn’t find anything ...

asked by Learning is a mess https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5643 19 votes

answered by whuber https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=91 26 votes

What does Compile[] do to make code run so much faster?

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

I am looking for an ELI5 explanation of whatCompile[] in the Wolfram Language context does and why it works so much faster than uncompiled code in certain cases. I am trying to get more insight to ...

asked by anon248 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=66458 20 votes

answered by chasly - supports Monica https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=34024 9 votes

How do I clear all user defined symbols?

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

Is there some way to do this other than going to Evaluation -> Quit kernel and firing a new one up?

asked by niklasfi https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=82 99 votes

answered by Artes https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=184 98 votes

Formatting legend text font

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

I am using this code to plot a graph, and I am trying to make the font of the legend bigger.

asked by Julia https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=525 20 votes

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

How can I plot the direction field for a differential equation?

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

I’d like to plot the graph of the direction field for a differential equation, to get a feel for it. I’m a novice, right now, when it comes to plotting in Mathematica, so I’m hoping that someone can ...

asked by Matt Groff https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1735 33 votes

answered by Peter Breitfeld https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=307 26 votes

1.4.3 Can you answer these questions?

   Artifacts When Plotting Results of Numerical Integration
   How to solve a system with infinitely many equations?
   Custom multiplication operation between variables

Artifacts When Plotting Results of Numerical Integration

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

I am trying to reproduce the following graph of phase shifts as function of frequency.

Please see my code bellow. I used Mathematica to solve for t1 and ...

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

How to solve a system with infinitely many equations?

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

I need to solve the following system of (infinitely many) equations. I am looking for \(V(0,0)\)

\(t \in \{0,1,2.....\}\) with one caveat that \(s \leq 1+t\) should hold.

\( s \in \{1,2,3,L-1\}\)

fixed ...

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

Custom multiplication operation between variables

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

I am constructing polynomial expressions in the variables \(s[0],s[1],...,s[n]\) and I’m trying to define a new operation to simplify the expression:

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

1.5 Thursday, April 22, 2021

  1.5.1 Top new questions this week
  1.5.2 Greatest hits from previous weeks
  1.5.3 Can you answer these questions?

1.5.1 Top new questions this week

   joining three lists to plot data with errors
   Interpreting traditional math
   Is it possible to define conjugate of a function?
   Maximal circle packing inside a given square
   Some doubts about symbolic equations in Wolfram Mathematica
   Count number of balls in each bin, given a two-element sequence of balls and bins
   FEM: elastic cylinder under circumferential pressure

joining three lists to plot data with errors

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

I have three lists:

x = {x1, x2, ...}, 
y = {y1, y2, ...}, 
yErr = {y1Err, y2Err, ...}

that I want to join into the following format:

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

answered by Ulrich Neumann https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=53677 9 votes

Interpreting traditional math

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

There are two ways (afaik) to parse traditional math string to an expression:

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

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

Is it possible to define conjugate of a function?

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

Could you help me, please? I have two complex functions of real variable f[x] and fc[x] such that one is a conjugate of another one. I’d like to take a conjugate of an expression that includes both of ...

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

answered by Daniel Huber https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=46318 9 votes

Maximal circle packing inside a given square

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

How to pack n equal disks(radius a/2) with maximal area inside a given rectangle ? I’m trying to solve this problem using Mathematicas Region functions. Here my approach: Maximize the area of the ...

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

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

Some doubts about symbolic equations in Wolfram Mathematica

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

I need to perform the following operations using Wolfram Mathematica. I have these equations:

ab = c + d+ e

d-= gh + i
f

    a
k = --
    c

I need to obtain \(k\) as a function of: \(a,b,c,e,\dots \)

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

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

Count number of balls in each bin, given a two-element sequence of balls and bins

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

If I have a list:

{ball,ball,BINDIVIDER,ball,ball,ball,BINDIVIDER,BINDIVIDER,ball,BINDIVIDER,ball}

The balls and bins can be in any permutation. Then, the ...

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

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

FEM: elastic cylinder under circumferential pressure

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

Suppose you have an elastic cylinder of radius \(R\) and height \(H\) and you want to solve the mechanical 3D equilibrium with Mathematica’s FEM. How do you impose a pressure \(p\) only on the cylinder ...

asked by Mauricio Fernández https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=24710 4 votes

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

1.5.2 Greatest hits from previous weeks

   Plot data from txt file?
   How to make a Spherical Cow?
   What are the most common pitfalls awaiting new users?
   My Girlfriend is going to prison...Save her with Math
   Plotting the Star of Bethlehem
   Generate a Unit Circle Trigonometry
   Extract real part of a complex expression better than Re does

Plot data from txt file?

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

I have data in file.txt which can be expressed by 20000x11 matrix. I do not want to import all of these data. How can I plot graph of the column 1 & column 4?

asked by Gokce https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1297 21 votes

answered by user1066 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=106 24 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 are the most common pitfalls awaiting new users?

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

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...

asked by Dr. belisarius https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=193 485 votes

answered by Michael E2 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=4999 288 votes

My Girlfriend is going to prison...Save her with Math

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

Salacious title, but true story.

asked by Prisoners Dilema https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=46025 42 votes

answered by bobthechemist https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=7167 23 votes

Plotting the Star of Bethlehem

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

Christmas is around the corner! In preparation, consider the polynomial f[x_,y_]:= 1/10 (4 - x^2 - 2 y^2)^2 + 1/2 (x^2 + y^2) 

and define \(r=(f_x,f_y)\) using the ...

asked by fwgb https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=44151 30 votes

answered by Roman https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=26598 22 votes

Generate a Unit Circle Trigonometry

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

Struggling often with Trigonometry I would like to have some code to generate this Unit Circle Trigonometry. Would be of great help when I need to transform some data :

asked by 500 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=172 18 votes

answered by Mark McClure https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=36 32 votes

Extract real part of a complex expression better than Re does

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

I have a complex expression with real positive variables only.

Mathematica Input Style:

asked by max https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=796 34 votes

answered by nixeagle https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=814 53 votes

1.5.3 Can you answer these questions?

   Understanding the behavior of HypergeometricPFQ
   recursively find StringCases
   How to specify custom Loss function for Predict

Understanding the behavior of HypergeometricPFQ

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

this is my very post here, so I apologize for any possible format issue. I am using HypergeometricPFQ functions (more exactly \(_3F_2\)) as approximants for other more complicated functions. Here are ...

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

recursively find StringCases

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

Can I recursively extract StringCases[] that match a specific pattern? Here is a minimalist example (not my actual problem):

asked by Conor Cosnett https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=36681 2 votes

How to specify custom Loss function for Predict

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

How can I use Predict[Xs->Ys, Method->"NeuralNetwork"] to predict 90%-quantile (instead of mean value)? Utility Function does not work well for this case, because

it assumes ...

asked by Artem Vorozhtsov https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=61755 2 votes

1.6 Thursday, April 15, 2021

  1.6.1 Top new questions this week
  1.6.2 Greatest hits from previous weeks
  1.6.3 Can you answer these questions?

1.6.1 Top new questions this week

   Is there a neat code to swap elements of a list?
   Stokes equations in 2D with traction boundary conditions
   Transform a number to a factorial
   Stopping condition for FindMinimum / FindMaximum
   Efficiently compute Minkowski sum of a 2D Region and a Disc of radius r?
   Random orthogonal matrix
   Detecting patterns in a graph network

Is there a neat code to swap elements of a list?

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

I want to swap the list to make a new list as follows. The code works but I’m wondering if there is a neat code, or an elegant way to do this.

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

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

Stokes equations in 2D with traction boundary conditions

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

This is a follow-up to a previous question (see here). We would like to solve the two-dimensional Stokes equations using the FEM package in Mathematica, when we prescribe traction boundary conditions. ...

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

answered by Oleksii Semenov https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=63028 3 votes

Transform a number to a factorial

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

I came across the need to transform a number into a factorial n, with positive integer n. I have searched in the MMA information but I can’t find anything like that. I imagine an input, which verifies ...

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

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

Stopping condition for FindMinimum / FindMaximum

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

This seems like it should be a simple question – but I am looking to use a ”home made” stopping condition with FindMaximum, while evaluating a very complex function. Printing out the ...

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

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

Efficiently compute Minkowski sum of a 2D Region and a Disc of radius r?

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

Given a 2D Mathematica Region, e.g. A = Region[RegionDifference[Disk[{0, 0}, 2], Disk[{2, 0}, 1]]], how can I grow the region by an arbitrary radius r? For example, ...

asked by Aaron T. Becker https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=76690 6 votes

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

Random orthogonal matrix

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

Is there a way to generate real random orthogonal matrices in mathematica? If Q is an orthogonal matrix, it’s properties are

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

answered by Henrik Schumacher https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=38178 9 votes

Detecting patterns in a graph network

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

If we create a random graph

Chop[LowerTriangularize[RandomReal[{-1, 1}, {10, 10}], -1], 0.6] /.0 -> \[Infinity] // MatrixForm 
WeightedAdjacencyGraph[%]

How can ...

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

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

1.6.2 Greatest hits from previous weeks

   What do the X and Y axis stand for in the Fourier transform domain?
   Plot, extract data to a file
   Get a ”step-by-step” evaluation in Mathematica
   How to add a vertical line to a plot
   Selecting every n-th element from a list
   How to graph a sphere with cartesian equations?
   Conversion of Sine to Cosine

What do the X and Y axis stand for in the Fourier transform domain?

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

In Wolfram Mathematica the function Fourier has the following declaration

Fourier[list]

And after a list is given to the ...

asked by user253956 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=29958 27 votes

answered by Hugh https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=12558 61 votes

Plot, extract data to a file

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

I need to save data that Mathematica uses inside the Plot command. The format that I would like to have is:

x1 y1 
x2 y2

asked by molkee https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5097 30 votes

answered by Mr.Wizard https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=121 47 votes

Get a ”step-by-step” evaluation in Mathematica

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

Is it possible in Mathematica to get a step-by-step evaluation of some functions; that’s to say, outputting not only the result but all the stages that have led to it? If so, how does one do it?

asked by Cydonia7 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=44 131 votes

answered by J. M.’s ennui https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=50 109 votes

How to add a vertical line to a plot

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

In the plot below I would like to add two vertical lines at \(x = \frac {\pi }{15} \pm \frac {1}{20}\). How can I do that?

asked by sjdh https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=515 64 votes

answered by Ajasja https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=745 83 votes

Selecting every n-th element from a list

https://mathematica.stackexchange.com/landing/r/digest?cta=question&id=64003 I have a list:

data = {4, 5, 7, 8, 9, 5, 3, 2, 1, 2, 13, 12};

I want to take those elements in the list which are located at equal distances, say, every third ...

asked by Suro https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=20003 37 votes

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

How to graph a sphere with cartesian equations?

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

I’m new to Mathematica and I need to ask how to graph a sphere, cylinder, etc.. using cartesian equations.

For example in sphere’s case \(x^2+y^2+z^2=1\)

I tried to use ...

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

answered by Dr. belisarius https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=193 13 votes

Conversion of Sine to Cosine

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

I’m solving equations with many Cosines and Sines. And I want to convert all the Sines to Cosines using trigonometric formulas such as cos(x)=sin(x+pi/2). How can I do this?

asked by YongCheol Kwon https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=23041 4 votes

answered by Sjoerd C. de Vries https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=57 2 votes

1.6.3 Can you answer these questions?

   RandomInstance of GeometricScene producing unexpected result
   Solving an ordinary differential equation with boundary condition at infinity
   How to use ScalingFunctions with Graphics ChartElements

RandomInstance of GeometricScene producing unexpected result

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

Consider the following scene as an example:

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

Solving an ordinary differential equation with boundary condition at infinity

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

I want to solve the following differential equation  f''[z] + (1/z)*f'[z] - f[z] + f[z]^3 == 0

subject to the boundary conditions

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

answered by Mariusz Iwaniuk https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=26828 0 votes

How to use ScalingFunctions with Graphics ChartElements

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

How to draw spheres with BubbleChart with a reversed vertical axis? The 3rd example shows the problem (empty plot), likely caused by the transformation, but how to correct it?

asked by HuibH https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=70256 3 votes

1.7 Thursday, April 1, 2021

  1.7.1 Top new questions this week
  1.7.2 Greatest hits from previous weeks
  1.7.3 Can you answer these questions?

1.7.1 Top new questions this week

   Are Mathematica’s maps copyright-free?
   Find all English words that can be comprised of Element Abbreviations found in the Periodic Table
   Efficient uniform sampling of certain Boolean matrices
   Incorrect integration from article?
   Running Mathematica in ’SpouseMode’
   Putting together several ListPlot 2D in a 3D graphic
   Combine SortBy with ReverseSortBy

Are Mathematica’s maps copyright-free?

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

Are the maps available in Mathematica copyright-free? For instance, if I generate the image

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

answered by Carl Lange https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=57593 24 votes

Find all English words that can be comprised of Element Abbreviations found in the Periodic Table

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

This question is majorely influenced by a meme...

Now, I thought... it would be interesting to see what kind of ”passwords” could one derive using Periodic Table :D Hence, I began to work ...

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

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

Efficient uniform sampling of certain Boolean matrices

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

I want to uniformly sample \((0,1)\)-matrices with certain constraints. In particular, I want sum of each row to be rowsum and the sums of columns to equal ...

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

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

Incorrect integration from article?

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

Recently I came across an interesting article by Daniel Lichtblau, where the integral

Integrate[Abs[x - y]^n, {x, 0, 1}, {y, 0, 1}]

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

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

Running Mathematica in ’SpouseMode’

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

In this previous question I looked into a deprecated capability of Mathematica from Version 2. Mathematica command that allows it to read my intentions Thanks to all for your answers. I note that ...

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

answered by MikeY https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=47314 1 vote

Putting together several ListPlot 2D in a 3D graphic

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

I’m trying to put together several different 2D plots in a 3D graphics to create a figure which would be like the one below (taken from https://aip.scitation.org/doi/10.1063/1.4998724 However my ...

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

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

Combine SortBy with ReverseSortBy

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

Suppose I have a dataset, which I want to sort according to two criteria. However, I want the first criteria to be sorted ascending, and the second descending. This would require to somehow combine ...

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

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

1.7.2 Greatest hits from previous weeks

   How to add a front-end to the free Wolfram Engine?
   How to express trigonometric equation in terms of of given trigonometric function?
   What’s the most difficult multidimensional integral that Mathematica has solved?
   Standard deck of 52 playing cards in curated data?
   Even Fibonacci numbers
   How do I clear all user defined symbols?
   How to perform a multi-peak fitting?

How to add a front-end to the free Wolfram Engine?

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

https://blog.stephenwolfram.com/2019/05/launching-today-free-wolfram-engine-for-developers/

http://www.wolfram.com/engine/

The Free Wolfram Engine for Developers is available for pre-production ...

asked by Alexey Golyshev https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=23402 65 votes

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

How to express trigonometric equation in terms of of given trigonometric function?

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

How can I express a trigonometric equation / identity in terms of a given trigonometric function?

using following trigonometric identities

asked by Prashant Bhate https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=99 30 votes

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

Standard deck of 52 playing cards in curated data?

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

I am not sure how to find out what all is included as curated data. For example, are the individual images of each of the 52 cards in a standard deck of playing cards included?

If not, is there a way ...

asked by JohnD https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1629 25 votes

answered by rm -rf https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5 23 votes

Even Fibonacci numbers

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

Today, I found the Euler Project. Problem #2 is

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:

asked by xyz https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=9627 34 votes

answered by rcollyer https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=52 46 votes

How do I clear all user defined symbols?

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

Is there some way to do this other than going to Evaluation -> Quit kernel and firing a new one up?

asked by niklasfi https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=82 99 votes

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

1.7.3 Can you answer these questions?

   pure function assignment
   Graphics get cropped when wrapped in Hyperlink and Inset in MMA 12.2 (doesn’t seem to happen on 12.1 RPi) Bug?
   Does Mathematica have build-in function to compute dimension of square polynomial system?

pure function assignment

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

I do not understand this statement from the Introduction to Dynamic tutorial:

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

answered by MarcoB https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=27951 0 votes

Graphics get cropped when wrapped in Hyperlink and Inset in MMA 12.2 (doesn’t seem to happen on 12.1 RPi) Bug?

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

I’ve noticed that wrapping a Graphic[] in Hyperlink[] causes weird things to happen when using ...

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

Does Mathematica have build-in function to compute dimension of square polynomial system?

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

I’m working with square polynomial systems and wish to know if a (small) system has a finite number of solutions. That is, if it’s zero-dimensional. I’m not aware of any built-in function to do this ...

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

1.8 Thursday, March 25, 2021

  1.8.1 Top new questions this week
  1.8.2 Greatest hits from previous weeks
  1.8.3 Can you answer these questions?

1.8.1 Top new questions this week

   Head[x] vs x[[0]]?
   How to roll a graph on the y-axis
   Numerically solving Helmholtz equation in 2D for a Guitar
   How to draw the tree in a ”pitchfork” form?
   Digitizing a geometrical sensor
   How Can I Compute The Automorphism Group of a Matroid?
   How to make a circular heat map or diagram in Mathematica?

Head[x] vs x[[0]]?

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

Can we say Head[x] and x[[0]] are identical ? In mathematica manual I could find : ’The head is the part with index 0’

But I am not sure whether Head[x] are x[[0]] are really interchangeable in any ...

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

answered by Leonid Shifrin https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=81 13 votes

How to roll a graph on the y-axis

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

I want to roll the function f(x)=sqrt(x), x∈[0,1] along the y-axis. I know how to rotate the graph around a point, but I’m not sure how to rotate along an axis in 2D. Rotating around a point e.g. (0,...

asked by Guy Foxx https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=75736 14 votes

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

Numerically solving Helmholtz equation in 2D for a Guitar

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

Hi I am new to using Mathematica, so am not too confident. I am essentially trying to model vibrations of a guitar sound board for a project. It would be great to get some visualisations of the ...

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

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

How to draw the tree in a ”pitchfork” form?

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

How to set the options or other parameters in a TreePlot to draw the branching outside of the vertex? I.e. in a form similar to a dendrogram (but the dendrogram plot itself does not support the ...

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

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

Digitizing a geometrical sensor

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

I want to quantify the flow from photos taken from a sensor such as this one:

For a limited number of readings, I can use a plot digitization method. However, I need to do this many times for ...

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

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

How Can I Compute The Automorphism Group of a Matroid?

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

I want to compute the automorphism group of a matroid. This reduces to the following (more general) problem: Suppose I have a list of sets \(\{\{b_{11},\dots ,b_{1k}\},\dots ,\{b_{k1},\dots ,b_{kk}\}\}\) ...

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

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

How to make a circular heat map or diagram in Mathematica?

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

Is there any way to make a circular heat map in Mathematica? Thanks for your help! Here is a toy example for regular heat map. Can anyone help me make it to a circular one?

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

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

1.8.2 Greatest hits from previous weeks

   How can I draw the Olympic rings with Mathematica??
   Plot, extract data to a file
   What does ”Tag Integer is Protected” message mean?
   Selecting every n-th element from a list
   Labeling individual curves in Mathematica
   Help find a bright object on Mars!
   Plotting the frequency spectrum of a data series using Fourier

How can I draw the Olympic rings with Mathematica??

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

How can I draw the 5 interlocking Olympic rings with Mathematica? (SVG version) Edit

Hard choice, but some pretty cool answers here. I didn’t have 3D answers in mind when I posted the question, but ...

asked by Mike Honeychurch https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=77 44 votes

answered by cormullion https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=61 23 votes

Plot, extract data to a file

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

I need to save data that Mathematica uses inside the Plot command. The format that I would like to have is:

asked by molkee https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5097 30 votes

answered by Mr.Wizard https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=121 47 votes

What does ”Tag Integer is Protected” message mean?

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

(Newbie question)

For every function I define I get this message: When I close and reopen Mathematica, and re-enter the function definition, I don’t get the message anymore. What does it mean?

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

answered by J. M.’s ennui https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=50 13 votes

Selecting every n-th element from a list

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

I have a list:

data = {4, 5, 7, 8, 9, 5, 3, 2, 1, 2, 13, 12};

I want to take those elements in the list which are located at equal distances, say, every third ...

asked by Suro https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=20003 37 votes

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

Labeling individual curves in Mathematica

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

I need to create a plot for export and inclusion in a report. Is there a better way to label curves than PlotLegends? From what I’ve read and my personal experience,...

asked by Tianxiang Xiong https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1041 63 votes

answered by Artes https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=184 47 votes

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 201 votes

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

Plotting the frequency spectrum of a data series using Fourier

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

testData = Table[N@Sin[500 x], {x, 0, 100}]; 
ListLinePlot[Abs[Fourier[testData]], PlotRange -> Full]

Gives me Which I do not expect because the Fourier ...

asked by C. E. https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=731 14 votes

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

1.8.3 Can you answer these questions?

   Is the fancy script ’C’ mathscrC available in Mathematica?
   FormFunction output automatic download
   Generating a lattice by \(N^{th}\) iteration of unit cell

Is the fancy script ’C’ mathscrC available in Mathematica?

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

In mathjax \mathscr{C} gives me the character \(\mathscr {C}\) that I want. There is a UTF listing for this character. https://www.compart.com/en/unicode/U+1D49E If I copy form this webpage and paste ...

asked by Steven Thomas Hatton https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=44139 2 votes

FormFunction output automatic download

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

I want to create a FormFunction that takes in a CSV file, applies some operations on the data and outputs another CSV file. I would like for the ouput CSV file to be automatically downloaded. I have a ...

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

Generating a lattice by \(N^{th}\) iteration of unit cell

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

This question is in continuation of the my previous question that was not clearly presented by me at all. I have a unit cell, and I would like to generate a lattice but in iterative order. For ...

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

1.9 Thursday, March 18, 2021

  1.9.1 Top new questions this week
  1.9.2 Greatest hits from previous weeks
  1.9.3 Can you answer these questions?

1.9.1 Top new questions this week

   Why am I getting that \(0.999999999999988 \geq 1.0\) is True?
   Can we make an ”Outerable” Attribute?
   How to fit a curve in a picture with an equation?
   Bug with Json payload with diacritics for HTTPRequest
   How to plot a ”main effect” plot?
   generating tuples of ones and zeroes with a fixed number of ones
   How to add an attractive potential (migration term) named component to Mass Transport PDE

Why am I getting that \(0.999999999999988 \geq 1.0\) is True?

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

I am getting these results:

asked by Craig Carter https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=12461 20 votes

answered by Chip Hurst https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=4346 23 votes

Can we make an ”Outerable” Attribute?

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

We can declare a function to have the Listable Attribute so that it automatically threads over lists in a particular way. For functions of multiple arguments it ...

asked by Tanner Legvold https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=68925 14 votes

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

How to fit a curve in a picture with an equation?

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

For a curve taken from a picture, is there any method to fit it with an equation if it appears to be some standard curve? For example, in the following picture, the curve looks like an ellipse or a ...

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

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

Bug with Json payload with diacritics for HTTPRequest

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

Working in the creations of APIs with Mathematica 12.2, I got this problem with diacritics when sending JSON data. Here is a toy code using httpbin.

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

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

How to plot a ”main effect” plot?

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

I’m trying to make a ”main effect” type chart but I haven’t found a way to do it in Mathematica. The main effect plots are the graphs plotting the means for each value of a categorical ...

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

answered by MassDefect https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=42264 11 votes

generating tuples of ones and zeroes with a fixed number of ones

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

I would like to generate all the tuples of ones and zeros of a given length and with a given number of ones without generating all the possible tuples, which is impossible for tuples of large enough ...

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

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

How to add an attractive potential (migration term) named component to Mass Transport PDE

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

Wolfram Mathematica 12.2 now features ”Named Partial Differential Equation Terms”

For specific physics fields, relevant PDE terms have been packaged as components and augmented with ...

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

answered by Tim Laska https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=61809 4 votes

1.9.2 Greatest hits from previous weeks

   Plotting the frequency spectrum of a data series using Fourier
   Is there something like DensityPlot3D to visualize atomic orbitals?
   xkcd-style Plots
   Generate a Unit Circle Trigonometry
   Calculate the 2D Fourier transform of an Image
   How can I plot implicit equations?
   Oak Island, extending the ”Alignment”, possible Great Circle?

Plotting the frequency spectrum of a data series using Fourier

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

testData = Table[N@Sin[500 x], {x, 0, 100}]; 
ListLinePlot[Abs[Fourier[testData]], PlotRange -> Full]

Gives me Which I do not expect because the Fourier ...

asked by C. E. https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=731 14 votes

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

Is there something like DensityPlot3D to visualize atomic orbitals?

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

I’m visualizing some hydrogen like atomic orbitals. For looking at plane slices of the probability density, the DensityPlot function works well, and with something ...

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

answered by xslittlegrass https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1364 25 votes

xkcd-style Plots

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

I received an email to which I wanted to respond with a xkcd-style graph, but I couldn’t manage it. Everything I drew looked perfect, and I don’t have enough command over ...

asked by Amatya https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=2039 622 votes

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

Generate a Unit Circle Trigonometry

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

Struggling often with Trigonometry I would like to have some code to generate this Unit Circle Trigonometry. Would be of great help when I need to transform some data :

asked by 500 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=172 18 votes

answered by Mark McClure https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=36 32 votes

Calculate the 2D Fourier transform of an Image

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

I am new to Mathematica, and using version 8.0.

I would like to calculate the 2D Fourier Transform of an Image with Mathematica and plot the magnitude and phase ...

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

answered by Nasser https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=70 33 votes

How can I plot implicit equations?

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

If you enter the following into Wolfram Alpha, you get nice graphs:

graph 4 x^4 + y^2 = 2 

How do you do this in Mathmatica? I realize that these are not ...

asked by Rollie https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=10174 39 votes

answered by Timothy Wofford https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=9391 40 votes

Oak Island, extending the ”Alignment”, possible Great Circle?

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

During these days of COVID, I indulged in the guilty pleasure of watching The Curse of Oak Island - Season 8, Episode 4 Alignment, which viewed last night (1 Dec 2020). During the episode, some ”...

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

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

1.9.3 Can you answer these questions?

   ColorFunction in ListContourPlot3D raising error when using more than one argument
   Autocomplete file argument for custom function
   Reduce the time to find six integer numbers so that the angle of two vectors equal to Pi/6

ColorFunction in ListContourPlot3D raising error when using more than one argument

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

The documentation of ColorFunction states that in ListContourPlot3D your chosen function gets the arguments ...

asked by Fidel I. Schaposnik https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=45839 1 vote

Autocomplete file argument for custom function

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

When typing Importin a notebook Mathematica suggests to autocomplete the file path you want to enter or choose a file using the GUI. Is there a way to let a ...

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

Reduce the time to find six integer numbers so that the angle of two vectors equal to Pi/6

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

I am trying to find six integer numbers a, b, c, x, y, z so that the angle of two vector {a, b, c ...

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

answered by Daniel Huber https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=46318 0 votes

1.10 Thursday, March 11, 2021

  1.10.1 Top new questions this week
  1.10.2 Greatest hits from previous weeks
  1.10.3 Can you answer these questions?

1.10.1 Top new questions this week

   Metropolis-Hastings Algorithm - Significantly slower than Python
   Manipulate for playing along with ”Deal or No Deal?”
   BoxWhiskerChart - how to show Quartile and other values
   Strictly Increasing Sequences of Length n in a List
   Wafer Chucking Model
   Art on Mathematica: How can I export 4K resolution png images?
   Skewed grid in plot

Metropolis-Hastings Algorithm - Significantly slower than Python

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

I would like to code a Metropolis Hasting algorithm and thought I would get the general scheme of things going with a toy example.

I think I got it running but my Mathematica code runs significantly ...

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

answered by Henrik Schumacher https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=38178 22 votes

Manipulate for playing along with ”Deal or No Deal?”

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

I started building this Manipulate and am certain I can do so on my own, but thought it was fun enough that others might want to try. (If this is some abuse of the ...

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

BoxWhiskerChart - how to show Quartile and other values

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

I have a question in respect of the BoxWhiskerChart. The default functionality of BoxWhiskerChart is that you mouse over it and ...

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

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

Strictly Increasing Sequences of Length n in a List

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

I need to determine how many strictly increasing sequences of a certain length (e.g. 5) are contained in a list of integers. I would be very happy if someone could help me. A sequence would be ...

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

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

Wafer Chucking Model

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

I am trying to calculate the pressure required to flatten a bowed wafer. The simple model I am using for the study has a bottom layer (the bowed wafer) pushed against a harder flat surface as shown in ...

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

answered by user21 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=18437 2 votes

Art on Mathematica: How can I export 4K resolution png images?

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

This question is solely based upon \([1]\) and therefore, the reading of \([1]\) could be interesting. How can I export the image created, by the code in the following, with high definition, beautiful, 4K ...

asked by M.N.Raia https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=71570 8 votes

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

Skewed grid in plot

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

Is is possible to add a skewed grid in a plot? Consider the following image;

The grey axes are the normal axes (\(\mathbf {e}_1\) and \(\mathbf {e}_2\)), the black axes are transformations \(\mathbf {e}'_1=2\)

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

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

1.10.2 Greatest hits from previous weeks

   Mathematica vs. Python - how does Mathematica compare to Python’s scientific computing suite?
   Exporting graphics to PDF - huge file
   How do I plot a plane EM wave?
   How to create animated snowfall?
   Image processing: Floor plan - detecting rooms’ borders (area) and room names’ texts
   Calculate the 2D Fourier transform of an Image
   What are the most common pitfalls awaiting new users?

Mathematica vs. Python - how does Mathematica compare to Python’s scientific computing suite?

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

Python’s family of packages for scientific computing has matured rapidly. I can pretty much replicate all of Mathematica’s functionalities, but with production level and open-source code using the ...

asked by M.R. https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=403 49 votes

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

Exporting graphics to PDF - huge file

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

I want to draw some basic surfaces, export them to PDF and include them in a LaTeX file. I create a simple 3D graphics object, for instance with

asked by Matthew Leingang https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=395 109 votes

answered by Heike https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=46 88 votes

How do I plot a plane EM wave?

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

I would like to display an electromagnetic (EM) wave. I have written code that works, but it does not ”shade” the area between the graph and the axes. Both the ...

asked by Rainforest Frog https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=202 22 votes

answered by J. M.’s ennui https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=50 16 votes

How to create animated snowfall?

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

Well, the title is self-explanatory. What sorts of snowfall can we generate using Mathematica? There are two options I suggest to consider:

1) Continuous GIF animations with smallest possible number ...

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

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

Image processing: Floor plan - detecting rooms’ borders (area) and room names’ texts

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

Here is a simple building floor plan. I would like to derive the rooms as (rectangular) components and the names of the rooms. This is very common representation of building floor plans.

The problem

asked by s.s.o https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=840 64 votes

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

Calculate the 2D Fourier transform of an Image

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

I am new to Mathematica, and using version 8.0.

I would like to calculate the 2D Fourier Transform of an Image¡ with Mathematica and plot the magnitude and phase ...

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

answered by Nasser https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=70 33 votes

What are the most common pitfalls awaiting new users?

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

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...

asked by Dr. belisarius https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=193 482 votes

answered by Michael E2 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=4999 288 votes

1.10.3 Can you answer these questions?

   Front-end rendering issues on Linux
   time series - minimum differencing order needed to remove the trend
   How does ‘TextureCoordinateFunction[]‘ works within ‘SurfaceAppearance[]‘?

Front-end rendering issues on Linux

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

I’m using Mathematica 12.2 on Ubuntu Mate 20.10 on an AMD FX(tm)-8120 with a GeForce GTX 1070 Ti NVIDA card. The issue is that I get unwanted horizontal lines just below the cell that I’m working on ...

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

time series - minimum differencing order needed to remove the trend

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

I was wondering how can I find What is the minimum differencing order needed to remove the trend in a time series? I have a a times series and a TimeSeriesModelFit, which is SARIMA model. I want to ...

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

How does ‘TextureCoordinateFunction[]‘ works within ‘SurfaceAppearance[]‘?

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

Following up from @kglr's answer here, I’d like to understand how TextureCoordinateFunction[] works within SurfaceAppearance[]. ...

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

1.11 Thursday, February 25, 2021

  1.11.1 Top new questions this week
  1.11.2 Greatest hits from previous weeks
  1.11.3 Can you answer these questions?

1.11.1 Top new questions this week

   Mathematica 12.1: Don’t use Accumulate or Differences on Around objects!
   How to enter a repeating decimal in Mathematica
   How to judge whether two groups of sequences are equal in cycles?
   Simplify 1+Sqrt[2]I-Complex[1,Sqrt[2]]
   How to correctly calculate the number of seating plans for the 4-couples problem?
   How to approximate \(PV\int _0^\infty \frac {\tan x}{x}\text {d}x?\)
   Mirror image of graph

Mathematica 12.1: Don’t use Accumulate or Differences on Around objects!

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

SUMMARY: If a List,TimeSeries etc. of Around objects contains any identical elements,

asked by Aaron Eiben https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=72186 14 votes

answered by Sjoerd Smit https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=43522 11 votes

How to enter a repeating decimal in Mathematica

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

I don’t understand how to manipulate numbers with repeating decimal in Wolfram Mathematica language. For example 0.3... does not work as input and I don’t see how ...

asked by Simpleton Jack https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=22399 9 votes answered by J. M.’s ennui https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=50 11 votes

How to judge whether two groups of sequences are equal in cycles?

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

There’s a set of arrays that I want to remove repeated elements that are equal after rotation:

asked by A little mouse on the pampas https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=42417 9 votes

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

Simplify 1+Sqrt[2]I-Complex[1,Sqrt[2]]

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

The expression 1+Sqrt[2]I-Complex[1,Sqrt[2]] should be zero. In fact, N[1+Sqrt[2]I-Complex[1,Sqrt[2]]] yields ...

asked by pdmclean https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=9154 7 votes answered by Michael E2 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=4999 10 votes

How to correctly calculate the number of seating plans for the 4-couples problem?

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

Four couples a are sitting around a round table, in which husband and wife can not be adjacent. How many different seating plans are there? I want to get as many simple calculations as possible.

asked by A little mouse on the pampas https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=42417 7 votes

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

How to approximate \(PV\int _0^\infty \frac {\tan x}{x}\text {d}x?\)

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

What’s the mathematica command to get the numerical value of :

   ∫  ∞ tanx
PV      --x--dx?
     0

where \(PV\) is the principal value.

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

answered by Michael E2 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=4999 7 votes

Mirror image of graph

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

I need to display a directed acyclic graph (say Hasse diagram of partial order) oriented with minimal elements at the bottom, maximal elements at the top as is conventional for Hasse diagrams. I tried ...

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

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

1.11.2 Greatest hits from previous weeks

   LaTeX and Mathematica
   What’s the most difficult multidimensional integral that Mathematica has solved?
   xkcd-style Plots
   Finding Limits in several variables
   How to use Mathematica functions in Python programs?
   Plot data from txt file?
   How to find integer solutions?

LaTeX and Mathematica

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

I quite often would like to draw graphics in my LaTeXdocuments using Mathematica. I have encountered three problems. I would like to know if there are any workarounds to these problems

I would ...

asked by Thomas Rot https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=227 127 votes

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

xkcd-style Plots

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

I received an email to which I wanted to respond with a xkcd-style graph, but I couldn’t manage it. Everything I drew looked perfect, and I don’t have enough command over ...

asked by Amatya https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=2039 620 votes

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

Finding Limits in several variables

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

Is there a way to find a limit of a multivariable function, like

   lim    f(x,y)
(x,y)→ (0,0)

with Mathematica?

When \(f\) is continuous, we can use

(x,yl)im→(0,0)f(x,y) =

asked by Dominic Michaelis https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5899 31 votes

answered by whuber https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=91 42 votes

How to use Mathematica functions in Python programs?

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

I’d like to know how can I call Mathematica functions from Python.

I appreciate a example, for example, using the Mathematica function Prime.

I had search about MathLink but how to use it in Python ...

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

answered by GarouDan https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1058 28 votes

Plot data from txt file?

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

I have data in file.txt which can be expressed by 20000x11 matrix. I do not want to import all of these data. How can I plot graph of the column 1 & column 4?

asked by Gokce https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1297 21 votes

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

1.11.3 Can you answer these questions?

   Idiomatic pattern for subtracting a function from a list
   How can I simplify a symbolic tensor expression?
   Nothing showing up on my LogLogPlots

Idiomatic pattern for subtracting a function from a list

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

I would like to know a more idiomatic way to subtract a function from a list of pairs than this: Table[point-{0,fitFunction[point[[1]]]}, {point,data}]

I use this ...

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

How can I simplify a symbolic tensor expression?

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

My question is about simplifying tensor expressions. If I have \((a+b)\otimes (c+d)\) The function TensorExpand gives \(a\otimes c + a\otimes d + b\otimes c + b\otimes \) ...

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

Nothing showing up on my LogLogPlots

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

I am trying to make 2 log log plots. One with each equation, a and g. I don’t know why, but the plot is not showing up. My notebook is in the link below. https://imgur.com/a/sXQX0YS

What am I doing ...

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

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

1.12 Thursday, February 18, 2021

  1.12.1 Top new questions this week
  1.12.2 Greatest hits from previous weeks
  1.12.3 Can you answer these questions?

1.12.1 Top new questions this week

   How to create a spiral using Golden Triangles
   How to modify default options of Dataset
   How to use Filling in PolarPlot?
   How to reduce timing to find the integer numbers a, b, c, d, e, f, g, h, k, m of this equation?
   How to extract a column (or a row) of a matrix as another column vector/ column matrix (or a row vector), not as a list?
   Intuitive explanation of RemoteBatchSubmit[] in AWS for total novices?
   Solving a 2D heat equation on a square with Dirichlet boundary conditions

How to create a spiral using Golden Triangles

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

Working with students in a pre-calculus class, an application of the sine law. They are working on a question that has them create a Golden Triangle (A golden triangle is an isosceles triangle in ...

asked by Tom De Vries https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=721 14 votes

answered by J. M.’s ennui https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=50 14 votes

How to modify default options of Dataset

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

I try to make a dark stylesheet based on the ReverseColor theme. However, dataset headers are barely readable.

This question is related to others such as Question ...

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

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

How to use Filling in PolarPlot?

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

For example: PolarPlot[{1, 1 + 1/10 Sin[10 t]}, {t, 0, 2 Pi}]

how to fill color in the space between 2 functions?

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

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

How to reduce timing to find the integer numbers a, b, c, d, e, f, g, h, k, m of this equation?

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

I use by hand to get this result

┌│  ------------∘---------------------------------------||
│         --|           --|  ∘ ---------|--∘---------||           -|
∘  48+ 5√ 3 +    27+ 4 √3  +   12+ 3 √3  +   4+  2√3     = 1 + 4√ 3

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

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

How to extract a column (or a row) of a matrix as another column vector/ column matrix (or a row vector), not as a list?

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

Suppose I have a matrix ’mat’ as

mat = Table[Subscript[m, i, j], {i, 5}, {j, 5}]; 
mat // MatrixForm

I want to extract the first column (or any row) as

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

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

Intuitive explanation of RemoteBatchSubmit[] in AWS for total novices?

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

When I read Wolfram’s post about the new features in MMA 12.2 I was intrigued by RemoteBatchSubmit[]. He wrote:

I have only ever used MMA from my laptop, and never used any other cloud computing or ...

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

Solving a 2D heat equation on a square with Dirichlet boundary conditions

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

I am trying to solve the following heat equation problem on the square [0,1]x[0,1]. 
\begin{equation*}  \begin{gathered}  u_t = u_{xx} + u_{yy} + f(x,y,t), \qquad  u(x,y,0) = 0, \qquad  u=0 \text{ on ...

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

answered by Nasser https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=70 7 votes

1.12.2 Greatest hits from previous weeks

   Crack CAPTCHA using deep learning
   How to make an inkblot?
   Generate a Unit Circle Trigonometry
   Exporting graphics to PDF - huge file
   How to make the digits of π go around in a spiral like this?
   How to create a new ”person curve”?
   How do I plot a plane EM wave?

Crack CAPTCHA using deep learning

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

Deep convolutional neural networks are very good at computer vision related tasks. Optical Character Recognition (OCR) is one important branch of computer vision. In fact, the convolution neural ...

asked by xslittlegrass https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1364 88 votes

answered by xslittlegrass https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1364 98 votes

How to make an inkblot?

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

How to effectively create a polygon that looks like a realistic inkblot? So far, I could come up with this (borrowing from Ed Pegg Jr.’s Rorschach demonstration):

asked by István Zachar https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=89 86 votes

answered by Sjoerd C. de Vries https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=57 51 votes

Generate a Unit Circle Trigonometry

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

Struggling often with Trigonometry I would like to have some code to generate this Unit Circle Trigonometry. Would be of great help when I need to transform some data :

asked by 500 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=172 18 votes

answered by Mark McClure https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=36 32 votes

Exporting graphics to PDF - huge file

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

I want to draw some basic surfaces, export them to PDF and include them in a LaTeX file. I create a simple 3D graphics object, for instance with

asked by Matthew Leingang https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=395 109 votes

answered by Heike https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=46 88 votes

How to make the digits of π 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 57 votes

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

How to create a new ”person curve”?

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

Wolfram—Alpha has a whole collection of parametric curves that create images of famous people. To see them, enter WolframAlpha["person curve"] into a Mathematica ...

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

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

How do I plot a plane EM wave?

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

I would like to display an electromagnetic (EM) wave. I have written code that works, but it does not ”shade” the area between the graph and the axes. Both the ...

asked by Rainforest Frog https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=202 22 votes

answered by J. M.’s ennui https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=50 16 votes

1.12.3 Can you answer these questions?

   Unpacking list of arguments into parameters
   Can one preset credentials for ServiceConnect[”Twitter”, ”New”] to allow wolframscript headless use?
   Warnings while solving a system of coupled differential equations

Unpacking list of arguments into parameters

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

I have a list in the following form:  list = {{a,1,3},{b,1,3},{c,1,3}}

Now I want to apply this list as parameters for the Sum function so that I end up with the ...

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

Can one preset credentials for ServiceConnect[”Twitter”, ”New”] to allow wolframscript headless use?

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

Trying to run some wolframscript code from a server, is it possible to set ServiceConnect credentials in the environmental variables for example?

asked by Tim https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=416 3 votes

Warnings while solving a system of coupled differential equations

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

I have a system of differential equations, given by

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

1.13 Thursday, February 11, 2021

  1.13.1 Top new questions this week
  1.13.2 Greatest hits from previous weeks
  1.13.3 Can you answer these questions?

1.13.1 Top new questions this week

   Mathematica cannot seem to properly handle times in the 1 hour before clocks go back
   Dataset Association of Association vs Hierarchical data
   Plot many curves on the same graph
   Is there any other way to access the n-th element of a BlankSequence?
   Periodic von Neumann neighbours
   Equivalent of numpy’s newaxis
   Plot[Im[f[x]],...] incorrectly gives graph of identical zero function

Mathematica cannot seem to properly handle times in the 1 hour before clocks go back

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

Using Chicago as an example; According to the current rules for applying daylight saving time, at 02:00:00 on the first Sunday of November, clocks in Chicago go back 1 hour (from Central Daylight Time ...

asked by RobertNathaniel https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=60404 24 votes

answered by Patrick Stevens https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=30771 22 votes

Dataset Association of Association vs Hierarchical data

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

I have the following dataset:

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

answered by WReach https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=142 13 votes

Plot many curves on the same graph

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

This plot has 40 curves on the same graph which makes it hard to see. I need to plot them on one graph. So I have an idea to plot to make it easier to see which one is larger or smaller in each range....

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

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

Is there any other way to access the n-th element of a BlankSequence?

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

Consider a named BlankSequence x__. How can I access the n-th element? 
Is {x}[[n]] the only ...

asked by Money Oriented Programmer https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=42141 8 votes

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

Periodic von Neumann neighbours

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

From Carl Woll’s answer here, I have this code for pulling the von Neumann neighbors:

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

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

Equivalent of numpy’s newaxis

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

Numpy has a newaxis object that allows you to insert a new dimension of length 1 into an array. So after ...

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

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

Plot[Im[f[x]],...] incorrectly gives graph of identical zero function

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

Consider

Plot[Im[(1 + (-1)^(2/3)*x)/((-1)^(2/3) + x)], {x, 0, 1}]

At least in Mma 11 it gives the following picture: Meanwhile,

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

1.13.2 Greatest hits from previous weeks

   How to create animated snowfall?
   Calling Correct Function for Plotting DiracDelta
   How to manipulate 2D plots?
   Using Export[] sends the file where?
   How can I reproduce this mandala with Mathematica?
   Mathematica Minecraft
   Plotting the frequency spectrum of a data series using Fourier

How to create animated snowfall?

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

Well, the title is self-explanatory. What sorts of snowfall can we generate using Mathematica? There are two options I suggest to consider:

1) Continuous GIF animations with smallest possible number ...

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

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

Calling Correct Function for Plotting DiracDelta

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

I am wondering what is the correct function in Mathematica to plot the true impulse function, better known as the DiracDelta[] function. When using this inside of a ...

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

answered by Heike https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=46 19 votes

How to manipulate 2D plots?

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

When it comes to visual analysis, large datasets or data with intricate internal details often makes plotting in 2D useless, as the outcome is either just a fraction of the full dataset, or no details ...

asked by István Zachar https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=89 137 votes

answered by IstvánZacharhttps://mathematica.stackexchange.com/landing/r/digest?cta=user&id=89 155 votes

Using Export[] sends the file where?

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

I am trying to use the Export command to convert a list of plots into a *.gif file, and the command runs and executes well, but I can’t find the file! Where is it ...

asked by Patrick Da Silva https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1785 37 votes

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

How can I reproduce this mandala with Mathematica?

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

I found this image on the Internet and it is very beautiful. How can I reproduce it? The ideal would be to be able to control the colors of the outside as well as the center.

asked by Susana https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=37778 14 votes

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

Mathematica Minecraft

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

Some time ago I asked myself: with all these great graphics and interactive capabilities of Mathematica, what kinds of 3D games can be implemented in it? And the answer which came to mind is ...

asked by faleichik https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=219 167 votes

answered by faleichikhttps://mathematica.stackexchange.com/landing/r/digest?cta=user&id=219 241 votes

Plotting the frequency spectrum of a data series using Fourier

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

testData = Table[N@Sin[500 x], {x, 0, 100}]; 
ListLinePlot[Abs[Fourier[testData]], PlotRange -> Full]

Gives me Which I do not expect because the Fourier ...

asked by C. E. https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=731 14 votes

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

1.13.3 Can you answer these questions?

   Fourier transform in polar coordinates using built-in hankel transform of the function constant 1
   Exponent combinations
   Plot derivative of a real function consisting of a complex function

Fourier transform in polar coordinates using built-in hankel transform of the function constant 1

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

Like in the table of transforms https://en.wikipedia.org/wiki/Fourier_transform#Distributions,_one-dimensional the FT (Fourier transform) of \(\delta \) is 1 and the FT of 1 is \(\delta \), but in polar ...

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

Exponent combinations

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

How can I have Mathematica represent the product of two different bases and exponents as a single power (where possible)? For example, see the product below can be expressed below:

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

Plot derivative of a real function consisting of a complex function

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

I obtained the data for the real and imaginary parts of a complex function \(A(x,t)=A_r(x,t)+i A_i(x,t)\) from NDSolve, both are functions of time \(t\) and space \(x\). ...

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

1.14 Thursday, February 4, 2021

  1.14.1 Top new questions this week
  1.14.2 Greatest hits from previous weeks
  1.14.3 Can you answer these questions?

1.14.1 Top new questions this week

   Confirm vs Throw
   How to use wolframscript to develop flexible command-line tools?
   Automatic Method for FindMinimum with constraints
   How to refine a boundary mesh with MeshRefinementFunction?w
   Ugly streaks caused by Arg in a contour plot
   Trying to Rotate the North Pole View of a Globe
   problem with DelaunayMesh 3D coordinates

Confirm vs Throw

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

Version 12.2 brought us Confirm and Enclose. What’s the point? Is it just that it’s a slightly more convenient syntax than ...

asked by Patrick Stevens https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=30771 13 votes

How to use wolframscript to develop flexible command-line tools?

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

I am currently changing a notebook into a wolframscript for a ”production” environment, where I plan to pack the script as a standard CLI tool. However I do not know how to implement such an ...

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

Automatic Method for FindMinimum with constraints

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

What is the default method used by FindMinimum with constraints? The documentation says:

”Currently, the only method available for constrained optimization is ...

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

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

How to refine a boundary mesh with MeshRefinementFunction?w

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

MeshRefinementFunction works well to refine elements in a defined spatial domain (here \(x>0\)):

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

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

Ugly streaks caused by Arg in a contour plot

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

I had a more general question about a similar problem more than two years ago, Getting rid of discontinuities in plots caused by square roots, logarithms, ‘Arg‘, etc, which got lots of interesting ...

asked by მამუკა ჯიბლაძე https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=35000 8 votes

answered by Michael E2 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=4999 11 votes

Trying to Rotate the North Pole View of a Globe

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

My goal is to generate diagrams like this.

But I would like to be able to rotate the globe about the North Pole, so that I can represent different times of the day. When I use ImageRotate, the ...

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

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

problem with DelaunayMesh 3D coordinates

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

I found DelaunayMesh works fine for 2D. For example,

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

answered by user21 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=18437 7 votes

1.14.2 Greatest hits from previous weeks

   Conversion of Sine to Cosine
   Extract real part of a complex expression better than Re does
   Assign the results from a Solve to variable(s)
   Why round to even integers?
   Using Export[] sends the file where?
   Formatting legend text font
   What do the X and Y axis stand for in the Fourier transform domain?

Conversion of Sine to Cosine

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

I’m solving equations with many Cosines and Sines. And I want to convert all the Sines to Cosines using trigonometric formulas such as cos(x)=sin(x+pi/2). How can I do this?

asked by YongCheol Kwon https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=23041 4 votes

answered by Sjoerd C. de Vries https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=57 2 votes

Extract real part of a complex expression better than Re does

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

I have a complex expression with real positive variables only.

Mathematica Input Style:

asked by max https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=796 34 votes

answered by nixeagle https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=814 53 votes

Assign the results from a Solve to variable(s)

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

I understand Mathematica can’t assign the results of a Solve to the unknowns because there may be more than 1 solution. How can I assign the 4 values of following result to variables?

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

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

Why round to even integers?

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

According to the Mathematica help: Round rounds numbers of the form x.5 toward the nearest even integer. For example:

Round[{0.5, 1.5, 2.5, 3.5, 4.5}]

gives

asked by wxffles https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=427 83 votes

answered by Per Alexandersson https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=488 51 votes

Using Export[] sends the file where?

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

I am trying to use the Export command to convert a list of plots into a *.gif file, and the command runs and executes well, but I can’t find the file! Where is it ...

asked by Patrick Da Silva https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1785 37 votes

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

Formatting legend text font

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

I am using this code to plot a graph, and I am trying to make the font of the legend bigger.

asked by Julia https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=525 20 votes

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

What do the X and Y axis stand for in the Fourier transform domain?

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

In Wolfram Mathematica the function Fourier has the following declaration

Fourier[list]

And after a list is given to the ...

asked by user253956 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=29958 27 votes

answered by Hugh https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=12558 61 votes

1.14.3 Can you answer these questions?

   RegionPlot of the Maximum of a function
   How to let Mathematica evaluate a large amount of data
   Directed Infinity vs Indeterminant in this output

RegionPlot of the Maximum of a function

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

For the function fun[a_, b_, x_, y_] = Sin[a x] Cos[b y] (a x + b y); corresponding to \(x\) and \(y\), I need a RegionPlot showing the maximum of function \(fun[a, b, x]\)

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

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

How to let Mathematica evaluate a large amount of data

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

I have the following code in mathematica which runs perfectly for a small matrix of 21 x 12 matrix. But I really want to test it for a large system. My data is 35844 x 21000 elements, totaling 1.5 GB. ...

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

Directed Infinity vs Indeterminant in this output

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

When I evaluate

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

1.15 Thursday, January 28, 2021

  1.15.1 Top new questions this week
  1.15.2 Greatest hits from previous weeks
  1.15.3 Can you answer these questions?

1.15.1 Top new questions this week

   What’s the difference between these 2 associations?
   How can I handle graphics or artworks with millions of points?
   ContourPlot3D, grid of cylinders
   Distorting image to ensure consistent vanishing point
   Export infinite looping GIFs by default
   Replace a color in image with hatchfilling
   MeshRefinementFunction on 2D surfaces embedded in 3D

What’s the difference between these 2 associations?

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

I have 2 associations similar to these simplified ones:

asked by Coolwater https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=9754 16 votes

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

How can I handle graphics or artworks with millions of points?

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

As a hobby, I am trying to use Mathematica and Wolfram Language as a tool for making generative artworks. Generative art techniques may require drawing millions of points, lines, or curves. For ...

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

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

ContourPlot3D, grid of cylinders

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

I am trying to make a 3D contour plot that looks like a grid of cylinders to represent the Fermi surface of a metal, like below:

I have no problem generating something that kind of looks like it.

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

answered by cvgmt https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=72111 13 votes

Distorting image to ensure consistent vanishing point

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

Here’s Giorgio de Chirico’s painting, Ariadne:

The Surrealist artist deliberately broke the rules of geometric perspective, giving the work his characteristic sense of mystery and unease. What would ...

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

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

Export infinite looping GIFs by default

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

frames=Table[Plot[Sin[x(1+a x)],{x,0,6}],{a,0,2,0.2}]; 
Export["test.gif",frames]

The above code runs in version 9.0 to get a infinite looping GIF ...

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

answered by Kuba https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5478 7 votes

Replace a color in image with hatchfilling

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

Is it possible to identify a color (say grey in a 3 color Black, Gray and White image) and ...

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

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

MeshRefinementFunction on 2D surfaces embedded in 3D

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

DiscretizeRegion doesn’t seem to run the supplied MeshRefinementFunction when meshing a 2D surface in 3D. For example:

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

answered by Tim Laska https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=61809 3 votes

1.15.2 Greatest hits from previous weeks

   How do I identify the source of a ”Tag times protected” error?
   Labeling individual curves in Mathematica
   How to add a vertical line to a plot
   Drawing a square root spiral
   Multivariable Taylor expansion does not work as expected
   Solving \(L=\frac {3}{2} \sqrt {4 \pi ^2 A^2+W^2}-\frac {\sqrt {5 W \sqrt {4 \pi ^2 A^2+W^2}+6 \pi ^2 A^2+3 W^2}}{\sqrt {2}}+\frac {3 W}{2}\) for \(W\)
   Mathematica command that allows it to read my intentions

How do I identify the source of a ”Tag times protected” error?

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

I have some code that looks like

Table[ 
    a = 1; 
    b = {2, 3} 
    c = i;, 
    {i, 2} 
] 
 
which gives an error: 
  Set::write: Tag Times in c {2,3} is Protected....

asked by dearN https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=204 29 votes

answered by Mr.Wizard https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=121 35 votes

Labeling individual curves in Mathematica

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

I need to create a plot for export and inclusion in a report. Is there a better way to label curves than PlotLegends? From what I’ve read and my personal experience,...

asked by Tianxiang Xiong https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1041 63 votes

answered by Artes https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=184 47 votes

How to add a vertical line to a plot

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

In the plot below I would like to add two vertical lines at \(x = \frac {\pi }{15} \pm \frac {1}{20}\). How can I do that?

asked by sjdh https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=515 61 votes

answered by Ajasja https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=745 82 votes

Drawing a square root spiral

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

Here is a start. I’m looking for a nice way to draw it.

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

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

Multivariable Taylor expansion does not work as expected

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

The basic multivariable Taylor expansion formula around a point is as follows:

asked by matheorem https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=4742 63 votes

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

Solving \(L=\frac {3}{2} \sqrt {4 \pi ^2 A^2+W^2}-\frac {\sqrt {5 W \sqrt {4 \pi ^2 A^2+W^2}+6 \pi ^2 A^2+3 W^2}}{\sqrt {2}}+\frac {3 W}{2}\) for \(W\)

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

When I solve the aforementioned equation for \(W\) or \(A\) on Mathematica I get a long and ugly equation in return, namely one of the solutions for \(W\) is: (attempt to read at your own health)

asked by J.D’Almbert https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=19257 8 votes

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

Mathematica command that allows it to read my intentions

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

In version 2.0 of Mathematica there was a command, ReadProgrammerIntentions[ ] which allowed it rapidly compose code that could solve problems simple to complex, ...

asked by MikeY https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=47314 52 votes

answered by MarcoB https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=27951 38 votes

1.15.3 Can you answer these questions?

   How to improve this code?
   Error on DSolve
   Remove defect of display in ListDensityPlot3D

How to improve this code?

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

The aim of my work is to find a value for the complex constant \(\omega \). In order to do that I solve the below system of differential equations with a manual shooting method: I first solve the system ...

asked by mattiav27 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=8822 3 votes

Error on DSolve

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

I’ve been trying to solve this initial value problem using DSolve[]:

dy
-dt = 1+ tsin(ty),  y(0) = 0,  t = [0,2]

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

answered by Mariusz Iwaniuk https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=26828 0 votes

Remove defect of display in ListDensityPlot3D

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

I have a 3D volumetric data (for example, \(64\times 64\times 64\), at each point there is a value) read in from a file and I want to use ListDensityPlot3D to ...

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

1.16 Thursday, January 21, 2021

  1.16.1 Top new questions this week
  1.16.2 Greatest hits from previous weeks
  1.16.3 Can you answer these questions?

1.16.1 Top new questions this week

   How can I use Mathematica to solve a complex truth-teller/liar logic problem?
   list-array construction
   why do these two Meijer G functions not cancel each other?
   How to partition a square into successive halves
   Ignoring fractions can lead to correct answer
   Context Manipulation within Scoping Constructs
   Why does NMinimize not follow MaxIterations?

How can I use Mathematica to solve a complex truth-teller/liar logic problem?

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

I have a logic puzzle I want to convert to Mathematica to solve: Person A states, ”Exactly two people are truth-tellers,” Person B states, ”I and Person C are truth-tellers.”

asked by Peter Burbery https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=76873 16 votes

answered by SneezeFor16Min https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=69875 19 votes

list-array construction

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

I want to create the list ix={1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4} I can do

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

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

why do these two Meijer G functions not cancel each other?

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

I encountered such expressions in Mathematica MeijerG[{{ }, {1, c + 1/2}}, {{0, c, c, c}, { }}, 1] + MeijerG[{{1}, {c + 1/2}},    {{c, c, c},    {0}}, 1]

which in ...

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

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

How to partition a square into successive halves

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

I am teaching the idea of infinite geometric series to high school students, looking for hints to create the diagram below using Mathematica. (I don’t need the labels). I can do it manually, but ...

asked by Tom De Vries https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=721 7 votes

answered by J. M.’s ennui https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=50 9 votes

Ignoring fractions can lead to correct answer

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

There is a curious example in Posamentier’s book ”Magnificent Mistakes in Mathematics” (p. 72): \((7+3/7)*(4-3/13)= 7*4=28\), where cancelling the fractions leads to correct result. If we ...

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

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

Context Manipulation within Scoping Constructs

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

In the following the full context form of Test is not required as "Aaa`" is added to ...

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

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

Why does NMinimize not follow MaxIterations?

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

...

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

answered by Anton Antonov https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=34008 4 votes

1.16.2 Greatest hits from previous weeks

   Is it possible to export the equations from Mathematica to MATLAB?
   How to ask Mathematica to imitate Andy Warhol’s pop-art painting?
   How to plot an ellipse?
   What’s the most difficult multidimensional integral that Mathematica has solved?
   Even Fibonacci numbers
   Find eigen energies of time-independent Schrödinger equation
   Standard deck of 52 playing cards in curated data?

Is it possible to export the equations from Mathematica to MATLAB?

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

Is it possible to export the output expressions from Mathematica computations (e.g., equations) in valid MATLAB syntax?

asked by Seyhmus Güngören https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=4256 43 votes

answered by rm -rf https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5 48 votes

How to ask Mathematica to imitate Andy Warhol’s pop-art painting?

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

I tried to ask Mathematica to imitate Andy Warhol, let it convert a Marilyn Monroe’s portrait so that it looks like Warhol’s world famous pop-art painting. However, the result shown below is far from ...

asked by Putterboy https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=16069 52 votes

answered by Dr. belisarius https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=193 67 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 18 votes

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

Even Fibonacci numbers

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

Today, I found the Euler Project. Problem #2 is

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:

asked by xyz https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=9627 34 votes

answered by rcollyer https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=52 46 votes

Find eigen energies of time-independent Schrödinger equation

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

I’m trying to get the eigenvalues of a one dimensional time-independent Schrödinger equation,

\(-\frac {h^2}{2m_0}\frac {d^2\psi }{dx^2}+U(x)~\psi =Ei~\psi \)

where U(x) is some potential and Ei is the ...

asked by xslittlegrass https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1364 49 votes

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

Standard deck of 52 playing cards in curated data?

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

I am not sure how to find out what all is included as curated data. For example, are the individual images of each of the 52 cards in a standard deck of playing cards included?

If not, is there a way ...

asked by JohnD https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1629 25 votes

answered by rm -rf https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5 23 votes

1.16.3 Can you answer these questions?

   ListDensityPlot3D with x-axis in logscale
   Trying to solve a PDE — getting warnings I don’t understand
   How can we improve transonic flow visualization?

ListDensityPlot3D with x-axis in logscale

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

Starting from a data set like the one used in this post: Importing and visualizing 4D data DATA It can be viewed using ListDensityPlot3D, as follows:

asked by Ivan Y. Forero https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=76882 1 vote

Trying to solve a PDE — getting warnings I don’t understand

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

Consider the partial differential equation

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

How can we improve transonic flow visualization?

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

With this code we can make 2D FEM simulation of transonic flow around airfoil NACA 0012 at Mach number of 0.925. It takes about 5 minutes on the XENIA-15 laptop of 32 GB memory with processor Intel ...

asked by Alex Trounev https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=58388 4 votes

1.17 Thursday, January 14, 2021

  1.17.1 Top new questions this week
  1.17.2 Greatest hits from previous weeks
  1.17.3 Can you answer these questions?

1.17.1 Top new questions this week

   Faster ”Closest Pair of Points Problem” implementation?
   Broken ValueQ function in Mma12.2?
   Graphics not correctly produced when saving to PDF in Version 12
   MoleculePlot draws sucrose benzoate with overlapping bonds
   How to globally disable and re-enable Echo?
   Compile - Optimization of function calls - does it matter?
   neighbouring pixels : next smaller and bigger perimeter

Faster ”Closest Pair of Points Problem” implementation?

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

The closest pair of points problem is a common computational geometry problem: given n points, find a pair of points with the smallest distance between them. A naive algorithm of finding distances ...

asked by Aaron T. Becker https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=76690 17 votes

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

Broken ValueQ function in Mma12.2?

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

f[x] ^= 1; 
ValueQ[g[x]]

returns True in Mathematica 12.2. Is it a bug?

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

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

Graphics not correctly produced when saving to PDF in Version 12

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

12.0.0 for Microsoft Windows (64-bit) (April 6, 2019) How do I get my graphic to look the same in PDF as it does in a Notebook? This is what the graphic looks like in the FrontEnd:

This is how the ...

asked by Steven Thomas Hatton https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=44139 10 votes

answered by MelaGo https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=63360 13 votes

MoleculePlot draws sucrose benzoate with overlapping bonds

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

Recently I learned that in Mathematica it is possible to create chemical structures here: Chemical formulas with Mathematica I am having a problem with a structure called ”Sucrose benzoate”

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

answered by Jason B. https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=9490 9 votes

How to globally disable and re-enable Echo?

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

I have Echo’s buried in code all over my notebook, I’d like a flag to turn them all on or off globally.

Sure Unprotect[Echo];Echo=Identity would disable them, but ...

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

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

Compile - Optimization of function calls - does it matter?

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

I was surprised to see that, in the results of CompilePrint for a function made with Compile, calls to ...

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

answered by Sean https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=76328 2 votes

neighbouring pixels : next smaller and bigger perimeter

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

I have a list of pixels centers, for example :

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

answered by C. E. https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=731 7 votes

1.17.2 Greatest hits from previous weeks

   How to make Jacobian automatically in Mathematica
   Plotting Complex Quantity Functions
   QR Code in shopping cart handle
   How do I plot a plane EM wave?
   Standard deck of 52 playing cards in curated data?
   Why I get the ”Set::write: ”Tag Times in is Protected.” error?
   Mathematica vs. Python - how does Mathematica compare to Python’s scientific computing suite?

How to make Jacobian automatically in Mathematica

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

If we have two vectors, \(a\) and \(b\), how can I make Jacobian matrix automatically in Mathematica?

$$ a=\left( 
\begin{array}{c} 
 x_1^3+2x_2^2 \\ 
 3x_1^4+7x_2 
\end{array} 
\right);b=\left( 
\begin{array}{...

asked by George Mills https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1012 39 votes

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

Plotting Complex Quantity Functions

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

Trying to plot with complex quantities seems not to work properly in what I want to accomplish. I would like to know if there is a general rule/way of plotting when you have complex counterparts in ...

asked by night owl https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=116 42 votes

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

QR Code in shopping cart handle

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

This week, the market people from my work wanted to put QR codes in shopping cart handles, but when they tested it, the QR code did not work. I noted that the cylindrical curvature (even small) ...

asked by Murta https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=2266 196 votes

answered by halirutan https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=187 192 votes

How do I plot a plane EM wave?

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

I would like to display an electromagnetic (EM) wave. I have written code that works, but it does not ”shade” the area between the graph and the axes. Both the ...

asked by Rainforest Frog https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=202 22 votes

answered by J. M.’s ennui https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=50 16 votes

Standard deck of 52 playing cards in curated data?

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

I am not sure how to find out what all is included as curated data. For example, are the individual images of each of the 52 cards in a standard deck of playing cards included?

If not, is there a way ...

asked by JohnD https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1629 25 votes

answered by rm -rf https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5 23 votes

Why I get the ”Set::write: ”Tag Times in is Protected.” error?

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

Why I get the error below with this code:

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

answered by Mark McClure https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=36 13 votes

Mathematica vs. Python - how does Mathematica compare to Python’s scientific computing suite?

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

Python’s family of packages for scientific computing has matured rapidly. I can pretty much replicate all of Mathematica’s functionalities, but with production level and open-source code using the ...

asked by M.R. https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=403 49 votes

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

1.17.3 Can you answer these questions?

   NDSolve - interpolation or machine precision problem
   Matrix regularization, how to pick \(\lambda \)
   Memory consuming Expand

NDSolve - interpolation or machine precision problem

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

For the following equations;

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

Matrix regularization, how to pick \(\lambda \)

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

Since v12 FindFit[] now supports regularisation, such as Tikhonov regularization. Do there exist statistics to help guide the choice of the hyper-parameter

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

Memory consuming Expand

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

Expand floods all my 64GB RAM in MMA 12.1 (Windows). Therefore I cannot run the code. Somebody with ¿64GB RAM could give the result. A memory saving alternative ...

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

1.18 Thursday, January 7, 2021

  1.18.1 Top new questions this week
  1.18.2 Greatest hits from previous weeks:
  1.18.3 Can you answer these questions?

1.18.1 Top new questions this week

   Why MMA refuses to simplify the following simple expression?
   Simplifying code that displays a square rolling inside a circle
   Trying to build a code to translate handwritten formulas using ML
   How to define a function reminding of names of the independent variables?
   Improve running speed for DeleteDuplicates
   Why does Mathematica try to take the first element of the empty list when plotting?
   Why do the frame ticks disapear when a plot is exported as PNG?

Why MMA refuses to simplify the following simple expression?

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

I have the following simple expression Exp[(Log[1 + x]^2 - Log[x]^2)/Log[1 + 1/x]] - x^2

that can be shown to simplify to \(x\)

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

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

Simplifying code that displays a square rolling inside a circle

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

The vertex A,B of the square ABCD with side length \(\sqrt {2}\) is on the circle with radius \(\sqrt {2}\), vertex C,D is inside the circle, roll the square ABCD along the inside of the circle ...

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

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

Trying to build a code to translate handwritten formulas using ML

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

I’m lazy writing equations in Latex so I want a code to translate handwritten equations. This question is related to an old experiment I’m reviewing during vacations, here. I’m trying to use ...

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

How to define a function reminding of names of the independent variables?

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

I am using a function with a lot of variables. There are 9 and sometimes more of them. In this case, it is difficult to memorize, which one stays on the, say, fourth position, and which one - on the ...

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

answered by CA Trevillian https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=63039 2 votes

Improve running speed for DeleteDuplicates

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

How to make this faster? I want to remove elements that satisfy the condition below but it’s way too slow.

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

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

Why does Mathematica try to take the first element of the empty list when plotting?

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

I’m using Mathematica 12.1.1.0. When I enter

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

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

Why do the frame ticks disapear when a plot is exported as PNG?

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

I am using M12.0.0.0 on Ubuntu and I have these two plots:

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

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

1.18.2 Greatest hits from previous weeks:

   What do the X and Y axis stand for in the Fourier transform domain?
   How can I plot the direction field for a differential equation?
   Is Mathematica worth it for me?
   How to ask Mathematica to imitate Andy Warhol’s pop-art painting?
   Figuring when the minute and hour hand coincide on a clock
   Conversion of Sine to Cosine
   Finding unit tangent, normal, and binormal vectors for a given r(t)

What do the X and Y axis stand for in the Fourier transform domain?

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

In Wolfram Mathematica the function Fourierhas the following declaration

Fourier[list]

And after a list is given to the ...

asked by user253956 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=29958 27 votes

answered by Hugh https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=12558 61 votes

How can I plot the direction field for a differential equation?

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

I’d like to plot the graph of the direction field for a differential equation, to get a feel for it. I’m a novice, right now, when it comes to plotting in Mathematica, so I’m hoping that someone can ...

asked by Matt Groff https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=1735 31 votes

answered by Peter Breitfeld https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=307 25 votes

Is Mathematica worth it for me?

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

I’m 13 years old and in 7th grade. I’m currently in Algebra 1, and I have fallen in love with both math and programming.

When I came upon Mathematica, it was awesome. My two favorite things fused ...

asked by Nico A https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=35769 81 votes

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

How to ask Mathematica to imitate Andy Warhol’s pop-art painting?

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

I tried to ask Mathematica to imitate Andy Warhol, let it convert a Marilyn Monroe’s portrait so that it looks like Warhol’s world famous pop-art painting. However, the result shown below is far from ...

asked by Putterboy https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=16069 52 votes

answered by Dr. belisarius https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=193 67 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

Conversion of Sine to Cosine

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

I’m solving equations with many Cosines and Sines. And I want to convert all the Sines to Cosines using trigonometric formulas such as cos(x)=sin(x+pi/2). How can I do this?

asked by YongCheol Kwon https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=23041 4 votes

answered by Sjoerd C. de Vries https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=57 2 votes

Finding unit tangent, normal, and binormal vectors for a given r(t)

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

For my Calc III class, I need to find \(T(t), N(t)\), and \(B(t)\) for \(t=1, 2\), and \(-1\), given \(r(t)=\{t,t^2,t^3\}\).

I’ve got Mathematica, but I’ve never used it before and I’m not sure how to coerce ...

asked by a98 https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=5605 30 votes

answered by Artes https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=184 44 votes

1.18.3 Can you answer these questions?

   Numerically obtaining inverse 2D Laplace transform
   How to determine population from a list of arbitrary jurisdictions (cities, states, counties, et al.)?
   Computing correspondences between two images

Numerically obtaining inverse 2D Laplace transform

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

I wonder if there is a function in Mathematica (or code) that can help obtaining inverse 2D Laplace transform of a function, f(s1,s2) which is the 2D Laplace transform of a function F(t1,t2) in (s1,s2)...

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

How to determine population from a list of arbitrary jurisdictions (cities, states, counties, et al.)?

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

I am an aspiring data scientist who’s working on a passion project, namely to assign danger-level scores to police departments in the United States. One specific metric I’m developing results from ...

asked by uselesslemma https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=72297 3 votes

answered by George Varnavides https://mathematica.stackexchange.com/landing/r/digest?cta=user&id=41179 0 votes

Computing correspondences between two images

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

A classic problem in computer vision is computing correspondences between keypoints in two similar images, despite modest variations in size, lightness, orientation, etc., of the images, as ...

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