All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Algorithms used in GraphPlot and GraphPlot3D

Coppied from Mathematica's help: Algorithms to be used in GraphPlot and GraphPlot3D can be specified using the Method option, either as Method->"name" or Method->{"name",...
2
votes
1answer
9 views

Fitting Lorentzian function

I'm trying to fit a Lorentzian function to my data, but i can't find the best fit. The model used is ...
0
votes
0answers
14 views

Is there a faster way?

I believe the hold up is calculating distanceToCenter[]. How can I make this go faster: ...
0
votes
0answers
11 views

Table does not give out any output when Animate or Manipulate work

So i was playing with this program and i noticed that i can use Manipulate or Animate but Table gives me no output.Why is this so?Is there a fix? ...
1
vote
3answers
37 views

When is a symbol a Symbol? Is there an easy mathematica function that tests if an object is a symbol something like SymbolQ?

Yes I know there is no built in function SymbolQ[...] (but JavaScript does) but could one be coded to work for most cases? I often rely on ...
1
vote
0answers
10 views

Mathematica axle units reformat from decimal to exponential form

I have this graphic how can i rewrite 0.001 as 10^-3? just like the 10^-4?
0
votes
1answer
13 views

Construct string argument and pass it to command

My Mathematica variable scope is set to Notebook, more about it here: What is my current scope if I change `Inspector>Cell options>Evaluation options>...
0
votes
0answers
20 views

How *does* Mathematica generate ticks and tick values?

This question has sort of been asked before in various guises (e.g. here and here), but the answers given there do not answer the question I'm posing. In full, that question is this: In 2D plots ...
0
votes
1answer
10 views

“Constraints should be equalities, inequalities, or domain \ specifications involving the variables”, leading to unexpected results

While trying to maximize the function fun[x_, a_, b_], over parameters $a$ and $b$, and plotting the resulting maxima with respect to $x$, I encountered the error ...
0
votes
0answers
27 views

Please help me to find my error Please

I spent two weeks trying to fix this error the program show my this:: NIntegrate::inumr: The integrand (0.0131326 r Sin[q r])/(1+(E^(1.75439 Plus[<<2>>])+E^(1.75439 Plus[<<2>>])...
0
votes
0answers
9 views

Vertical text in a nested grid not aligning correctly along the horizontal (center desired)

I reconstructed the results of several functions that generate rows and nested grids so as to do away with the minutia. I am having difficulty getting the vertical text to ...
-4
votes
0answers
24 views

Odd order moments and symmetry of z distribution function [closed]

The question I had in an examination was to prove or disprove the following: If all odd-order central moments of a distribution function are zero, the distribution is symmetric. I proved the statement,...
0
votes
2answers
48 views

Trajectory graph

Good Morning, I need a little help to graph this, the problem is: A particle moves along a trajectory such that its radius vector is given by $r[t] = A(e^{\alpha t}+ \widehat{e_1} + e^{-\alpha t}+ \...
0
votes
0answers
10 views

Plotting components of a multivariate ItoProcess object vs. each other

About a week ago I asked for some help in generating bivariate Ito processes where the components can be correlated (See thread Simulating a bivariate Ito process).b.gates.you.know.what kindly ...
0
votes
0answers
11 views

Issue displaying units with Quantity[] inside bar legend

Quantity[] is displaying some inconsistent behaviour when used in BarLegend[]. Compare the following two examples: ...
1
vote
0answers
16 views

Pattern match SubValues with unspecified number of arguments

Does there exist a single pattern that would match SubValues of arbitrary "length" with a given head? For example, I would like to match all of the ...
-1
votes
0answers
30 views

Second Attempt at Explaining Average and Checking it using Code

I'm unable to load my original post. The editor stated, "Code is not properly formatted" so I used screenshots. Here is a link which could have been used. It gave an approach to a previous ...
2
votes
1answer
36 views

How can I use ImageCrop on on a results from Grid?

I have this figure produced using Plot and Grid ...
0
votes
0answers
18 views

Change in “boldness” in 3d graphics in Mathematica 12.1.1 while rotating

After updating mathematica from version 12.0 to 12.1.1,I noticed that 3D graphics change their boldness while being rotated.Is there a way to turn this off?It becomes annoying.Below are the attached ...
4
votes
1answer
38 views

`GraphPlot3D` does not preserve the order of points/edges. How to identify coordinates of those points then?

Here is my code. data contains list of edges of a graph. For example the first edge is 5->8 which means the edge has end ...
3
votes
1answer
32 views

Convert partial differential equation (Fokker-Planck equation) from polar to cartesian coordinates

I am trying to convert the following equation in polar form to the cartesian coordinates using Mathematica (Phys. Rev. A 78, 013810 (2008), https://journals.aps.org/pra/abstract/10.1103/PhysRevA.78....
3
votes
1answer
53 views

Interpolation of points in 3D with smooth space curve

In Mathematica we have ListSurfacePlot3D for reconstructing surface from list of points in 3D. But I can not find something similar if I want to reconstruct a curve ...
0
votes
0answers
22 views

CoefficientArrays and multivariate quadratic monomials

My goal is to represent a quadratic set $P(X)$ consisting of $n$ equations in $n$ variables $(x_1,\cdots,x_n)\in F_2^n$. What I've Tried For example, for $n=4$ we got $(x_1,x_2,x_3,x_4)$. And the ...
5
votes
2answers
42 views

Conditional matches in sets of 3-tuples

Suppose that the data is a collection of 3-tuples: ...
3
votes
1answer
47 views

NMinimize with assumptions gives result that does not satisfy assumptions

I am trying to determine if a function is always positive given a set of assumptions. I am using NMinimize following the advice of previous posts in this site. ...
2
votes
1answer
51 views

The NIntegral can not give a correct answer by mathematica

Here I want to compute this integral using the Mathematica $\int_0^\infty \int_{-\pi}^{\pi}s^{\frac{1}{2}+2} \exp (-s) \cos \left(\frac{f}{2}\right) \exp (-i k s) \exp \left(-\frac{\sqrt{8 s u}}{\cos \...
5
votes
1answer
41 views

Generate a random list that have 2 different ranges in 2 dimensions

Here is my thing. Each element in the list has its own range. {RandomReal[{0, 1}], RandomReal[{0, 2 Pi}]} This code alone can only generate a point. Is it ...
4
votes
2answers
126 views

Integral with floor function resulting in EulerGamma

Allegedly $1 - \int_1^\infty \frac{ (t-\left \lfloor{t}\right \rfloor ) } { t^2 } dt = \gamma$ where $\gamma$ = EulerGamma ( Introduction to Analytic Number Theory, Apostol; Theorem 3.2 p 56 ) I would ...
0
votes
0answers
50 views

Question about Clear function

I have a script starting with Clear ["r*", "data*", "file*"]. Does this clear all variables starting with "r" or "data"or "file"? Also, I ...
0
votes
1answer
41 views

Use `Dynamic[]` to plot dynamically solve equation and dynamically display calculated value

Here is my code and it works well: ...
0
votes
0answers
17 views

Plotting 2 functions at the same time with Manipulate[]

Here is a code that works well: ...
0
votes
0answers
20 views

Custom Contourlabel to show linear values on log plot

How can we use ContourLabels to show linear values of a function on the contour plot while the plot itself is in log scale?
0
votes
0answers
35 views

Is there any ways to accelerate Matrix Dot Multiplication?

I'm trying to code moment computing, which needs massive Matrix Dot Multiplication. My current code is below. ...
0
votes
1answer
26 views

What is my current scope if I change `Inspector>Cell options>Evaluation options>CellContext` to “Notebook”?

I mean I made this change: Now, Clear["Global`*"] and Names["Global`*"] are not working anymore. I tried ...
0
votes
0answers
24 views

Two functions with single Manuipulate[]

I have code which works exactly I want it to work: ...
1
vote
1answer
24 views

Issue with transferring list with different length to excel

I have two lists with different lengths and would like to transfer them to excel with the titles "Normalx+" and "Normaly+" respectively. I am using the following script, although ...
0
votes
0answers
27 views

Ploting output of Solve[] and Expand[] that returns two results on one plot with Plot[] [closed]

I have code: Expand[Solve[x^2 + y^2 == 25, y]] output is: For this code: y /. Expand[Solve[x^2 + y^2 == 25, y]] output is: ...
0
votes
1answer
25 views

How to compile a function that takes a list of arguments using InlineExternalDefinitions?

I can do this right now, but I'd love to make the argument a list. (I have a compiled implementation of Linear Solve from here https://mathematica.stackexchange.com/a/91881/73342). ...
2
votes
1answer
45 views

Plotting Stability of damped mathieu equation

I am trying to create the stability diagram of the damped Mathieu equation using Mathematica.The Mathieu equation is $$D(y)+(a-2q \cos(2t))y=0$$ where D(y) is the ...
4
votes
2answers
106 views

How to add Spheres[] sequentially from the surface of preexisting spheres?

I'd like to connect many spheres, by adding a new sphere at some point that's sitting on the surface of a previous sphere. How could we do this? Suppose I have a unit sphere and a point on it: ...
0
votes
0answers
38 views

Results given by NDSolve and Python SciPy's solve_ivp differ [closed]

This question involves both Python and Mathematica, so I thought I'd post it both here and in a more Python-specific forum. I want to solve a system of complex ODEs numerically. Originally, I used ...
0
votes
1answer
60 views

Blackbody Intensity Plot

My objective is to plot the blackbody spectrum and also find out the integral value for a defined limit. However, I am getting the following constant value of Blackbody intensity and also getting an ...
1
vote
1answer
123 views

Can anyone translate this code into simpler one?

I'm new in Mathematica, so can anyone translate the following code into a simpler form where uses more familiar syntax? my mean is #,...
0
votes
0answers
25 views

Text of ::usage = “…” not shown [closed]

I experience a problem writing a package. Here it is as a MWE Head of package BeginPackage["mlToolsMWE`"] defining the usage for the function: ...
-2
votes
0answers
37 views

Get analytical result for complex integral [closed]

Given the following integral: $$\int_{-\infty}^0\frac{e^{\frac{-y^2}{2}}}{\sqrt{2\pi}}$$ N[NIngregrate[E^(-y^2/2)/Sqrt[2*Pi], {y, -Infinity, 0}], 4] I tried to get ...
0
votes
0answers
30 views

RK4 and equations of motion in a double spherical pendulum [closed]

I'm kind of struggling on a project that I am working on. I have already got bucketloads of help from @MassDefect but I'm still dying inside. Basically I am trying to create a simulation of a double ...
0
votes
0answers
39 views

How to check if an expression is real in some domain

I was wondering if it is easy to see if a given expression evaluates to a real number in a given domain? Let e.g. f(x,y,z) be some function depending on three ...
1
vote
0answers
48 views

Is it possible to take the Laplace transform of a Hankel function with Mathematica?

The following two functions are the fundamental solutions of the wave equation and its Laplace transform (the modified Helmholtz equation) in two dimensions, respectively, when the speed of wave ...
2
votes
2answers
36 views

Plotting a function by randomly choosing the values of two parameters

Given the function: fun[a_, b_, x_] = Sqrt[1 + x^2 - 2 x Cos[a]] + Sqrt[2 - 2 Cos[b]] + Sqrt[ 1 + x^2 + 2 x Cos[a + b]]; I want to Plot it with respect to $...

15 30 50 per page
1
2 3 4 5
1414