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

  • Thread starter Thread starter Peppino
  • Start date Start date
  • Tags Tags
    Programs Ti-89
Click For Summary
To create a program that calculates the square root of the sum of the squares of two vectors A and B, users can refer to the TI-89 Titanium Guidebook for programming instructions. The guide provides a comprehensive introduction to entering and running custom programs. A simple implementation of the desired function can be achieved with the code snippet: :Prompt a,b :Disp (a^2 + b^2)^0.5 This basic version effectively performs the calculation, although it may lack aesthetic appeal.
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.
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...

Similar threads

Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
2K
  • · 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 5 ·
Replies
5
Views
7K
  • · Replies 1 ·
Replies
1
Views
11K
Replies
1
Views
2K