Basics Archives Community Services Programming
Hardware Help About Search Your Account
Home :: Archives :: File Archives :: Aberration?
Aberration?

FILE INFORMATION

Ranked as 11851 on our all-time top downloads list with 4180 downloads.
Ranked as 7804 on our top downloads list for the past seven days with 1 downloads.

aberration.zip
 Filename aberration.zip (Download) Title Aberration? Description See the read me for full details. In short, this program does something that Im pretty sure it shouldn't. See the text file. Author Wesley Cowan (polar_ice_cat@hotmail.com) Category TI-83/84 Plus BASIC Graphics Programs File Size 985 bytes File Date and Time Sun Jul 7 13:12:58 2002 Documentation Included? Yes

SCREEN SHOTS

REVIEWS

Review
 Review by Joe Pena Reviewed on 2004-04-17 It's not an aberration at all!! The rand() function is indeed totally random, as you were able to notice with the "Normal" part, the one which did not include reciprocals. Here's your code: Lbl 1Pt-On(1/rand-1,1/rand-1)Pt-On(-1/rand+1,1/rand-1)Pt-On(1/rand-1,-1/rand+1)Pt-On(-1/rand+1,-1/rand+1)getKey->XIf X=21 : ThenPauseGoto MEnd What is actually happening is that when you get a random number (say the calculator gave you .7980701009), you divide that number by one (which gives you 1.253022759), then add a one (that is 2.253022759). When you do the same for the Y-axis, you get that coordinate for either the X-axis or the Y-axis. You see, the calculator choose a random number for each digit of the rand() function, which means that there's a 1 out of 10 chance for you to get a .0xxxxxxxx and even small chance for you to get a .00xxxxxx. So because you are dividing 1 by the number, you are more likely to get a number closer to zero. Now, it's already difficult to get a small number in the X-axis but to get another small number for the Y-axis is even tougher. So you see, it's not the calculator's fault, itÂ’s what all random functions (rand(), randInt(), randM(), etc...) do.

LEAVE FEEDBACK

Questions, comments, and problems regarding the file itself should be sent directly to the author(s) listed above.

Write a review for this file (requires a free account)

Report inappropriate or miscategorized file (requires an account; or you may email us directly)

If you have downloaded and tried this program, please rate it on the scale below
 Bad Good 1  2  3  4  5  6  7  8  9  10

ARCHIVE CONTENTS

Archive Contents
Name Size
not!.txt   848
NOT.8xp   448

Copyright © 1996-2019, the ticalc.org project. All rights reserved. | Contact Us | Disclaimer