Skip to main content

Questions tagged [code-review]

This tag is intended for the review and improvement of style for already functioning code. It not meant to change the objective of the code.

3 votes
1 answer
149 views

This is a question similar to the previous one with small features. I'm solving this problem by modifying the method of @Alex. The code can run without error, but it was always stuck at ~...
user55777's user avatar
  • 649
3 votes
0 answers
183 views

Related MSE post I'm trying to make Mathematica demonstration of the paper The expected volume of a random polytope in a ball. In the $d$-dimensional Euclidean space $E^d$ ($d \geq 2$), consider the ...
Ahamad's user avatar
  • 1
1 vote
0 answers
110 views

I am trying to compute expansions of some fairly long expressions using the built in function Series in Mathematica, and I was wondering if there is anything I can do in order to make the code run ...
Someone's user avatar
  • 221
1 vote
1 answer
148 views

This code works well to generate first order solution but gives recursion error on generating second order solution. I think the error is causing due to computation of $f$ but don't know how to fix it....
Noor Aslam's user avatar
1 vote
2 answers
332 views

I have the system of PDEs, that is: $F_{1\eta\eta}^{k+1}(i,j)+A_1^k(i,j)F_{1\eta}^{k+1}(i,j)+A_2^k(i,j)F_1^{k+1}(i,j)+A_3^k(i,j)F_{1\xi}^{k+1}(i,j)+A_4^k(i,j)F_2^{k+1}(i,j)+A_5^k(i,j)G^{k+1}+A_6^k(i,j)...
Noor Aslam's user avatar
4 votes
4 answers
477 views

Is there a better way of plotting this? ...
user444's user avatar
  • 2,836
1 vote
2 answers
186 views

Similar to this question, I am wondering about the meaning of the wolfram lint(PatternRule) warning: ...
tueda's user avatar
  • 845
3 votes
2 answers
466 views

Perhaps a better title would be: "Simulating k-many Moving Points with Distance Contraints on Sphere-like Cages" because I am not concerned about representing anything physically real. This ...
Romogi's user avatar
  • 687
2 votes
3 answers
176 views

In general, I have this initial data: n = 8; a = Range[0, n - 1]; b = RandomChoice[a]; c = RandomSample[a]; d = Partition[c, 2]; where ...
user avatar
1 vote
1 answer
241 views

I wrote this code: ...
user avatar
3 votes
2 answers
219 views

I wrote the following code: ...
user avatar
2 votes
2 answers
121 views

I have two notebook codes 'calculation.nb' and 'caller.nb'. The first code simply generates and prints a random number. The second code I want to use to call the first code a set number of times (say ...
John Doe's user avatar
  • 291
2 votes
1 answer
223 views

Probability: $$\rho_{n}=\int_{\Omega} |\psi_{n}(x,y)|^{2}~ dx~ dy$$ Inverse Participation Ratio(IPR): $$IPR_{n}=\int_{\Omega} |\psi_{n}(x,y)|^{4}~ dx~ dy$$ Under the standard normalisation $\rho \le 1$...
user444's user avatar
  • 2,836
7 votes
3 answers
660 views

In orden to list all derangements of five elements, I wrote the following (very ugly) code: ...
Carbunco Feliz's user avatar

15 30 50 per page
1
2 3 4 5
33