Tcl Library Source Code

Artifact [810cde4f6d]
Login

Artifact 810cde4f6d8f1e2a45e326d05cbc02a73bd3ae0d21a783fffecd96138b8e56d1:

Ticket change [810cde4f6d] - Ticket [21fef042b91ca252|21fef042b9] <i>add sind ,cosd, etc to geometry functions</i> status still Open with 3 other changes by arjenmarkus 2018-07-23 06:55:10.
D 2018-07-23T06:55:10.261
J icomment What\sI\sforgot\sto\smention\sis\sthat\sthe\simplementation\sof\sthe\sdegrees\sversion\sof\ssin,\scos,\setc.\sis\ssuch\sthat\smultiples\sof\s90\sdegrees\swill\sresult\sin\sexact\svalues,\sthat\sis:\ssind(180)\s=\s0,\scosd(90)\s=\s0,\ssind(90)\s=\s1.\r\n\r\nThis\sis\sachieved\sby\sreducing\sthe\sangle\sto\san\sinterval\s-45\sto\s45\sdegrees\sfirst\sand\skeeping\strack\sof\sthe\squadrant\s(rotated\sover\s45\sdegrees)\sin\swhich\sthe\soriginal\sangle\slies.\sThen\sconverting\sto\sradians\sand\sapplying\sbasic\strigonometric\sformulae.\r\n\r\nNo\ssuch\sclaim\sof\sexactness\sis\smade\sfor\sother\sangles\sfor\swhich\sone\sor\smore\sof\sthe\ssine/cosine/...\sfunctions\syield\sa\srational\svalue.
J login arjenmarkus
J mimetype text/plain
K 21fef042b91ca252fc2a20ead5cd05c2b51b1776
U arjenmarkus
Z 222405cfc3814fef027cdf871bfbe167