Discussion Overview
The discussion revolves around issues encountered while performing integration in MATLAB, specifically regarding the output of an integral function that yields unexpected results. Participants explore the behavior of the integral function under different conditions and versions of MATLAB.
Discussion Character
- Technical explanation
- Debate/contested
- Mathematical reasoning
Main Points Raised
- One participant reports that the integral of the function 2*y*(sqrt(1-(y-1)^2)) from 0 to 2 returns a negative value, which seems incorrect given the positive integration region.
- Another participant successfully computes the same integral using two methods, both yielding a positive result of pi.
- A question is raised about the version of MATLAB being used, suggesting that discrepancies may arise from different software versions.
- A participant mentions working at MathWorks and indicates that a potential bug in an earlier version (12b) may have been fixed in the upcoming version (13a).
- One participant encounters an error when trying to execute the integral function, which they attribute to having named their own script "integral," thus overshadowing MATLAB's built-in function.
- Another participant confirms this issue and expresses gratitude for the clarification regarding the script name conflict.
Areas of Agreement / Disagreement
Participants do not reach a consensus on the original issue with the integral function, as some are able to reproduce the expected result while others are not. The discussion includes multiple viewpoints regarding the potential causes of the discrepancies.
Contextual Notes
Limitations include the dependence on specific MATLAB versions and the potential for user-defined scripts to interfere with built-in functions, which may not be universally applicable to all users.