This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-05-31 01:01:58

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

bugs and features (trig functions)

I finally found something that works *better* in the Java implementation than in the Squeak implementation.

I added some trig functions to my RPN calculator

http://scratch.mit.edu/projects/kevin_karplus/2164

The arctan computes with full precision in the Java implementation, but rounds to the nearest degree in the squeak implementation.  Needless to say, I like the java implementation better, though I can see problems if people use  if <direction>=90 rather than if round(<direction>) = 90.

Since there *is* a round operator, but no way to restore lost precision, I suggest fixing the Squeak implementation to match the Java implementation on the meaning of the <direction> block.

I did claim a bug (other than the misfeature of rounding direction).  It was in the web site, which did not update the thumbnail for the calculator when I re-submitted the project, even though the appearance of the calculator has changed with the extra keys.

Offline

 

Board footer