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
Author Message
Awesome1


Advanced Member


Joined: 28 Jan 2004
Posts: 269

Posted: 16 May 2004 04:50:58 pm    Post subject:

I would use something that corresponds with the keys being pressed, though i never really thought hard about doing it in basic, assembly is they way to go.... It would take a person that knows they're shit about basic to do that. If i remember correctly there was someone that had done a 3D rotation in basic..... I don't remember where it was, i'll keep my eye out for it...
Back to top
Jedd
1980 Pong World Champion


Elite


Joined: 18 Nov 2003
Posts: 823

Posted: 16 May 2004 04:52:47 pm    Post subject:

Yeah, that's easy. Sin( and Cos( will give you the X and Y coordinates for something that is 1 away from a point. All you have to do is give it an angle. So if you want to find out the coordinates for 90 degrees, use these as X and Y:

sin(90)->X
cos(90)->Y

-> means the STO key, just above the ON button. If you want to find out the coordinates for an object 5 away from a point at 90 degrees, just do this:

5sin(90)->X
5cos(90)->Y

And if you want the coordinates for an object 5 away from the point (49,2Cool, then do this:

49+5sin(90)->X
28+5cos(90)->Y

Etc. Of course, you can use variables in place of any of those numbers. Hopefully this helps you. If you need more specifics, let me know. And if anyone sees any mistakes I made please let me know.

And welcome to UTI!

-J


Last edited by Guest on 16 May 2004 04:53:05 pm; edited 1 time in total
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 17 May 2004 10:17:05 am    Post subject:

You can only give it an angle between 0 and 360 if your calc is in degrees mode, if it's in radian mode you need to convert it like htis:

degrees = 180*radians
Back to top
Molyme


Newbie


Joined: 24 Jan 2004
Posts: 4

Posted: 17 May 2004 11:55:26 am    Post subject:

Hm.. Im using this when I usually convert to degrees

degrees = (180 / pi) * radians
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 17 May 2004 12:46:10 pm    Post subject:

radians being 0.5*pi for example.
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 17 May 2004 04:23:19 pm    Post subject:

whoa, I didn't realize angles were so easy!
I was trying to think up some mathmatical way to do them Laughing
Back to top
Jedd
1980 Pong World Champion


Elite


Joined: 18 Nov 2003
Posts: 823

Posted: 17 May 2004 06:11:40 pm    Post subject:

Hehe, yeah the basics are easy. But just wait for trig, then you'll see.

-J
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 18 May 2004 02:24:12 am    Post subject:

trig?
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 18 May 2004 03:19:25 pm    Post subject:

This is trig. Also, you could try using the polar > rectangular conversions: P>Rx( and P>Ry( to do the same thing. Don't know why though, sin( and cos( are faster and smaller.
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 18 May 2004 03:28:01 pm    Post subject:

Sir Robin wrote:
This is trig.

That helped. Neutral

Is it short for something? Triginometrics?
Back to top
sgm


Calc Guru


Joined: 04 Sep 2003
Posts: 1265

Posted: 18 May 2004 03:58:50 pm    Post subject:

Most people call it "trigonometry".

And for FFR:
logs -> logarithms
calc -> calculus
quad -> quadratic
et al.


Last edited by Guest on 18 May 2004 03:59:55 pm; edited 1 time in total
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 18 May 2004 04:06:36 pm    Post subject:

diff eq -> differential equations
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 18 May 2004 05:23:38 pm    Post subject:

Arcane Wizard wrote:
Sir Robin wrote:
This is trig.

That helped. Neutral

Is it short for something? Triginometrics?

Well, most over here would call it Trigonometry. Trigonometrics makes more sense though...
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 18 May 2004 05:36:42 pm    Post subject:

Yes, sigma already asnwered that.
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
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement