help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with symbolic package


From: Przemek Klosowski
Subject: Re: problem with symbolic package
Date: Thu, 2 Aug 2018 12:29:20 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 08/02/2018 10:46 AM, Beginner1 wrote:
However, when I introduce these two new matrixes:

A_il=[0 1 0 0 0 0 0 0; 0 0 1 0 0 0 0 0;0 0 0 1 0 0 0 0; -(w^2-wg0^2) 0
-4*w^2 0 0 0 0 0;0 0 0 0 0 1 0 0;0 0 0 0 0 0 1 0;0 0 0 0 0 0 0 1;0 0 0 0
-(w^2-wg0^2) 0 -4*w^2 0];
B_il=[0 0 0 0 0 0 0;0 0 0 0 0 0 0;0 0 0 0 0 0 0;0 0 -1 0 1 0 -4*w*x3d_0;0 0
0 0 0 0 0;0 0 0 0 0 0 0;0 0 0 0 0 0 0;0 0 0 -1 0 1 -4*w*x3q_0];

instead of obtaining their format in symbolic I obtain this message error:

error: octave_base_value::map_value(): wrong type argument 'scalar'

Simplified case:

pkg load symbolic
syms kv;

a=[kv 1; 1 kv]

works, but

a=[0 1; 1 kv]

does not. I am not sure why but in general I personally prefer using maxima/rmaxima/wxmaxima for symbolic stuff.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]