Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Computed SineCosine

Author
Message
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 11th Mar 2016 23:55 Edited at: 13th Mar 2016 23:45
This is for that rare breed interested in how to compute sine and cosine with pencil and paper. Precision matches that of a float type variable.

Chris Tate
DBPro Master
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 13th Mar 2016 23:11
Nice one. I have no clue why it works, but it works

By the way, DEGTORAD ( AngleInDegrees ) is a Matrix1 function, so your constant will register as a reserved word and will not compile with Matrix1 installed.

Thanks
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 13th Mar 2016 23:54
Thank you, Chris. For some reason I have Matrix1 Util's. I just haven't found a real need to use it.
Chris Tate
DBPro Master
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 14th Mar 2016 12:34
No problem.

You appear to be na extremely skilled programmer; I look forward to seeing more of your examples. I will likely have some programming questions to ask in future.
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 14th Mar 2016 22:07
Thanks, I find you a wicked skilled programmer yourself. I will be happy to answer any questions, just don't ask me how this works. To make a long story short, I got the formula out of a calculus book.

Login to post a reply

Server time is: 2024-11-08 22:21:48
Your offset time is: 2024-11-08 22:21:48