6 votes
Accepted

Improve performance of Linear Optimization

For machine precision numbers, the actual backend of LinearOptimization will be some compiled and heavily optimized library. Such libraries require the problem to ...
Henrik Schumacher's user avatar
4 votes
Accepted

How to find a densest configuration of several non-overlapping unit disks?

We try to manually construct the convex hull. ...
cvgmt's user avatar
  • 61.3k
4 votes

Why can't NSolve find values that FindInstance can?

Use FindRoot ...
Bob Hanlon's user avatar
  • 149k
3 votes

`FindMinimum` can't evaluate `Nearest` numerically

$Version (* "13.3.1 for Mac OS X ARM (64-bit) (July 24, 2023)" *) Clear["Global`*"] Nearest is already ...
Bob Hanlon's user avatar
  • 149k
3 votes
Accepted

What are some ways to speed up calculations

These can be calculated once: Bs = {0, 0.5, 1, 2, 5, 7}; entable = Table[en[B], {B, Bs}]; Then using the pre-calculated table ...
MelaGo's user avatar
  • 6,831
2 votes

How to do edge detection in Mathematica?

ImageLines will be troublesome on this processing especially for the "empty" image where many horizontal lines can be found and ranked nearly equivalently. I suggest attempting to determine ...
OpticsMan's user avatar
  • 560
2 votes
Accepted

Plot several graphs of a function density distribution using Table

DensityPlot has the Attibute "HoldAll": Attributes[DensityPlot] {HoldAll, Protected, ReadProtected} Therefore, if you want to evaluate "ps[B]" ...
Daniel Huber's user avatar
  • 45.4k
2 votes

Finding a fixed point of function without a closed-form solution

The function f2 is undefined for a == 0 ...
Bob Hanlon's user avatar
  • 149k
2 votes

I am trying to plot the function below, however, it does not seem to be working

Remove the "underscores" in the plot-command! Try f[x_] = Integrate[(7 + 9 x)/(1 + x^2), x] Plot[f[x],{x,-5,5}]
Ulrich Neumann's user avatar
2 votes

Using GraphicsGrid for density plots with color scales

Graphics and Inset give you more control, e.g. ...
Chris Degnen's user avatar
  • 30.6k
2 votes

Why can't NSolve find values that FindInstance can?

NSolve work if we use infinite precision number n,x,eps. ...
cvgmt's user avatar
  • 61.3k
1 vote

How to calculate the depth of the lake in mathematica?

We can use a combination of GeoNearest and Entity: I use the center of your map: ...
Greg Hurst's user avatar
  • 35.2k
1 vote

How to find a densest configuration of several non-overlapping unit disks?

Your method would not work because of: ConvexHullRegion is imprecise (even WorkingPrecision has no effect in ...
azerbajdzan's user avatar
  • 7,044
1 vote

How to do edge detection in Mathematica?

Edited to use the new "empty" image I would start by converting images to greyscale: greyimgs = Table[ColorConvert[i, "Grayscale"], {i, imgs}] ...
MelaGo's user avatar
  • 6,831
1 vote

How to make a density plot for an isotropic function written in cylindrical coordinates?

You just need to define the function you want and use one of the following Mathematica functions. If I understand what you are asking for ...
Athanasios Paraskevopoulos's user avatar
1 vote

Using UnrankPermutation with Maximize

This works in 13.3 on Windows 10 with NMaximize instead of Maximize. ...
user64494's user avatar
  • 23.2k

Only top scored, non community-wiki answers of a minimum length are eligible