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.
490 questions
0 votes
1 answer
75 views
Help to try and make my code finish running. Series of incomplete elliptic integrals
I have the following code ...
3 votes
0 answers
183 views
Mathematica demonstration of the expected volume of a random polytope in a ball
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 ...
1 vote
1 answer
148 views
How to fix error in HAM (Homotopy Analysis Method) while running code for second order solution?
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....
4 votes
4 answers
477 views
Is there an alternative and more compact way to make the following parametric plot?
Is there a better way of plotting this? ...
3 votes
2 answers
466 views
Simulating k-many 'Electrons' with 'Repulsion' on 'Atoms'
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 ...
1 vote
1 answer
241 views
Code optimization using Mod[] function
I wrote this code: ...
2 votes
2 answers
121 views
Simple example of running one notebook from another [closed]
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 ...
7 votes
3 answers
659 views
Help with a very ugly piece of code [duplicate]
In orden to list all derangements of five elements, I wrote the following (very ugly) code: ...