All Questions
84,387
questions
0
votes
0
answers
11
views
Why is my svg image composed of surfaces instead of lines?
I'm trying to export this plot in svg format.
However, if you analyze the exported svg image, you would see that they're composed of surfaces instead of lines like this:
I suspect that this is the ...
0
votes
0
answers
14
views
Solution such that an inequality is true in the whole domain
How to find out when an inequality is always true in a given domain? I give an example below.
I would want to find $b(a)$ such that the following is always true:
$\quad~x + a > bx$, where $0 < x ...
-2
votes
0
answers
22
views
Least norm solution to a set of linear equations
Suppose I have a set of linear equations $M x = y$ where there are infinitely many solutions. I want to find a solution $x$ with the smallest $l_2$ norm $\|x\|_2$. Is there an efficient way to do this?...
10
votes
1
answer
56
views
Why does one need to restart the PC now after installing V 13.1?
I've installed Mathematica new releases before on my PC.
This is the first time it asks to restart the PC at the end of the installation of V 13.1. This is on windows 10.
The question is, why in this ...
0
votes
0
answers
10
views
How to measure a LearnedDistribution?
I would like to measure the qualities of a LearnedDistribution in general and with regard to test sets. The docs say that it takes an option ValidationSet, but ...
-1
votes
0
answers
39
views
efficient code to search for formulas for calculating primes
I had an idea for calculating primes using smaller primes given the following:
p1=(p2-p3/p4)+(p5-p6/p7)
where p1>p5>p2 and p2>p3>p4 and p5>p6>p7 and p1 through p7 are all prime ...
3
votes
1
answer
29
views
Plotting a table with one x-value and multiple y-values
I have a table which reads
...
0
votes
0
answers
34
views
How to simplify a formula with integrations by parts?
I have a huge expression to compute, which contains lots of different terms composed of multiplication of various functions, derived a certain number of times (non derived, derived once or twice). For ...
0
votes
0
answers
24
views
Calling Mathematica functions from Node js project. Similar to .NET by making Mathematica Kernel? [closed]
How to call Mathematica functions from my Node js project?
Is there any way I can do it like we do in .NET by making mathematica kernel?
0
votes
1
answer
61
views
How to add arrowhead for axes in frame?
How can I add arrows for axes of frame?
This works well if there is no frame but it doesn't work when I added frame.
...
3
votes
2
answers
45
views
How can I flip/mirror the legend? [duplicate]
How can I flip/mirror the legend like this? The text should be right aligned and if the text is longer than the text move to the left.
...
1
vote
0
answers
25
views
How to middle align text and the markers and place the legends for this?
How can I middle align the legends and markers? Changing the font size make it not aligned.
...
1
vote
2
answers
164
views
How to plot the data where y is a function?
how can I plot the data (x,y)by knowing a and b and x values?
x = {0.2, 11, 16};
y = Exp[(-a*x - b*x^2)];
a = {0.510, 0.280, 0.250};
b = {0.380, 0.240, 0.330};
5
votes
1
answer
58
views
Animating a Sphere Eversion (Turning a sphere inside out)
I'm interested in animating a sphere eversion like the one shown in the following gif.
The full video is here: https://www.youtube.com/watch?v=OI-To1eUtuU
Normally, I would offer my own code as a ...
0
votes
1
answer
31
views
How to project a 2D region from one plane to another?
I have one of a general set of 2D regions (Disk, Rectangle, Polygon, etc.), as well as 3D origin points and normal vectors defining two reference planes/coordinate systems. I also have a x vector ...
0
votes
2
answers
47
views
Remove Outliers in BoxWhiskerChart
Is it possible to automatically remove the outliers that are detected by "Outliers" within BoxWhiskerChart? Somehow <...
5
votes
1
answer
121
views
Finding eigenvectors of a symbolic matrix
I have a $2\times 2$ symbolic matrix for which I want to compute the eigenvalues. It is given as:
Clear[a, b, m]
m={{a, b}, {b, -a}}
and it spits out the ...
3
votes
0
answers
31
views
Get different results when evaluating indefinite integral multiple times
I'm trying to evaluate the following indefinite integral in Mathematica:
Integrate[Exp[(k + g) t]/(1 + Exp[k t])^3, t]
When evaluating the integral multiple times ...
2
votes
0
answers
45
views
How do I import a file only when it is modified?
I am trying to create a Dynamic code that will Import the contents of file only if it has been modified. I tried the following ...
0
votes
0
answers
31
views
Variable orders in NonlinearModelfit
I am fitting a dataset for three parameters using NonlinearModelfit. NonlinearModelFit[dataset,{Fitformula},{a,b,c},{x}] where the Fitformula is like $Fitformula=ax^...
0
votes
0
answers
26
views
Nonnumerical result when using NIntegrate on piecewise interpolation function
Disclaimer: I'm relatively new to Mathematica.
I'm numerically solving a differential equation using NDSolve whose solution I know is an even function. Thus, my ...
1
vote
1
answer
59
views
How can I calculate the diameters from the craters in this image?
I am new to Image Processing and I want to know a way to find the diameters of the craters.
0
votes
0
answers
28
views
0
votes
1
answer
37
views
3D Parametric Plotting for N Charged Particles in a Nonuniform Electric Field
I have a code (very bottom of post) which plots a static electric field as it passed through some metal sheet with an aperture in it.
I seek to observe the motion of some N charged particles (point ...
1
vote
1
answer
61
views
Create grid-like Image3D
I would like to create a visualization of a volume with the help of equally-spaced grid lines. The effect I want to get is easily obtainable for 2D images, the image is simply divided into quadratic ...
0
votes
2
answers
33
views
How to replace the 6th column with another column? [duplicate]
Consider the following table:
tabb = Table[RandomReal[{0, 100}, 100], {i, 1, 10, 1}];
How to replace its kth column (say, the 52th column) by the column
...
0
votes
0
answers
39
views
Compile and QPochhammer Function
I am running into trouble trying to make a listable function run in parallel. Arguably, the function that I am trying to compile is rather complicated.
Whenever I run the code below
...
0
votes
0
answers
37
views
Single Color in RegionPlot3d
I am creating a plot using RegionPlot3d. When using the command without further options you usually obtain a orange surface with some lighting effects. I want to simply change the color from orange to ...
2
votes
2
answers
125
views
Add quotes to each element in a list
How to add quotes to each element in a list?
For example, we have a list as:
...
0
votes
0
answers
52
views
Implementing the 3D Radon transform
I am wondering how to implement the Radon transform, the 3D Radon transform, that is, given a 'density' function $f: \mathbb{R}^3\to \mathbb{R}$ The Radon transform of $f$ is $$Rf(s,w)= \int_{x\cdot w=...
-1
votes
1
answer
43
views
ComplexExpand over various imaginary parts? [closed]
I have an equation
a=(c+ I d);
b=(e+ I f);
I want to solve
dd=(a C0 * b K C0)/(a C0 + b K C0);
both e and f are imaginary ...
0
votes
0
answers
23
views
Using ReplaceAll to simplify derivatives
I'm struggling trying to simplify the derivative of a function. I know that ReplaceAll works like that:
What I want is to replace the function itself that should ...
1
vote
2
answers
42
views
How can I collect the sum of any number of gradients without using ReplaceRepeated[]?
Recently, I have run into the problem where I need to collect the the sum of any number of gradients. I have defined a function grad[] to represent the gradient, ...
-2
votes
1
answer
46
views
How can the Style of one dataset be applied to another data set for plotting
I have a data set that must be plotted using BarChart, and I would like to format the color based on another dataset's style. For Example:
...
1
vote
0
answers
64
views
Suggestions to simplify and perform the summation of a complicated expression
I have a very complicated expression involving Hermite polynomials of complex variables, exponential and hyperbolic functions. Since it is too long to be pasted here, you can find the expression here.
...
0
votes
0
answers
40
views
Solving a complex value coupled ODEs with NDSolve
I am a very beginner in Mathematica and I am trying to solve a complex value coupled ODEs with NDSolver. The equations would be like 1
where u refers to u(t) and a refers to a(t), other symbols such ...
4
votes
1
answer
173
views
How are the projections of this plot made?
I want to make projections of a 3D plot as shown in this image .
I took this image from this paper: Multiphoton state engineering by heralded interference between single photons and coherent states. I ...
-3
votes
0
answers
37
views
How can I plot the scattering phase function of a polarized light on a 3D sphere? [closed]
This is my first time using mathematica for plotting. I learned some techniques to plot my data but didn't get the right answer. I want to plot the scattering phase function on a 3D sphere as shown in ...
2
votes
2
answers
76
views
How to insert AutomaticNumbering programmatically?
Preamble: I often work with the JournalArticle Stylesheet and use in it the styles "Figure" for graphics and "FigurCaption" for the corresponding caption. The figures should be ...
5
votes
0
answers
31
views
Working with VectorLabels in GeoGraphics
Consider this example of GeoGraphics:
...
3
votes
2
answers
137
views
1
vote
0
answers
51
views
An error in the short form of a two-dimensional array?
I noticed very strange behavior in the function Short when applied to a two-dimensional list of real numbers in Mathematica 12.3. Consider that
...
4
votes
2
answers
82
views
Simplify with False assumptions gives wrong answers
Simplify is very gullible: if it gets a False assumption, it'll believe anything is True:
<...
1
vote
1
answer
100
views
Why is Alignment not honored in the first two headline columns?
Consider this example:
...
0
votes
0
answers
52
views
Transient darcy flow equation
I can solve the following stationary Darcy problem:
$div(\nabla u)=1$
with
$ u = 0 \in \Gamma_d$
...
0
votes
1
answer
38
views
How do I NOT reduce loop integrals to one-point in FeynCalc?
So I am doing a box integral, the amplitudes look like this:
I do the loop integration of it using the following code:
...
2
votes
2
answers
63
views
Optimization problem with parameter dependent interval of functions
I am working on an optimization problem but ran into a problem.
Here is a simplified version of the problem:
...
0
votes
1
answer
62
views
Plot two list for differen first list parameter
I have a series of equations based on which I plot final lists of "xA1","yB1".
I need to change "xA1 = {0.55}" and "yB1 = {0.6}" between [0,1] with interval 0....
0
votes
0
answers
58
views
Repeated DirichletConvolve of MangoldtLambda and MoebiusMu
There is a bug in DirichletConvolve.
These two codes are same except that in first one MoebiusMu is used in another ...
0
votes
0
answers
48
views
Import data problem [closed]
Here is the mat data, it comes from matlab as a struct data,
while I import in mathematica, errors happen:
There are no other careless problem because I try this many times with other mat files, I ...