All Questions

Filter by
Sorted by
Tagged with
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 ...
user avatar
  • 1,962
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 ...
user avatar
  • 101
-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?...
user avatar
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 ...
user avatar
  • 109k
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 ...
user avatar
  • 3,731
-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 ...
user avatar
  • 435
3 votes
1 answer
29 views

Plotting a table with one x-value and multiple y-values

I have a table which reads ...
user avatar
  • 609
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 ...
user avatar
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?
user avatar
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. ...
user avatar
  • 1,962
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. ...
user avatar
  • 1,962
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. ...
user avatar
  • 1,962
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};
user avatar
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 ...
user avatar
  • 4,681
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 ...
user avatar
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 <...
user avatar
  • 4,236
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 ...
user avatar
  • 151
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 ...
user avatar
  • 31
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 ...
user avatar
  • 8,237
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^...
user avatar
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 ...
user avatar
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.
user avatar
0 votes
0 answers
28 views

Making a plot accurate (PlotPoints -> 1000, MaxRecursion -> 20, WorkingPrecision -> 20) didnt help

The command: ...
user avatar
  • 1
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 ...
user avatar
  • 25
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 ...
user avatar
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 ...
user avatar
  • 3,832
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 ...
user avatar
  • 487
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 ...
user avatar
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: ...
user avatar
  • 503
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=...
user avatar
-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 ...
user avatar
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, ...
user avatar
  • 393
-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: ...
user avatar
  • 4,376
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. ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 147
-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 ...
user avatar
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 ...
user avatar
5 votes
0 answers
31 views

Working with VectorLabels in GeoGraphics

Consider this example of GeoGraphics: ...
user avatar
  • 3,731
3 votes
2 answers
137 views

In PolarPlot, how to automatically fit the PolarTicks and show the radius ticks?

...
user avatar
  • 1,284
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 ...
user avatar
  • 101
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: <...
user avatar
  • 17.7k
1 vote
1 answer
100 views

Why is Alignment not honored in the first two headline columns?

Consider this example: ...
user avatar
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$ ...
user avatar
  • 2,760
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: ...
user avatar
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: ...
user avatar
  • 21
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....
user avatar
  • 3
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 ...
user avatar
  • 2,615
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 ...
user avatar
  • 123

15 30 50 per page
1
2 3 4 5
1688