|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#18
|
|||||
|
|||||
|
Trig Support
Yes, there is trig support
ABS - Absolute Value COS - Cosine SIN - Sine DCD - set bit weee here we go The Basic Stamp SIN operator breaks the circle down into 0 to 255 units instead of 0 to 359 degrees. Some textbooks call this unit a binary radian or brad. Each brad is equivalent to 1.406 degrees. And instead of a unit circle, which results in fractional sine values between 0 and 1. BASIC Stamp SIN is based on a 127-unit circle. Results are given in two's complement form in order to accommodate negative values. So, at the origin, SIN is 0. At 45 degrees (32 brads), sine is 90. At 90 degrees (64 brads), sine is 127. At 180 degrees (128 brads), sine is 0. At 270 degrees (192 brads), sine is -127. To convert brads to degrees, multiply by 180 then divide by 128. To convert degrees to brads, multiply by 128, then divide by 180. I hope this explains it, any questions? Last edited by rwaliany : 09-01-2003 at 20:25. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TEAM CONTACTS: SIGN UP HERE!!! | archiver | 2001 | 2 | 24-06-2002 03:51 |
| Wheres the list, whats the secret? | archiver | 2001 | 3 | 24-06-2002 01:31 |
| Full list of teams & competitions | archiver | 2001 | 14 | 24-06-2002 00:52 |
| Team list & Events | archiver | 2000 | 2 | 23-06-2002 22:39 |
| Suggested list of things to bring to the regionals | Andrew Wyatt | Technical Discussion | 1 | 06-03-2002 14:41 |