How do I create a TI-89 program to calculate vector magnitudes?

  • Context: Calculators 
  • Thread starter Thread starter Peppino
  • Start date Start date
  • Tags Tags
    Programs Ti-89
Click For Summary

Discussion Overview

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.

Discussion Character

  • Homework-related, Technical explanation

Main Points Raised

  • One participant requests guidance on programming a TI-89 to compute the magnitude of two vectors using the formula (A^2 + B^2)^0.5.
  • Another participant provides a link to the TI-89 guidebook, suggesting that the requester refer to the programming section for instructions on creating and running programs.
  • A third participant offers a simple code snippet for the program, using the syntax: :Prompt a,b :Disp (a^2-b^2)^.5, noting that while it is basic, it serves the purpose.

Areas of Agreement / Disagreement

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.

Contextual Notes

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.

Who May Find This Useful

Individuals interested in programming on the TI-89 calculator, particularly those looking to calculate vector magnitudes or similar mathematical operations.

Peppino
Messages
39
Reaction score
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?
 
Computer science news on Phys.org
Go here

http://education.ti.com/guidebooks/graphing/89ti/TI89TitaniumGuidebook_Part2_EN.pdf

and scroll down the left hand column table of contents until you get to Programming. Then open up that section of the manual with a click. Step through the introduction page by page and it will show you how to enter and later run a program or function of your own.
 
Last edited by a moderator:
thanks.
 
If you just want a simple program...

:Prompt a,b
:Disp (a^2-b^2)^.5

Now, that is the most basic version, and not very good looking, but it will get the job done.
 

Similar threads

Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 1 ·
Replies
1
Views
8K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
11K
  • · Replies 5 ·
Replies
5
Views
7K
  • · Replies 1 ·
Replies
1
Views
10K