All Questions
93,657
questions
0
votes
1
answer
44
views
Creating table of 2 different variable and exporting them to single excel file
I want to put the results in a table for X and Rn.they are 2 different variables which don't depend on each other and plot them with X on x axis and Rn on y axis or export both of them in a single ...
9
votes
4
answers
454
views
DSolve returning "Indeterminate"
Bug introduced in 13.0 or earlier. Fixed in 13.1
I am trying to solve the following differential equation with Mathematica:
$$
z\,(1-z)\,\psi''(z)-2 z\,\psi'(z)-\frac{3}{4}\frac{\psi(z)}{z+a^2(1+z)}=0\...
1
vote
1
answer
82
views
How to draw a curve like the picture below?
I am quite new to Mathematica. I would like to draw a figure like the one shown. Can anyone help me regarding this?
Thanks in advance.
9
votes
2
answers
414
views
Why AppendTo is much faster than Table for tracking object movement
I need to track some objects, the simplified version something like this
...
2
votes
0
answers
49
views
Stylesheet Directives for DisplayFormular overwritten?
I'm trying to change the font of DisplayFormula, DisplayFormulaNumbered and InlineFormula in my stylesheet. So in the options inspector of the stylesheet under ...
0
votes
0
answers
64
views
Why RegionPlot does not work in this example?
I have some trouble understanding the RegionPlot command. I have defined the following input
...
1
vote
3
answers
190
views
How to return unevaluated variable?
I'm not sure if this problem has been asked before as I don't know the keyword to search for it.
I have a function where return result contains variable b (just ...
1
vote
1
answer
285
views
Dollars with Superscript Cents in text
I would like to show the cents of the dollar amount as superscripts inside text.
I can define a function for making the cents into a superscript, but when I add the result in text, the text gets ...
10
votes
1
answer
661
views
How to use Python functions in Mathematica functions in Python notebooks?
I want to plot things with Mathematica, inside an ipynb Python notebook. I can easily plot functions that are expressed in the Wolfram Language, e.g. with
...
2
votes
4
answers
272
views
what's the Mathematica command for a recursive formula?
I want to know the Mathematica command for
$$f(a)=\sum_{n=0}^{a-1} \frac{f(n)}{n!}, \quad f(0)=1$$
How to write $f(0)=1$ together with the summation? I used:
...
0
votes
1
answer
43
views
How to calculate cumulative density from a dynamical output?
I am running a simulation. I want to calculate the cumulate density of each species "C" and "R" from 0 to 100 [I just need the final number, not a graph]. Here is a sample equation
...
2
votes
1
answer
373
views
Is there some shortcuts to delete a cell?
Just like deleting a line with ctrl+d or something else in normal coding, is there some shortcut to delete a whole cell?
0
votes
1
answer
68
views
How to output data according to specific requirements and improve the calculation accuracy of NDsolveValue
How to output data after solving an equation? That is, the output x, and the y value corresponding to x.
...
8
votes
5
answers
493
views
How can I change the expression x1 to x[1] in a simple way?
I have one expression,
exp0=x1+x9/8+ x4 x5
I want to get
exp1=x[1]+x[9]/8+x[4] x[5]
Is there a very simple way to do that?
3
votes
2
answers
192
views
How does NumberQ work [closed]
I want Log[2 x / Pi] to be expressed as Log[2/Pi] + Log[x]
so I make this replacement
...
2
votes
1
answer
73
views
PercentForm in SetterBar Labels
I want to have the numbers that a SetterBar displays for the user to select to appear as percentages. For example, the following code should have percentages not ...
4
votes
1
answer
55
views
Convert Company Entity to Finance Entity
Is there an easy/straightforward way to get the corresponding Finance entity given a Company entity if it’s available?
I have a hack-y fix just y taking the “Name” property for the Company and ...
0
votes
2
answers
154
views
How to generate random dots with given distances?
I am interested in the following problem, and am curious if Mathematica could be used to solve it.
I start with a radius function $\rho:D\to \mathbf{R}_{\ge 0}$ on a region $D\subseteq \mathbf{R}^n$. ...
0
votes
0
answers
97
views
While loop to solve a diffusion problem
Crossposted at Wolfram Community: https://community.wolfram.com/groups/-/m/t/2506329
I am trying to use a While loop to solve for a diffusion problem using the power iteration method. The code is ...
0
votes
0
answers
96
views
How to access the data object returned from a Wolfram query?
I want to access information regarding the population of the world, over the last 10,000 years, and then visualize it with some annotations.
In particular case, I want to:
grab world population data ...
0
votes
1
answer
41
views
Exclude blank values from dataset (GeoPosition)
Any idea how to filter this dataset to exclude blank values in FlightPath?
1
vote
1
answer
458
views
How to fit a specific range of data?
Let me explain my question by a toy example: Suppose I have a simple Gaussian function as follows:
test[x_] = 4*Exp[-(x)^2];
If I its data to a new Gaussian ...
6
votes
1
answer
416
views
Is K is a function? [duplicate]
Some of the capitalized single letters are functions. Starting a fresh kernel and typing in the 24 capital letters, the following letters turn black since they are special functions,
...
1
vote
1
answer
95
views
Solve and Plot an example with boundary condition
I have this piece of code to plot this solution, but I guess it should be numerical or parametric way!!!
...
1
vote
0
answers
39
views
Or in Refine fails?
I think this should be True:
...
0
votes
1
answer
207
views
Solving a PDE gives stiffness error
I'm solving a PDE with
...
9
votes
2
answers
237
views
How to do boolean operations between a large amount of regions
I want to do boolean operations between a large amount of regions.
For convenience, I consider a simplified problem.
The problem is as follows, digging out a large number of small hemispheres on the ...
4
votes
4
answers
987
views
Find fit function
I want to find a fit function for the following data. Can someone suggest the best-fit function for the following data? The upper part of the data set is difficult.
...
1
vote
1
answer
124
views
How to run multiple random process and plot its average for a non-autonomous logistic model?
This problem is a continuation of the discussion from here,
with random impulse function as discussed in here to formed the following:
...
1
vote
1
answer
522
views
DifferentialRoot with no explicit branch cuts
I have a partial differential equation to solve. However, Mathematica shows solution that is not exactly the way I want.
...
11
votes
8
answers
590
views
How do I flatten a matrix of lists while maintaining the structure of the list?
I have a 2x2 matrix of lists. For example, the matrix I am working with looks like
matrix = {{{a,b,c}, {e,f,g}}, {{h,i,j}, {k,l,m}}}
I want to define a function ...
0
votes
1
answer
102
views
Line Legend with dashes and thickness not working
I am trying to create a line legend with specific dashing and thickness. Here is the code.
...
1
vote
1
answer
73
views
Color each curve with its proability to appear
I have a function f(x) which is dependent on a random parameter a.
I can define a matrix Y containing {x,f(x),P}, where P is the probability that the curve appears. I would like to plot these curves ...
0
votes
0
answers
63
views
Fitting data with weights in a Log-Log scale
I need help.
I have the following dataset:
...
2
votes
1
answer
69
views
Choosing numbers whose divisors can be partitioned into subsets having the equal sum
How can we find the list of natural numbers between 100 to 10000, whose positive divisors can be partitioned into three subsets such that sum of all the elements in three subsets will be equal?
1
vote
1
answer
76
views
Simple algebra question
Am I missing something here? This does not resolve to True.
Clear[x,y]
$Assumptions={x>0,y>0}
FullSimplify[(Sqrt[x] + Sqrt[y]) == Sqrt[x + y + 2 Sqrt[x y]]]
...
0
votes
1
answer
122
views
Defining a general function f with slot-holder arguments #1, #2
I am trying to get a general function $f$ accept slot-holder arguments #1, #2, where the actual arguments are lists {a1, a2,...} and {b1, b2,....}. I thought that this would involve some combination ...
2
votes
1
answer
46
views
How can I prevent my self-introduced integral sign being multiplied into the numerator of the integrand when converting the expression into TeXForm?
Recently I have been doing a lot of double and triple integrals. To my disappointment, MMA does not have built-in integral signs for those advanced or special integrals. Fortunately, I have found out ...
0
votes
1
answer
72
views
NCAlgebra - Factoring common commutative coefficients
This is a rather simple question that I cannot quite figure out how to do.
Basically, I have the result of some matrix multiplication in which my resultant matrix has a mixture of commutative and non-...
8
votes
4
answers
363
views
Finding the roots of Abs[Hypergeometric1F1[1/4 (3 - (2 x)/I), 1.5, I]]=0
I want to solve for the first 100 or more zeros of Abs[Hypergeometric1F1[1/4 (3 - (2 x)/I), 1.5, I]]=0;
The following code is my simple attempt:
...
4
votes
3
answers
191
views
How to remove part of the solution in ContourPlot
I am interested in plotting solutions to the equation $\lambda^2\sin^2(\alpha)-\sin^2(\lambda\alpha)=0$ with $\lambda>0$ and $0\le\alpha\le2\pi$. However, I am not interested in the trivial ...
5
votes
1
answer
65
views
Picking integer compositions with certain descent patterns
I am trying to find a nice way to pick out all the integer compositions (ordered partitions) of an integer $n$ that satisfy a given pattern of descents between some adjacent elements. Writing a ...
7
votes
1
answer
220
views
Solve 1d fractional equation with Mathematica
How can we use Mathematica to solve the following fractional elliptic problem?
$$a(-\Delta)^su + bu= f(x) \text{ in } (0,1),\\
u = c \text{ in } \mathbb{R} \setminus (0,1), $$
for $a,b,c\ge0$ and a ...
2
votes
1
answer
91
views
Adding A line in a graph
I have this question about how to add a line in a ListPlot[] graph.
I am trying to add a y=4
I have written the following:
...
2
votes
0
answers
70
views
Automating notebook evaluation
I have several notebooks that cover various facets of our firm.
Each notebook queries a database, generates graphs, and uses Export[] to produce individual graphs (...
4
votes
2
answers
198
views
Error animating a 3d parametric plot of a sum
I am trying to animate a sum together with a circle (specifically the vector field $(r \sin \theta , r \cos \theta, u(r,t))$ using Animate and ...
1
vote
0
answers
21
views
How to create a form that takes user input (e.g., gmail address) and displays a dataset of that user data from Databin
I am trying to deploy a form where a user can enter their information such as their ID or any identifier only pertaining to them and then view the corresponding contents formatted as a dataset.
A ...
2
votes
1
answer
70
views
creating pairs of a {2,80} dimesion
Suppose that:
...
8
votes
1
answer
174
views
What is a numeric value of PlotStyle?
In the documentation of Plot, under Options / PlotTheme, there is this example:
...
-1
votes
1
answer
97
views
FunctionContinuous produces False for a continuous integral [closed]
In V 13 on Windows 10 the command (I blow on cold water with GenerateConditions -> True)
...