All Questions
92,293
questions
0
votes
0
answers
38
views
Compilable analog of Nearest?
Is there any analog of Nearest that is compilable?
...
0
votes
0
answers
49
views
Wolfram Engine 13.3.0 dies, is this a bug?
$ wolframscript
Wolfram Language 13.3.0 Engine for Linux x86 (64-bit)
Copyright 1988-2023 Wolfram Research, Inc.
...
0
votes
0
answers
29
views
Solving the Volterra integral equation of the 2nd kind by the method of successive approximations
I solve the Volterra integral equation of the 2nd kind by the method of successive approximations. Please tell me where I made a mistake in using the ...
2
votes
1
answer
63
views
Why do Resolve and ForAll fail with trigonometric expressions?
Why Resolve is not able to solve this problem? Similarly Solve and Reduce are not able to do ...
2
votes
1
answer
45
views
How to solve solve an ODE that depends on a strictly positive parameter?
To solve the ODE
f'' + f = 0 on (0, 1)
f(0) = f'(1) = 0.
I use the command
...
1
vote
3
answers
96
views
Sum of sinusoids at the same frequency but with different amplitudes and phases
Three sinusoids at the same frequency are superimposed:
Cos[3.1 - t] + 5 Cos[π/4 + t] + 2 Sin[0.3 + t]
How can the resulting oscillation be stated in the following ...
1
vote
0
answers
49
views
Heaviside function in NDSolve
I have:
...
0
votes
0
answers
53
views
Investigate argument of cosh(x) - sinh(x)
I know that cosh(x) and sinh(x) increasingly approach each other as x approaches infinity. How can I investigate, using Mathematica, at what value of x the difference between the functions, i.e., cosh(...
0
votes
0
answers
35
views
How to protect generated inline cells from editing?
I want to protect generated inline cell (which contains TeX source) from attempts to edit, since any attempt to regenerate box structure will fail. In particular, suppose in a text cell one creates ...
0
votes
0
answers
21
views
Simplify argument of Logs
I have the following expression
...
0
votes
1
answer
50
views
Use Mathematica to implement a Penney's game solver
In Penney's game , player A selects a sequence of heads and tails (of length 3 or larger), and shows this sequence to player B. Player B then selects another sequence of heads and tails of the same ...
1
vote
1
answer
35
views
Understanding Parallelization
I'm starting to use Mathematica's parallelization more frequently, and noticed an oddity I would appreciate to be explained. Please feel free to correct my terminology.
When on the main kernel, ...
0
votes
0
answers
28
views
If Row & Column are used together, why does the appearance of the formula change?
I expressed the expression of the formula for the limit as a string.
...
1
vote
0
answers
22
views
Is there an option for InverseLaplaceTransform to make Mathematica use the convolution theorem when feasible?
By default, it appears that Mathematica won't use the convolution theorem to write an inverse Laplace transform in the form of a convolution of two functions.
For example, ...
1
vote
2
answers
69
views
Is this definition similar to a while loop?
Good morning.
Reading some code in a webpage, I found this expression:
X[0] = 0.5; (*edited from x to X*)
X[n_ /; 1 <= n] := X[n] = Sin[n] X[n - 1] + Cos[n]
Is ...
1
vote
1
answer
30
views
How to maintain the form of the formula when using PasteButton?
I want to make a pallet button that keeps the form of the formula intact.
...
1
vote
0
answers
83
views
FindRoot + NDSolve + List? [duplicate]
I've noticed that FindRoot fails when its argument involves a component of a list, to which a substitution rule from NDSolve has ...
3
votes
2
answers
106
views
Convolving using Integrate function [closed]
Convolving two UnitBox using the Convolve function gives accurate results as fig.1). However, when I try using Integrate function according to the document, the results are different as fig2. What ...
3
votes
1
answer
89
views
0
votes
1
answer
75
views
How to fold a known planar figure into a spatial geometry?
A planar expansion diagram of a tetrahedron ABCD is shown in the above figure, where the quadrilateral AEFD has a diamond with a side length of 2Sqrt [2], B and C are the midpoints of AE and FD, ...
2
votes
3
answers
157
views
Numerical solutions of a multivariable equation
I have been desperately trying to find a way to get this equation solved with Mathematica (I am using version 11.1 if that matters):
$$
a\sqrt7 + b\sqrt{11} = (\sqrt7 + \sqrt{11})^{13},
$$
assuming ...
3
votes
0
answers
100
views
How to quickly sample points from the given PDF data?
Consider some data (distr.dat). It is a tabulated PDF: x, y, z, PDF[x,y,z], where x is some parameter (and the integral of ...
4
votes
2
answers
86
views
Finding a basis of positive vectors in the kernel of a matrix
The kernel to the left of the matrix
...
3
votes
1
answer
78
views
How to make the z-color of a contour plot mapped on the line?
Ideal picture effect:
$$
z=\frac{\frac{u}{1-u}K_{1/3}\left( \frac{u}{3\left( 1-u \right)} \right) +S\cdot \text{Int}\left( u \right) -S\frac{u^2-2u+2}{1-u}K_{2/3}\left( \frac{u}{3\left( 1-u \right)} \...
2
votes
2
answers
112
views
1
vote
0
answers
56
views
Why did the installation of the FFmpeg plugin fail? [closed]
Why did the installation of the FFmpeg plugin fail?
0
votes
0
answers
38
views
In Plot, different x range shows different result. Is it a bug? [duplicate]
After ODE, plot within {t,0,50} and plot within {t,0,60} have quite different results at some time instants.
...
1
vote
1
answer
40
views
Method of assigning a number to the number of attempts that have appeared from it, with the first attempt appearing as number 1
I want to assign the first trial that appears as number 1 and the number of trials that appear from there as elements of the list, plus a number.
At first, The following listA consisting of {a, b}. In ...
2
votes
0
answers
54
views
How to apply Esc key as double typing in EventHandler?
I wrote a code to delete the text in InputField with the Esc key.
...
1
vote
0
answers
12
views
ChannelObject::connfail Error
My Mathematica keeps deadlock in DynamicEvaluation and throws the following error upon Abort. How to stop this behavior?
...
1
vote
0
answers
49
views
Solving polynomial roots of any degree only by Vieta's formula
I have already wrote the code that solves it for quadratic formula and I'm curious if this is possible to make that function work with any kind of polynomial(higher degrees) and solving roots only ...
1
vote
0
answers
138
views
Bifurcation and stability analyses of delay differential equations
Are there any packages in Mathematica for bifurcation and stability analyses of delay differential equations? For Matlab, there is a nice tool like:
https://twr.cs.kuleuven.be/research/software/delay/...
1
vote
1
answer
62
views
Is a four-variable function less than one?
I have the following function of four variables
f=Sqrt[(1 + w - x + 4 y z) - Sqrt[4 (-w + x) + (1 + w - x + 4 y z)^2]]/Sqrt[2]
I want to show that $f(w,x,y,z)<1$...
2
votes
1
answer
53
views
Problem finding a function and plotting it
I have the following equation Ls j[t]/Is (1 + (RealAbs[j[t]/Is])^S)^(-1/(S + B)) = 7 Sin[2 \[Pi] 50 t]
How can I find the variable j[t] and graph it?
Tell me what ...
2
votes
0
answers
39
views
NextSetPartition
I'm looking for a function similar to the one in the question below, but for the more general problem of set partitions without restricting the set size.
NextKSizePartition, or how to partition a set ...
1
vote
1
answer
110
views
Mathematica gives weird solution to $y=xy'+y'$ [closed]
So I am practicing solving differential equations using Mathematica, and I will usually get an answer that I can easily verify. (as in I solve the differential equations myself and then check with ...
2
votes
1
answer
158
views
Graphing curves formed by a rolling polygon
I am trying to make a Mathematica graphing function that would generalize common phenomena. How would I do this?
From a circle, we can generate a cycloid (if rolling on a line) or a sine wave (if ...
3
votes
1
answer
102
views
Effective nested summation
My problem is the following: given a list of probabilities $p_0, p_1, \dots, p_M$ and an integer $n$, I need to compute a function of a real variable $x$
$$W(x) = \sum_{m_1 = 0}^M \sum_{m_2 = 0}^M \...
1
vote
1
answer
65
views
How to end the sound that is being play?
I'm trying to imitate the way that piano makes a sound and I create a DynamicModule to be the key like the following code:
...
2
votes
0
answers
60
views
Gurobi optimizer license error
How do I set up Mathematica to use the commercial Gurobi optimizer? Mathematica should be able to use it, as the Method -> "Gurobi" option exists for ...
1
vote
1
answer
52
views
How to control size and position of the bounding box of ListPlot3D?
I want to create an animation from multiple 3D charts generated by ListPlot3D. Here is a code that generated "test" data for that (it will output frames into a folder ...
14
votes
3
answers
1k
views
Diploria labyrinthiformis - can we reproduce Ernst Haeckel's drawing of a brain coral?
Ernst Haeckel (1834 - 1919) was a German philosopher, physician, artist and professor of zoology at the University of Jena. He promoted and popularised Charles Darwin's work in Germany.
The published ...
0
votes
0
answers
47
views
How to ContourPlot within Block? [closed]
I am trying to create a function (using Block function) which produces a ContourPlot and subsequently extracts the points in the ...
2
votes
0
answers
20
views
How can I set characteristic variables for NondimensionalizationTransform?
Apparantly the NondimensionalizationTransform is not throughly documented. There is an SO answer explaining how to use it, but I am having trouble applying it to my problem.
I am trying to handle a ...
3
votes
1
answer
115
views
NDSolve ignores my NeumannValue boundary conditions
I am trying to solve a simple linear differential equation for $f(x,y)$ on a square with area $L\times L =1$.
I consider
$(\partial_x^2 + \partial_y^2)f + \partial_x \partial_y f = 0$ with the ...
3
votes
0
answers
89
views
Workarounds for unevaluated results of ContourIntegrate of non-analytic functions
There is a new useful command ContourIntegrate since 13.3.
I find that the command is well-done, but even the Sun has spots.
...
4
votes
1
answer
88
views
Strange result simplifying higher order BesselJ
Consider the following integral:
$$\int_0^1 Z_n^m(r)\ J_m(\rho r) r dr$$.
The solution of this should contain a single Bessel function:
$$(-1)^{(m-n)/2}\ J_{n+1} (\rho)/\rho$$ (see https://www.osti....
3
votes
0
answers
60
views
How to fix the size of vectors on surfaces so they are in correct proportion?
I'm having a hard time understanding how vector sizes work with the SliceVectorPlot3D[] function. In my code below, I used a basic inverse square vector field, expecting vectors of the same length on ...
4
votes
1
answer
150
views
How to plot the elements of a matrix in {x,y,z} coordinates?
I have the {x,y,z} positions of a fullerene and after connecting the first neighbors with ~1.37 and 1.45 distances in the matrix B as the following
...
1
vote
0
answers
121
views