Peppino
- 39
- 0
I would like to make a program for which you give two vectors, A and B, and it returns (A^2 + B^2)^0.5. How can I do this?
The discussion revolves around creating a program for the TI-89 calculator that calculates the magnitudes of two vectors, A and B. Participants explore programming techniques and share code snippets for implementation.
Participants generally agree on the approach to creating the program, but there is no consensus on the best coding practices or the most effective implementation.
The provided code snippet contains a potential error in the formula, as it uses (a^2-b^2) instead of (a^2 + b^2), which may lead to confusion regarding the intended calculation of vector magnitudes.
Individuals interested in programming on the TI-89 calculator, particularly those looking to calculate vector magnitudes or similar mathematical operations.