Questions tagged [code-request]
Questions on finding existing Mathematica implementations or expertise to address a clearly stated problem.
558 questions
1
vote
0
answers
58
views
ToRules that preserves conditions that cannot be written as Rules
I would love to have a ToRules that can act on say Reduce output that preserves conditions that cannot be written as rules. Something that creates something like
...
1
vote
0
answers
110
views
Solution of the system of Equations using iterative Varga's Algorithm?
I am working on research article with link https://www.sciencedirect.com/science/article/abs/pii/S0378475421004560
It contains dimensionless non-linear equations mentioned in article.
I am writing the ...
5
votes
3
answers
306
views
High Performance Polygon Union
I need to find solution to combine large numbers of intersecting polygons, much faster than Mathematica's RegionUnion, so I'm looking at how to use external ...
3
votes
2
answers
338
views
Measure if lines nearby others are brighter
I have a dataset of wires
...
1
vote
1
answer
171
views
Alternative way to invert series mathematica
I tried inverting a series in mathematica, code will be provided below, but when I go and check to see if the series I obtained is a decent approximating inverse I get completely different results. I ...
0
votes
1
answer
192
views
Trying to invert a series in Mathematica
I have the function J in two variables $m$ and $l$, which I obtained doing a series for $e$ and replacing $m \rightarrow e\cdot m$ and $l\rightarrow e\cdot l$, given by
\begin{align}
J(l,m):=& -2 \...
-2
votes
1
answer
164
views
Solving a Partially Filled 4×4 Magic Square [closed]
A magic square is a mathematical game with a long history. It requires that the sum of the numbers in each row, each column, and both diagonals be equal, and that each number in the grid be unique. ...
0
votes
0
answers
88
views
How to design code for solution of the system of Equations?
I am studying a research article of fluid mechanics with title ``Influence of mixed convection nanofluid flow over a rotating sphere in
the presence of diffusion of liquid hydrogen and ammonia''
The ...
1
vote
1
answer
610
views
Round Cut diamond 3D
Does Mathematica have the ability to create 3D graphics for round-cut diamonds?
Or can I import and export from solidworks.
Thank you for your time.
11
votes
9
answers
1k
views
Determine two ellipses common tangent via projective geometry + dual conics + linear algebra
Suppose we have two ellipses. The goal is to find their common tangents.
Consider these toy models:
...
5
votes
1
answer
153
views
is there a way to use PlotLayout option in the ListPlot environment and produce each plot in different colours?
Suppose I have the following data file, which I need to plot using the ListPlot with option PlotLayout -> "Row"
<...
3
votes
3
answers
362
views
Finding the maximum number of times a line can interesect with a list of points?
Suppose $f:\mathbb{Q}\cap[0,1]\to\mathbb{Q}\cap[0,1]$, where $f(p/q)=(p+q)/(pq)$ for integers $p$ and $q$.
Question: How do we find the maximum times a non-vertical line with a fixed slope can ...
5
votes
1
answer
205
views
Returning a sequence from a function
Let's say I want to take this plot:
r = 3;
DensityPlot[x^2 + y^2, {x, -r, r}, {y, -r, r}]
and make the x and y limits be returned from some function (maybe because ...
0
votes
1
answer
155
views
Converting HurwitzZeta function to PolyGamma function
A generalization produces a result in terms of Zeta[s,a] function, which can be converted to PolyGamma[s-1,a] using the ...
0
votes
0
answers
132
views
Implementing Robin and Dirichlet boundary conditions
I am trying to solve this second order ODE.
This is done by utilizing these two boundary conditions, first being a Dirichlet boundary at one of the edge, xb.
The second boundary condition is the ...