Skip to main content

Questions tagged [programming]

Questions on writing non-trivial programs in Mathematica. Do not use this tag for questions on plotting/graphics or for questions on doing mathematics with Mathematica, where the focus is more on the math than the program.

1 vote
1 answer
300 views

I've been experimenting for a while with Claude, DeepThink, Copilot and Chat, and all are great for helping quickly beginner programmers with bad memory like me, but they also waste a lot of your time ...
florin's user avatar
  • 2,380
4 votes
6 answers
829 views

I need to obtain the reverse Polish notation from an expression consisting of symbols and the &&, || operators. ...
youthdoo's user avatar
  • 647
3 votes
4 answers
266 views

The following function finds the degree of a multi-variate polynomial. PolyDeg[expr_]:=expr//ToList//Exponent[#,Variables[#]]&/@#&//Plus@@@#&//Max; ...
youthdoo's user avatar
  • 647
0 votes
0 answers
71 views

I am trying to bootstrap the harmonic oscillator in Mathematica using its built in SDP solver. I have the following code ...
Knickers5637's user avatar
2 votes
1 answer
385 views

I want to create a stand-alone program using Mathematica, which should be able to read given data and conduct simple plots and calculations with built-in functions (e.g. ...
user55777's user avatar
  • 649
3 votes
0 answers
136 views

I have this image and would like to create an animated GIF with the head moving like it's completing a Rubik's Cube. Here I leave you part of the code that I have. Could you help me? Thank you. ...
zeros's user avatar
  • 2,413
2 votes
1 answer
130 views

I am using the code provided in the answer for this other question. It is shown below: ...
JYB's user avatar
  • 51
0 votes
0 answers
140 views

I am using the numerical analytic continuation method to find quasinormal modes of the black hole 2 with $s=0, l=1$ in arXiv:2209.00679, please see Table 1 of arXiv:2209.00679. However, my code is ...
Robert Xu's user avatar
  • 111
0 votes
0 answers
72 views

I wrote a code that, if executed completely, causes the kernel to shut down as well as interrupting the compilation. So, to increase the compilation time I thought of using the following command but ...
Antonio Maria Di Mauro's user avatar
1 vote
1 answer
278 views

I have this code(shorter version), there are 22 more schemes not just 3. This one works fine. I am trying to simply this code and write a nice and better version of it. Because I have more than 25 ...
Learner's user avatar
  • 259
0 votes
0 answers
73 views

I'm calculating the mode-mixing between various spin-weighted spherical harmonics (SWSHs) $_sY_{l}^{m}(\theta,\varphi)$. In what follows the indices can take the following values, $l_{max}$ being some ...
Johnny's user avatar
  • 33
0 votes
0 answers
128 views

All: I'm running the following code. It's coming up with a persistent bug that seems to be related to the graph and processing the information; see image. Any advice? This code works fine with Ver 13....
user42700's user avatar
  • 2,027
2 votes
1 answer
83 views

I would like to know how to program this type of sums, with the first two values whatever I want $S_{k}(0)=m$ and $S_{k}(1)=t$, and for n>0: $$S_{k}(n+1)= \sum_{r_{1}+r_{2}+\cdots +r_{k}=n}S_{k}(r_{...
Lorenzo Alvarado's user avatar
4 votes
2 answers
346 views

I want to generate ALL vectors of size $n$ (i am only interested in values of n=2,...,7) with Mathematica, which satisfy the following property: The first entry $x_1=0$ and for subsequent entries $x_{...
Lorenzo Alvarado's user avatar
0 votes
1 answer
180 views

Given a set of vectors, $\{v_1, \dots, v_n \}$, I'd like to find their minimum Hamming Distance, $\min_{1 \leq i < j \leq n}|v_i - v_j|$. My main issue is, I don't know how to do this in ...
CatsAndDogs's user avatar

15 30 50 per page
1
2 3 4 5
107