Can someone me on this problem using Mathematica
- Context: Mathematica
- Thread starter kaizen.moto
- Start date
-
- Tags
- Mathematica
Click For Summary
Discussion Overview
The discussion revolves around improving Mathematica syntax for a problem involving Do-loops, simultaneous equations, and summation. Participants explore different approaches to optimize the code and enhance its clarity and efficiency.
Discussion Character
- Technical explanation
- Debate/contested
- Homework-related
Main Points Raised
- One participant requests help to improve their Mathematica syntax involving Do-loops and simultaneous equations.
- Another participant suggests rewriting the system of equations using matrices, proposing the use of Array[], SparseArray[], and Band[] for better structure.
- A different approach is recommended, advocating for the use of Table instead of Do to create a more efficient solution that holds results in a list.
- Reap and Sow are introduced as alternatives for collecting results within Do-loops, allowing for a more organized output.
- A participant expresses frustration with comments on the aesthetics of their code, emphasizing their desire to learn programming in Mathematica without judgment.
- One participant acknowledges the help received and confirms that the initial recommendation worked effectively for their problem.
- Another participant clarifies that their comment about "ugly" code was not meant to offend, but rather to highlight the importance of optimal coding practices in Mathematica.
Areas of Agreement / Disagreement
Participants express differing views on the aesthetics and efficiency of code, with some advocating for more optimal practices while others focus on learning and understanding. The discussion does not reach a consensus on the best approach, as multiple strategies are proposed and debated.
Contextual Notes
Participants' suggestions depend on their interpretations of the problem and the specific requirements of the Mathematica syntax, which may not be fully articulated. There are unresolved aspects regarding the original system of equations and how best to represent them in code.
Similar threads
- · Replies 4 ·
- · Replies 9 ·
- · Replies 1 ·
- · Replies 0 ·
- · Replies 5 ·
- · Replies 2 ·
- · Replies 23 ·
- · Replies 6 ·
- · Replies 1 ·