Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 easier arc
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
rollerdude




PostPosted: Sat Mar 12, 2005 11:56 am   Post subject: easier arc

earlier, i made a program that makes arcs, i was fiddling around when i found a better subroutine:

sind instead of sin

code:

setscreen ("nocursor,noecho,graphics:300;200")
for i : 1 .. 300
        Draw.Dot (i, round (199* sind (i/2)), black)
        delay (10)
        c+=1
end for


Draw.Dot(i:int,round(maxx-1:int * sind (i/2)),colour)

kinda understand?
know you don't need to fiddle around with decimals
Sponsor
Sponsor
Sponsor
sponsor
ssr




PostPosted: Sat Mar 12, 2005 12:53 pm   Post subject: (No subject)

thats nice
but whats up with the arcs
soooo many piosts about them Very Happy
but thats nice code yes
AsianSensation




PostPosted: Sat Mar 12, 2005 2:16 pm   Post subject: (No subject)

sind uses degrees
sin uses real values, namely radian measurements. Those are the only difference.

When you are using sind, it's easier to use, because you are use to the Babylonian measurements of 360 degrees. sin uses radian measure such as pi/2, pi/4 and etc, etc.
dann_west




PostPosted: Mon May 02, 2005 2:13 pm   Post subject: Re: easier arc

great idea.
Arcs get kinda boring dont ya think though
Great coding
Twisted Evil
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: