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

Username:   Password: 
 RegisterRegister   
 Quit #100, okay now what does this mean?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
GillaMobster




PostPosted: Sat Jan 08, 2005 1:55 pm   Post subject: Quit #100, okay now what does this mean?

I keepgetting the error

Quit #100

on this line of code

code:

angle := arccosd ((reference ** 2 + longest ** 2 - distance ** 2) / (2 * reference * longest))


Can you tell me what the error means?
Sponsor
Sponsor
Sponsor
sponsor
AsianSensation




PostPosted: Sat Jan 08, 2005 2:56 pm   Post subject: (No subject)

what type did you declare for each variable?

angle should be a real

reference and longest should never have a value of 0

also, the value inside the arccosd() function should never be greater than 1 and less than -1
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: