Bug: symbolic subs

View: New views
2 Messages — Rating Filter:   Alert me  

Bug: symbolic subs

by Hielos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, I found a bug with the 'symbolic' package in the function 'subs':


octave> pr=sym("x1")+sym("x2")+sym("Q1")+0.5

pr =

0.5+Q1+x2+x1

octave> subs(pr, sym("x2"), 33)

ans =

0.5+Q1+x2+x1


I built a function that you may use





------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Octave-dev mailing list
Octave-dev@...
https://lists.sourceforge.net/lists/listinfo/octave-dev

sym2sym.m (3K) Download Attachment

Re: Bug: symbolic subs

by Søren Hauberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

fre, 23 10 2009 kl. 15:42 -0700, skrev efrios:

> Hello, I found a bug with the 'symbolic' package in the function
> 'subs':
>
>
> octave> pr=sym("x1")+sym("x2")+sym("Q1")+0.5
>
> pr =
>
> 0.5+Q1+x2+x1
>
>
> octave> subs(pr, sym("x2"), 33)
>
> ans =
>
> 0.5+Q1+x2+x1

I don't use the 'symbolic' package, so I don't really know what is wrong
with the above. What behaviour did you expect?

> I built a function that you may use

I haven't spoken Spanish (or is it Portuguese?) in more than a decade,
so I really can't read the code you sent. If you believe you have a
solution to the bug you are seeing, please translate it to English, such
that we can use it.

Thanks,
Søren


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Octave-dev mailing list
Octave-dev@...
https://lists.sourceforge.net/lists/listinfo/octave-dev