# All Questions

70,677 questions
Filter by
Sorted by
Tagged with
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",...
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 ...
14 views

### Is there a faster way?

I believe the hold up is calculating distanceToCenter[]. How can I make this go faster: ...
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? ...
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 ...
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?
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>...
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 ...
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 ...
27 views

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>>])...
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 ...
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,...
48 views

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 ...
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 ...
50 views

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

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

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

### Plotting 2 functions at the same time with Manipulate[]

Here is a code that works well: ...
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?
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. ...
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 ...
24 views

### Two functions with single Manuipulate[]

I have code which works exactly I want it to work: ...
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 ...
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: ...
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). ...
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 ...
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: ...
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 ...
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 ...
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 #,...
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: ...
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 ...
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 ...
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 ...