help-octave
[Top][All Lists]
Advanced

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

Re: Trouble with symbolic on the Octave


From: Doug Stewart
Subject: Re: Trouble with symbolic on the Octave
Date: Mon, 12 Jun 2017 10:35:56 -0400



On Mon, Jun 12, 2017 at 10:26 AM, Paulo Roberto <address@hidden> wrote:
Hello, Doug!

Some examples below:

1)
>> syms x y
>> S=(x^2+x-exp(x))*(x+3)
S = (sym)

              / 2        x\
  (x + 3)*\x  + x - e /

>> F=collect(S)
error: 'collect' undefined near line 1 column 3
>>
it was expected F=x^3+4*x^2+(-exp(x)+3)*x-3*exp(x)

2)
>> syms x y
>> S=x*(x*(x-8)+10)-5
S = (sym) x*(x*(x - 8) + 10) - 5
>> SA=simplify(S)
SA = (sym) x*(x*(x - 8) + 10) - 5
>>
it was expected SA=x^3-8*x^2+10*x-5

3)
>> sym x
ans = (sym) x
>> s=(x^3-4*x^2+16*x)/(x^3+64)
s = (sym)

   3      2
  x  - 4*x  + 16*x
  ----------------
       3
      x  + 64

>> F=simple(S)
error: 'simple' undefined near line 1 column 3
>>
it was expected F=x/(x+4)

I'll appreciate any assistance!

Thanks,

Paulo Roberto.
 



you are using command that are not implemented.  what software are you currently used to? 

reply via email to

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