-
-
Notifications
You must be signed in to change notification settings - Fork 360
Added Monte Carlo Implementation in TI-83 BASIC #553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"MONTE PROGRAMMED BY CODING WITH ETHANOL | ||
ClrHome | ||
Prompt M | ||
0->C | ||
0->I | ||
StoreGDB 0 | ||
ClrDraw | ||
AxesOff | ||
CoordOff | ||
GridOff | ||
LabelOff | ||
0->Xmin:1->Xmax | ||
0->Ymin:1->Ymax | ||
Circle(0,0,1) | ||
For(I,0,M,1) | ||
::rand->X | ||
::rand->Y | ||
::Pt-On(X,Y) | ||
::If ((X*X+Y*Y)<1) | ||
::Then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see what you did here and I have to admit that it makes it slightly more readable on a PC screen, but I ran into the issue that |
||
::::C+1->C | ||
::End | ||
End | ||
ClrHome | ||
(C/M)*4->E | ||
Text(28,43,E) | ||
Pause | ||
RecallGDB 0 | ||
ClrHome |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The StoreGDB function changed between the TI-82 and TI-83. On an 82 this has to be
StoreGDB GDB1
instead. Do these GDB vars still exist on the 83? If not, then we'll keep it like this.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with how the GDB system works but I can confirm that those variables do still exist on my TI-84 Plus.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After checking an unofficial changelog, there is nothing to suggest that these variables wouldn't be on a TI-83 either.