Post Reply 
Really really fast BASIC handheld
01-11-2019, 06:27 AM
Post: #7
RE: Really really fast BASIC handheld
(01-10-2019 08:54 AM)ijabbott Wrote:  
(01-10-2019 08:37 AM)berndpr Wrote:  Yes, I know. But as far as I understand the benchmark is using degree as input for the sin function. For comparing the results I thought I use the same input, even this is mathematical not necessary.


But X isn't in degrees or radians. It is the tangent of an angle. SIN(ATAN(X)) is the sine of the same angle and should give the same result (subject to minor rounding errors) on a calculator set to degrees or radians. By replacing X with RAD(X) you are passing the wrong values to the SIN(ATAN(x)) function.

I'm not sure if the benchmark specifies degrees or radians mode to be used. There might be a slight difference in speed between the two for a particular machine, but the final resulting value should be more or less the same (subject to accumulated rounding errors).

OK, you are right.

I have delete the RAD function:
I got this results for 100000:
Time 0.53 and 139560.97614105.
So it's faster and the result is different.

I hope this satisfy you now.

Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: Really really fast BASIC handheld - berndpr - 01-11-2019 06:27 AM

User(s) browsing this thread: 1 Guest(s)