Subject:
|
Re: NQC with C++ header file
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 25 Oct 2000 04:52:15 GMT
|
Viewed:
|
929 times
|
| |
| |
In article <39EFAD67.3834E8A4@hkusua.hku.hk>, Yiu
<h9819152@hkusua.hku.hk> wrote:
> Could we include C++ header file into NQC?
> say, <math.h>
> if not, how could we increase the mathematical power of NQC?
What specifically do you have in mind? The limitation is going to be
from the firmware bytecodes...no floating point, no transcendentals, no
math larger than 16 bits.
Switching over to legOS would give you floating point, but still no
transcendentals.
Dave
--
reply to: dbaum at enteract dot com
|
|
Message has 2 Replies: | | RE: NQC with C++ header file
|
| (...) Bah! We don't need no stinkin floating point. Here are a few approximations to real and transcendental numbers that you can make by dividing signed integers - the error is gennerally less that 1 in 1,000,000 pi 355 /113 sqrt(2) 19601 / 13860 e (...) (24 years ago, 25-Oct-00, to lugnet.robotics)
| | | RE: NQC with C++ header file
|
| Absolutely! You'd be amazed at what can be done with 16 bit integer arithmetic if you operate at some suitable scale factor, depending upon the requirements - x10, x100, x16, x256. It depends on the ease with which you can shift and/or divide. As (...) (24 years ago, 25-Oct-00, to lugnet.robotics)
|
Message is in Reply To:
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|