To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2332
2331  |  2333
Subject: 
Re: exponents, e^
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 6 Mar 2002 10:03:31 GMT
Viewed: 
1952 times
  
Dave

I am working on a number of maths functions that includes
loge log10  expe and exp10 x^y as well as trig functions.  As
you note it requires the specification of the mantassa and exponent
desciption of the float variable for the RCX.  Usually this is
done in most maths libraries by splitting a variable using a union
desciption (float -> union  { float y; unsigned short bit[2]; }) - this
needs the endian encoding for the RCX.
I am conducting some tests but I get little more than a couple of
minutes/week to work on this.  In particular many maths functions
require the function x*2^n, and most current maths libraries are
at very least double/quad precision so conversion needs some thought.

Regards

tom


In lugnet.robotics.rcx.legos, David Dubravetz writes:
hello,
i've searched through the discussions but i haven't been able to find any
info on using floats with exponents in legOS, specifically the inverse of
natural log: e^. actually, i can't find any info about integers with
exponents either.  i am programming a backprop neural net to run on the RCX
that uses a sigmoid activation function: (1/(1 + e^(-D*net))). i've seen a
few posts on trig functions, but i really would prefer exponents if possible.
any suggestions/help would be appreciated.
thanks,
dave



Message has 1 Reply:
  Re: exponents, e^
 
you know i was looking at lejos, java for RCX, and it seems to have exponents, trig, etc. functions built in. any advantages legOS has over lejos i don't know about. if not, i think i may give it a whirl.... -dave (...) (23 years ago, 6-Mar-02, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  exponents, e^
 
hello, i've searched through the discussions but i haven't been able to find any info on using floats with exponents in legOS, specifically the inverse of natural log: e^. actually, i can't find any info about integers with exponents either. i am (...) (23 years ago, 6-Mar-02, to lugnet.robotics.rcx.legos)

6 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR