Re: Trouble with symbolic on the Octave

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Trouble with symbolic on the Octave

Paulo Roberto
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.
 

 

 
 

------------------------------

Message: 7
Date: Mon, 12 Jun 2017 09:23:05 -0300
From: Paulo Roberto <[hidden email]>
To: [hidden email]
Subject: Trouble with symbolic on the Octave.
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL: <http://lists.gnu.org/archive/html/help-octave/attachments/20170612/d8af9faa/attachment.html>

------------------------------

Message: 8
Date: Mon, 12 Jun 2017 09:55:13 -0400
From: Doug Stewart <[hidden email]>
To: Paulo Roberto <[hidden email]>
Cc: Help GNU Octave <[hidden email]>
Subject: Re: Trouble with symbolic on the Octave.
Message-ID:
<CAAohRsYsQ8_N9KDDrVGBfkX2v=[hidden email]>
Content-Type: text/plain; charset="utf-8"

On Mon, Jun 12, 2017 at 8:23 AM, Paulo Roberto <[hidden email]> wrote:

> Hello, Ocatve users!
>
> My name is Paulo Roberto and I'm a brazilian new user on the Octave.
>
> I'm having some trouble about Symbolic Math. There are some commands that
> is not working on my Octave version, like collect, simple, simplify.
>
> The version of symbolic package is 2.5.0, Octave is 4.2.1 and I'm using
> Anaconda 4.3.1, that includes Python 2.7.13 and SymPy 1.0.
>
> Couls anyone help me about it?
>
> Thanks a lot,
>
> Paulo Roberto.
>
>
> _______________________________________________
> Help-octave mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/help-octave
>
>
Do you have an example of what is not working?

--
DAS[image: Certificate for 206392]

<https://linuxcounter.net/user/206392.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gnu.org/archive/html/help-octave/attachments/20170612/c91cad36/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave


------------------------------

End of Help-octave Digest, Vol 135, Issue 23
********************************************
_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Trouble with symbolic on the Octave

Doug Stewart-4


On Mon, Jun 12, 2017 at 10:26 AM, Paulo Roberto <[hidden email]> 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? 

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Loading...