marco maso wrote:
> Hi, last month i had a doubt about Bchenco and thanks to your help 
> i've managed to solve my problems...but now i have again that silly 
> last question:
>
> In & out parameters in octave function are always LSB on the left?
> I mean, referring to bchenco fro example:
>
> bchenco([1 0 1 1],7,4)
>
> 1 0 1 1 = 11    or   1 0 1 1 = 13
>
> i thought that since bchpoly gives a polynomial with the LSB on the 
> left all the other functions would work coherently...am i wrong?
>
> Thanks
>
> Marco
>
All of this is documented.. Type "doc comms" at the prompt to get the on 
line version of the manual or look at it online at

http://octave.sourceforge.net/comm/local/comms_4.html#SEC13

In short

octave:2> bchpoly(14,6)
ans =

1 0 0 0 1 0 1 1 1

which is

1 + x ^ 4 + x ^ 6 + x ^ 7 + x ^ 8

so yes it is LSB first. So the above case "1 0 1 1" = 13. The functions 
are suppose to be coherent in their definitions, if they aren't then 
please give an example of the incoherence..

Regards
David



D.


-- 
David Bateman                                [EMAIL PROTECTED]
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to