Mathematica Can someone me on this problem using Mathematica
- Thread starter kaizen.moto
- Start date
-
- Tags
- Mathematica
Click For Summary
The discussion focuses on improving the syntax for a Do-loop function in Mathematica that involves solving simultaneous equations and summation. Participants suggest that the user could rewrite the system using matrices, utilizing Array[], SparseArray[], or Band[] for better efficiency. Instead of using Do loops, which are common in languages like FORTRAN and C, it is recommended to use Table to generate results, allowing for a more concise and understandable code structure. The use of Reap and Sow is also mentioned as an alternative for those who prefer Do loops, enabling the collection of values during iteration. The user expresses gratitude for the guidance received and acknowledges the effectiveness of the recommendations, emphasizing a desire to learn and improve programming skills in Mathematica. The conversation highlights the importance of writing clear and efficient code that reflects the underlying mathematical logic.
Similar threads
- · Replies 4 ·
- · Replies 9 ·
- · Replies 1 ·
Mathematica
Black Hole shadow temperature profile
- · Replies 0 ·
- · Replies 5 ·
- · Replies 2 ·
Mathematica
Want to learn Mathematica programming
- · Replies 23 ·
- · Replies 6 ·
- · Replies 1 ·