<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII"><META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1"><TITLE>question on adding to an array</TITLE></HEAD><BODY><!-- Converted from text/rtf format --><P ALIGN=LEFT><SPAN LANG="en-ca"><FONT COLOR="#000080" FACE="Arial">Hello </FONT></SPAN></P><P ALIGN=LEFT><SPAN LANG="en-ca"><FONT COLOR="#000080" FACE="Arial">I have</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-ca"> <FONT COLOR="#000080" FACE="Arial">a vee question</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-ca"><FONT COLOR="#000080" FACE="Arial"> which I have not been able to figure out</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-ca"><FONT COLOR="#000080" FACE="Arial">. How do you take a n by m array and add a 1 by m vector to it so that you get a n+1 by m array as a result?</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-ca"><FONT COLOR="#000080" FACE="Arial"> Both n, m are arbitrary numbers</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-ca"><FONT COLOR="#000080" FACE="Arial"> determined by using the</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-ca"> <FONT COLOR="#000080" FACE="Arial">“</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-ca"><FONT COLOR="#000080" FACE="Arial">get values</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-ca"><FONT COLOR="#000080" FACE="Arial">”</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-ca"><FONT COLOR="#000080" FACE="Arial"> object. </FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-ca"> </SPAN></P><BR><P ALIGN=LEFT><SPAN LANG="en-ca"><FONT COLOR="#000080" FACE="Arial">Regards,</FONT></SPAN></P><P ALIGN=LEFT><SPAN LANG="en-ca"><FONT COLOR="#000080" FACE="Arial">Andrew Chow</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-ca"> </SPAN></P><BR><BR>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to<BR>"owner-vrf@it.lists.it.agilent.com".<BR>Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".</BODY></HTML>
I have a vee question which I have not been able to figure out. How do you take a n by m array and add a 1 by m vector to it so that you get a n+1 by m array as a result? Both n, m are arbitrary numbers determined by using the “get values†object.Â
Regards,
Andrew Chow
---
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
How about a strRev(str) once you've written the number to a string. Then you can read it back again.
Or, all in one formula box: bits(sum(astext(bit(x,ramp(8,0,7)))))
-- Graeme Hilton R&D Engineer
Schlumberger Sensa
TAN,KIAH-LOON (A-Malaysia,ex1) wrote the following on 03/04/2006 10:14: > Hi Shawn, > > bitCmpl returns the 1's compliment of the binary number. > For Example, 3(00000011), I want the result to be 192 (11000000), bitCmpl gives me -4. I have created a function for that but there must be an easier way of doing it.... > > MirrorBinary.vee (Version 6.2) > > Kiah Loon > > >> Does VEE have a function to inverse, >> let say an 8 bit binary number? > > bitCmpl > -SHAWN-
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
I have a vee question which I have not been able to figure out. How do you take a n by m array and add a 1 by m vector to it so that you get a n+1 by m array as a result? Both n, m are arbitrary numbers determined by using the “get values†object.Â
Regards,
Andrew Chow
---
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
How about a strRev(str) once you've written the number to a string. Then you
can read it back again.
Or, all in one formula box: bits(sum(astext(bit(x,ramp(8,0,7)))))
--
Graeme Hilton
R&D Engineer
Schlumberger Sensa
TAN,KIAH-LOON (A-Malaysia,ex1) wrote the following on 03/04/2006 10:14:
> Hi Shawn,
>
> bitCmpl returns the 1's compliment of the binary number.
> For Example, 3(00000011), I want the result to be 192 (11000000), bitCmpl gives me -4. I have created a function for that but there must be an easier way of doing it....
>
> MirrorBinary.vee (Version 6.2)
>
> Kiah Loon
>
>
>> Does VEE have a function to inverse,
>> let say an 8 bit binary number?
>
> bitCmpl
> -SHAWN-
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".