Re: Question on ->V2 and ->ARRY
- From: Khanh-Dang <khanh-dang@xxxxxxxxxxxx>
- Date: Tue, 8 Aug 2006 09:47:22 +0200
Herve Chappe <herve.chappe@xxxxxxxxxxx> wrote:
- now, if I put two complex on the stack, say (1,2) and (3,4) and I
want to build the array [(1,2) (3,4)], then ->V2 does not work any
more but 2 ->ARRY still works.
This is because ->ARRY and ->V2 don't have the same purpose.
->ARRY is used to build an array of any size.
->V2 is used when you want to build a two-dimensional vector, this
vector having a few representations. According to flag -19, a 2D vector
can be either a complex number or a { 2 } array (with ->ARRY notations).
According to the chosen "coord. system" (rectangular, polar or
spherical), the vector can be expressed and displayed in different ways.
To put it in a nutshell, just use ->V2 when you want to deal with
2D vectors, converting them easily from rectangular to polar coord.
system, or from polar to rectangular coord. system.
.
- References:
- Question on ->V2 and ->ARRY
- From: Herve Chappe
- Question on ->V2 and ->ARRY
- Prev by Date: Re: Plotting slow user programs
- Next by Date: Re: extable2 double entry
- Previous by thread: Question on ->V2 and ->ARRY
- Next by thread: Re: Question on ->V2 and ->ARRY
- Index(es):
Relevant Pages
|
Loading