Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic => TI-BASIC
United-TI Archives -> TI-Basic
 
    » Goto page Previous  1, 2, 3
» View previous topic :: View next topic  
Author Message
Sven.Thomas0


Active Member


Joined: 19 May 2009
Posts: 520

Posted: 05 Mar 2010 08:42:07 am    Post subject:

Hey y'all, try this:

a+bi
ClrHome
Input "EQU:",Str1
Str1→u
ClrHome
3ΔX→B Change this to something like 5ΔX if you want.
3ΔY→C
For(X,Xmin-1.5B,Xmax+.5B,2B
For(Y,Ymin-1.5C,Ymax+.5C,2C
If not(imag(u
Line(X,Y,X+B,Y+Cu
End
End

ΔX and ΔY are very useful because they can control the window range, too. These hold the ratio of total window range:#of pixels. 1→ΔY would mean that every time you move the cursor down or up, the Y value decrements or increments 1. Likewise, you can get the current value by using these.


Last edited by Guest on 05 Mar 2010 08:46:39 am; edited 1 time in total
Back to top
thornahawk
μολών λαβέ


Active Member


Joined: 27 Mar 2005
Posts: 569

Posted: 05 Mar 2010 10:02:37 pm    Post subject:

The code in ThunderBolt's post is correct only if you have set ΔY==ΔX; the slope of the lines generated are incorrect otherwise.

thornahawk
Back to top
Sven.Thomas0


Active Member


Joined: 19 May 2009
Posts: 520

Posted: 08 Mar 2010 10:35:03 am    Post subject:

Visually, yes, but mathematically, no. If you're window range is skewed, the graph of the actual equation will look skewed, too. So really, it isn't the slope that is wrong, it is the graph.
Back to top
thornahawk
μολών λαβέ


Active Member


Joined: 27 Mar 2005
Posts: 569

Posted: 08 Mar 2010 07:58:14 pm    Post subject:

The slope of Line(X,Y,X+B,Y+Cu) == Line(X,Y,X+3ΔX,Y+3ΔYu) is (Y+3ΔYu-Y)/(X+3ΔX-X) == ΔYu/ΔX when it should be just plain u. :|

thornahawk
Back to top
meishe91


Newbie


Joined: 06 Dec 2009
Posts: 49

Posted: 09 Mar 2010 05:44:46 pm    Post subject:

I'm not really following any of that. Razz

Last edited by Guest on 09 Mar 2010 05:50:39 pm; edited 1 time in total
Back to top
Sven.Thomas0


Active Member


Joined: 19 May 2009
Posts: 520

Posted: 10 Mar 2010 09:00:46 am    Post subject:

Gotcha, my bad.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2, 3
» View previous topic :: View next topic  
Page 3 of 3 » All times are GMT - 5 Hours

 

Advertisement