- Random Trig ratios
- 20 Apr 2018 04:08:30 pm
- Last edited by 21tmccauley on 20 Apr 2018 04:40:54 pm; edited 1 time in total
Since we were reviewing trig in my math class, I decided I wanted to make a simple program that messes around some trig ratios and to hopefully get me back into some light programming.
The first problem comes with my lack of knowledge on using strings, (and by lack, I mean virtually none). My goal is to have random numbers generated, put into a string, and use those as the vertices of a triangle.
Code:
What I don't know how to do is take the numbers out of the string and have them put in the variables "A,B,C,D". After that, I just need to shuffle the numbers around to draw the triangle.
EDIT: Forgot to say this was on Ti 84 plus CE
The first problem comes with my lack of knowledge on using strings, (and by lack, I mean virtually none). My goal is to have random numbers generated, put into a string, and use those as the vertices of a triangle.
Code:
FnOff
-10->Xmin:-10->Ymin:10->Xmax:10->Ymax
ClrDraw
randIntNoRep(-5,5,6)->L1
toString(L1
"This is where I am stuck"
Line(A,B,C,D
A->G:B->H:C->A:D->B
Line(A,B,E,F
What I don't know how to do is take the numbers out of the string and have them put in the variables "A,B,C,D". After that, I just need to shuffle the numbers around to draw the triangle.
EDIT: Forgot to say this was on Ti 84 plus CE