TI 83/84
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWARETI 83/84
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!

Download and Activate to enter!
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today. .

Download to Enter | Contest Rules

Learn More!

Tutorials | Forums

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old April 1st, 2009, 09:13 AM
MrLarkins's Avatar
MrLarkins MrLarkins is offline
The HS Math Teacher
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Location: Central Arkansas
Posts: 72 MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 33 m 45 sec
Reputation Power: 6
Send a message via ICQ to MrLarkins
Tweak It - Equation of Circle From 3 Points

This program works great, but I offer it up for tweaks to make it better/prettier, etc.

Usually in a class with Conic Sections, you are required to write the equation of a circle in standard form that passes through 3 points. This involves plugging the 3 given ordered pairs into the general form for a circe (x^2 + y^2 +Dx +Ey +F=0) and then solving the system of resulting equations. This process can be lengthy.

This program allows the user to input the 3 points, then it inserts then into lists, converts the lists to a single matrix, uses rref() (reduced-row echlon form) to solve the system of equations and then completes the square, and finally spits out the center of the circle (H,K) and the R^2 for the standard form equation (x-H)^2 + (y-K)^2 = R^2
Code:
:Disp "POINT 1:"
:Prompt A,B
:Disp "POINT 2:"
:Prompt C,D
:Disp "POINT 3:"
:Prompt E,F
:ClrList L1,L2,L3,L4,L5
:{A,C,E}->L1
:{B,D,F}->L2
:L1^2->L3
:L2^2->L4
:{1,1,1}->L5
:List>matr(L1,L2,L5,(-L3-L4),[A])
:rref([A])->[A]
:Matr>list([A],L1,L2,L3,L4)
:-L4(1)/2->H
:-L4(2)/2->K
:-L4(3)+L4(1)^2/4+L4(2)^2/4->R
:Disp "H=",H
:Disp "K=",K
:Disp "R^2=", R
__________________
...................|| MrLarkins.com || ...................

Last edited by MrLarkins : April 1st, 2009 at 09:16 AM.

Reply With Quote
  Trader Rating: 0 · #2  
Old December 2nd, 2011, 05:39 PM
Boctroy Boctroy is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Dec 2011
Posts: 1 Boctroy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 49 sec
Reputation Power: 0
Just what i needed

Last edited by Boctroy : December 2nd, 2011 at 06:11 PM. Reason: Thanks

Reply With Quote
  Trader Rating: 0 · #3  
Old December 3rd, 2011, 02:49 PM
Janet Chauvin Janet Chauvin is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Dec 2011
Posts: 1 Janet Chauvin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 26 sec
Reputation Power: 0
Program

Quote:
Originally Posted by Boctroy
Just what i needed


I tried programming my TI 84 with this program. Did you get it to work?

Reply With Quote
  Trader Rating: 0 · #4  
Old December 3rd, 2011, 05:05 PM
tifreak8x tifreak8x is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Jun 2011
Location: USA
Posts: 37 tifreak8x User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 1 m 30 sec
Reputation Power: 1
Send a message via AIM to tifreak8x
Quote:
Originally Posted by MrLarkins
This program works great, but I offer it up for tweaks to make it better/prettier, etc.

Usually in a class with Conic Sections, you are required to write the equation of a circle in standard form that passes through 3 points. This involves plugging the 3 given ordered pairs into the general form for a circe (x^2 + y^2 +Dx +Ey +F=0) and then solving the system of resulting equations. This process can be lengthy.

This program allows the user to input the 3 points, then it inserts then into lists, converts the lists to a single matrix, uses rref() (reduced-row echlon form) to solve the system of equations and then completes the square, and finally spits out the center of the circle (H,K) and the R^2 for the standard form equation (x-H)^2 + (y-K)^2 = R^2
Code:
:Disp "POINT 1:"
:Prompt A,B
:Disp "POINT 2:"
:Prompt C,D
:Disp "POINT 3:"
:Prompt E,F
:ClrList L1,L2,L3,L4,L5
:{A,C,E}->L1
:{B,D,F}->L2
:L1^2->L3
:L2^2->L4
:{1,1,1}->L5
:List>matr(L1,L2,L5,(-L3-L4),[A])
:rref([A])->[A]
:Matr>list([A],L1,L2,L3,L4)
:-L4(1)/2->H
:-L4(2)/2->K
:-L4(3)+L4(1)^2/4+L4(2)^2/4->R
:Disp "H=",H
:Disp "K=",K
:Disp "R^2=", R


You don't really need the ClrList command, as storing to the lists as you do eliminates any aspects of the lists and recreates them from nothingness with the values you push into them.

Speaking of storing to the lists, you can easily do {1,1,1->L5 without needing the closing }. Same goes with storing back to the matrix. The -> token automatically closes that out for you.

And you don't need the ending " at the end of the Disp commands at the top. The ones at the bottom of your code needs them, however.

Reply With Quote
  Trader Rating: 0 · #5  
Old December 4th, 2011, 07:53 AM
MrLarkins's Avatar
MrLarkins MrLarkins is offline
The HS Math Teacher
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Location: Central Arkansas
Posts: 72 MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 33 m 45 sec
Reputation Power: 6
Send a message via ICQ to MrLarkins
great points....that'll cut some bits from the memory.

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWARETI 83/84 > Tweak It - Equation of Circle From 3 Points


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
     
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 10 - Follow our Sitemap
LOADING INFUSIONSOFTLOADING INFUSIONSOFT 1debug:overlay status: OFF
overlay not displayed overlay cookie defined: TI_CAMPAIGN_1012_D OVERLAY COOKIE set:
status off