The actual mote hardware has no support for multiply and divide. However, there is a native math library (on my installation the header file is /usr/avr/include/math.h) that comes with the tinyos AVR tooclchain. It provides some math support in the form of floating point multiply, divide, power, log etc. Tinyos-1.1.15  by default links against this library (-lm flag).

On Tossim I believe your code is linked with the libc math library. So to answer your question, yes it is possible to simulate a network in Tossim in which sensors are perfroming multiplications etc.



On 10/12/06, Torsha Banerjee <[EMAIL PROTECTED]> wrote:
Hi all,
  I am a PhD student and trying to write a program in NesC which
involves mathematical operations like matrix multiplications. this will
be for a matrix of size maximum 5 by 5. Will this be possible in NeSC
or to be more precise in TOSSIM to simulate a network of 5-6 sensors
where each sensor will perform this mathematical operation?
Please let me some links or tutorials for learning more about how to
program in NESC and TOSSIM.
Thanks


+----------------------------------------------------------------------+
| Torsha Banerjee                                                      |
| Ph.D Student                         Email:[EMAIL PROTECTED]     |
| University of Cincinnati             Lab Phone: (513) 556-3437       |
| CDMC Laboratory                                                      |
| ECECS Dept, PO Box 210030                                            |
| Cincinnati, OH 45221-0030                                            |
+----------------------------------------------------------------------+

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to