Hi,
Thx for the answer.
On 30.10.2011 22:10, Oliver Kullmann wrote:
> On Sun, Oct 30, 2011 at 09:46:26PM +0100, Adam Majewski wrote:
>> I have made :
>>
>> (%i4) L:([1,2,3],[4,5,6],[0,-1,-2]);
>> (%o4) [0, - 1, - 2]
>>
>> I do not know what happens here.
>>
>
> Hi,
>
> it would be useful if you would also tell us what you
> wanted to achieve.
I was trying to manually fill 2D-array, but instead [] i used ()
>
> Anyway:
> - everything in Maxima has a value
> - bracketing via "()" corresponds to creating compound
> statements in other languages, for example "{}" in
> C-like statements, except that no local variables
> are obtained
> - so (...) is just the list of expressions from left to
> right, with the last expression yielding the value
> of the whole expression.
>
> Oliver
Thx. The same behaviour is in function definition, but I
didn't know that is due to ().
I could't find it in Maxima doc so maybe it should be placed there.
Regards
Adam