Skip to content

Commit

Permalink
all equations implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicarod7 committed Jun 30, 2018
1 parent c1064e0 commit 7d98da7
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 20 deletions.
72 changes: 69 additions & 3 deletions PHYSBBLE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -431,18 +431,84 @@ End
Menu("SOLVE FOR?"," DISTANCE",D5," FINAL VELOCITY",F5," INITIAL VELOCITY",I5," ACCELERATION",A5," RETURN TO MAIN MENU",GO)

Lbl D5

Disp "FIND DIST., NO TIME"
Disp " "
Input "FINAL V.? (m/s) ",U
U→⌊PHVAR(1)
Input "INITIAL V.? (m/s) ",U
U→⌊PHVAR(2)
Input "ACCEL.? (m/s²) ",U
U→⌊PHVAR(3)
round(((((⌊PHVAR(1))²)-((⌊PHVAR(2))²))/(2*(⌊PHVAR(3)))),6)→⌊PHVAR(4)
Output(8,1,"DIST. =")
Output(8,9,⌊PHVAR(4))
Output(9,25,"m")
Wait 2
ClrHome
Output(1,1,"DIST. =")
Output(1,9,⌊PHVAR(4))
Output(2,25,"m")
Goto SA

Lbl F5

Disp "FIND FINAL V., NO TIME"
Disp " "
Input "DIST.? (m) ",U
U→⌊PHVAR(1)
Input "INITIAL V.? (m/s) ",U
U→⌊PHVAR(2)
Input "ACCEL.? (m/s²) ",U
U→⌊PHVAR(3)
round((√(((⌊PHVAR(2))²)+(2*(⌊PHVAR(3))*(⌊PHVAR(1))))),6)→⌊PHVAR(4)
Output(8,1,"FINAL V. =")
Output(8,12,⌊PHVAR(4))
Output(9,23,"m/s")
Wait 2
ClrHome
Output(1,1,"FINAL V. =")
Output(1,12,⌊PHVAR(4))
Output(2,23,"m/s")
Goto SA

Lbl I5

Disp "FIND INITIAL V., NO TIME"
Disp " "
Input "DIST.? (m) ",U
U→⌊PHVAR(1)
Input "FINAL V.? (m/s) ",U
U→⌊PHVAR(2)
Input "TIME? (m/s²) ",U
U→⌊PHVAR(3)
round((√(((⌊PHVAR(2))²)-(2*(⌊PHVAR(3))*(⌊PHVAR(1))))),6)→⌊PHVAR(4)
Output(8,1,"INITIAL V. =")
Output(8,14,⌊PHVAR(4))
Output(9,23,"m/s")
Wait 2
ClrHome
Output(1,1,"INITIAL V. =")
Output(1,14,⌊PHVAR(4))
Output(2,23,"m/s")
Goto SA

Lbl A5
Disp "FIND ACCEL., NO TIME"
Disp " "
Input "DIST.? (m) ",U
U→⌊PHVAR(1)
Input "FINAL V.? (m/s) ",U
U→⌊PHVAR(2)
Input "INITIAL V.? (m/s²) ",U
U→⌊PHVAR(3)
round(((((⌊PHVAR(2))²)-((⌊PHVAR(3))²))/(2*(⌊PHVAR(1)))),6)→⌊PHVAR(4)
Output(8,1,"ACCEL. =")
Output(8,10,⌊PHVAR(4))
Output(9,22,"m/s²")
Wait 2
ClrHome
Output(1,1,"ACCEL. =")
Output(1,10,⌊PHVAR(4))
Output(2,22,"m/s²")
Goto SA

Lbl ST
While 0
Expand Down
36 changes: 19 additions & 17 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# To Do

**All features have been implemented, currently testing release candidates**

An list of features to be implemented before the v1.0.0 release.

- [x] Add options to solve without a given variable
Expand Down Expand Up @@ -85,20 +87,20 @@ This is a fully-fledged list of the requirements for each section of the calcula
- [x] Request variables, and store as ⌊PHVAR(1-3)
- [x] Run calculation and store value as ⌊PHVAR(4)
- [x] Display result to user, delay, and return to main program
- [ ] **Time**
- [ ] *Distance* [T,D5]
- [ ] Request variables, and store as ⌊PHVAR(1-3)
- [ ] Run calculation and store value as ⌊PHVAR(4)
- [ ] Display result to user, delay, and return to main program
- [ ] *Final Velocity* [T,F5]
- [ ] Request variables, and store as ⌊PHVAR(1-3)
- [ ] Run calculation and store value as ⌊PHVAR(4)
- [ ] Display result to user, delay, and return to main program
- [ ] *Initial Velocity* [T,I5]
- [ ] Request variables, and store as ⌊PHVAR(1-3)
- [ ] Run calculation and store value as ⌊PHVAR(4)
- [ ] Display result to user, delay, and return to main program
- [ ] *Acceleration* [T,A5]
- [ ] Request variables, and store as ⌊PHVAR(1-3)
- [ ] Run calculation and store value as ⌊PHVAR(4)
- [ ] Display result to user, delay, and return to main program
- [x] **Time**
- [x] *Distance* [T,D5]
- [x] Request variables, and store as ⌊PHVAR(1-3)
- [x] Run calculation and store value as ⌊PHVAR(4)
- [x] Display result to user, delay, and return to main program
- [x] *Final Velocity* [T,F5]
- [x] Request variables, and store as ⌊PHVAR(1-3)
- [x] Run calculation and store value as ⌊PHVAR(4)
- [x] Display result to user, delay, and return to main program
- [x] *Initial Velocity* [T,I5]
- [x] Request variables, and store as ⌊PHVAR(1-3)
- [x] Run calculation and store value as ⌊PHVAR(4)
- [x] Display result to user, delay, and return to main program
- [x] *Acceleration* [T,A5]
- [x] Request variables, and store as ⌊PHVAR(1-3)
- [x] Run calculation and store value as ⌊PHVAR(4)
- [x] Display result to user, delay, and return to main program

0 comments on commit 7d98da7

Please sign in to comment.