#598 Invalid work with arrays.

closed
nobody
5
2012-12-04
2004-09-27
Anonymous
No

I create new array:

array(A,3);

and init :

A[1]=123;
A[2]=234;
A[3]=345;

And i want get value of A[2] :

A[2];

I see A_2, but i wont get 234!!!

Discussion

  • James Amundson
    James Amundson
    2004-09-27

    Logged In: YES
    user_id=28457

    The assignment operator in Maxima is :. If you write

    [A[1]:123;
    A[2]:234;
    A[3]:345;

    you will ge the behavior you expected.

     
  • James Amundson
    James Amundson
    2004-09-27

    • status: open --> closed