function errir in symbolic

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

function errir in symbolic

Mankin, Erik

Hello,

 

I installed octave 4.4.0 and then the package symbolic version 2.7.0

 

Running the following code

 

 

syms xx m

solve(xx == 2*xx + 6, xx)

 

bb=[-2, -1, 0, 1, 2];

cc=polyout(bb,'m')

cc

[c9, t9] = coeffs(cc)

 

The function solve (beeing in the package symbolic) works fine, whereas

Coeffs does not work:

error: 'coeffs' undefined near line

 

Thanks in advance

Erik



Reply | Threaded
Open this post in threaded view
|

Re: function errir in symbolic

Doug Stewart-4


On Tue, Jul 31, 2018 at 10:46 AM, Mankin, Erik <[hidden email]> wrote:

Hello,

 

I installed octave 4.4.0 and then the package symbolic version 2.7.0

 

Running the following code

 

 

syms xx m

solve(xx == 2*xx + 6, xx)

 

bb=[-2, -1, 0, 1, 2];

cc=polyout(bb,'m')

try

cc=poly2sym(bb,'m')
 

cc

[c9, t9] = coeffs(cc)

 

The function solve (beeing in the package symbolic) works fine, whereas

Coeffs does not work:

error: 'coeffs' undefined near line

 

Thanks in advance

Erik







--
DASCertificate for 206392



Reply | Threaded
Open this post in threaded view
|

Re: function errir in symbolic

Colin Macdonald-2
In reply to this post by Mankin, Erik
On 2018-07-31 07:46 AM, Mankin, Erik wrote:
> cc=polyout(bb,'m')

I replied to your bug report [1] in more detail but briefly: here cc is
a char.  Try `cc = poly2sym(bb, m)` instead.

[1] https://github.com/cbm755/octsympy/issues/904

Colin