Need help to get the right codes using Mathematica
- Context: Mathematica
- Thread starter kaizen.moto
- Start date
-
- Tags
- Mathematica
Click For Summary
Discussion Overview
The discussion revolves around obtaining the correct Mathematica code for specific functions, sumu17[m,n] and sumv17[m,n], within a Do-Loop structure. Participants are addressing issues related to code structure, modularization, and performance, as well as troubleshooting errors encountered during execution.
Discussion Character
- Technical explanation
- Debate/contested
- Homework-related
- Mathematical reasoning
Main Points Raised
- One participant requests help with the correct formulation of sumu17[m,n] and sumv17[m,n] within a Do-Loop.
- Another participant critiques the clarity of the code and suggests that it is difficult to understand the intent behind it.
- A participant expresses their novice status in programming and seeks guidance on improving and simplifying their code.
- Suggestions are made to modularize the code to improve clarity and functionality.
- One participant reports success in breaking the code into smaller parts using Module, but encounters performance issues and errors when running more iterations.
- Warnings about badly conditioned matrices are discussed, with participants suggesting to check the determinants of matrices involved in the calculations.
- Another participant inquires whether increasing precision could resolve the issues with matrix inversion.
Areas of Agreement / Disagreement
Participants generally agree that the code requires improvement and modularization. However, there is no consensus on the best approach to resolve the performance issues and errors, as multiple suggestions and hypotheses are presented without agreement on a definitive solution.
Contextual Notes
Participants mention specific errors related to matrix inversion and performance, indicating that the code's execution time increases significantly with larger iterations. The discussion includes various mathematical expressions and determinants, but the implications of these factors remain unresolved.
Who May Find This Useful
This discussion may be useful for novice Mathematica users, programmers seeking to improve code efficiency, and those interested in troubleshooting complex mathematical computations in programming.
Similar threads
- · Replies 4 ·
- · Replies 2 ·
- · Replies 6 ·
- · Replies 1 ·
- · Replies 1 ·
- · Replies 7 ·
- · Replies 4 ·
- · Replies 2 ·
- · Replies 1 ·
- · Replies 15 ·