no error with 4.1.2.rc0
R.M.

[ma...@um-bc201 /opt/sage-4.1.2.rc0]$ ./sage
----------------------------------------------------------------------
| Sage Version 4.1.2.rc0, Release Date: 2009-09-30                   |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
**********************************************************************
*                                                                    *
* Warning: this is a prerelease version, and it may be unstable.     *
*                                                                    *
**********************************************************************
Loading Sage library. Current Mercurial branch is: oriver2
sage: x,y,m,a,b,h=var('x y m a v h')
sage: test = cos(a)*x+sin(a)*y-h; test.collect(cos(a))
x*cos(a) + y*sin(a) - h
sage: test.collect(cos(a))
x*cos(a) + y*sin(a) - h
sage:



On 12 říj, 21:18, Francois Maltey <[email protected]> wrote:
> Hello,
>
> About this question, I test coefficient and collect.
>
> Is it a bug ? or is there a reason ? collect and coefficient don't have
> the same react :
>
> I take a line equation
>
> test = cos(a)*x+sin(a)*y-h  # means ... == 0
>
> test.coefficient(cos(a)) # are right
> test.coefficient(x)
>
> test.collect(x)
> test.collect(cos(a)) #produce an error
>
> ---------------------------------------------------------------------------
> AttributeError                            Traceback (most recent call last)
>
> /home/fmy/.sage/temp/solen/9693/_home_fmy__sage_init_sage_0.py in <module>()
> ----> 1
>       2
>       3
>       4
>       5
> AttributeError: 'SymbolicArithmetic' object has no attribute 'collect'
>
> Is it a bug ? Where am I wrong ?
> I use sage.4.1.2alpha4
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to