V3 is not a vector!

On 5 Feb 2017 21:42, "Henri Girard" <[email protected]> wrote:

> The third vector is an error, is it a bug ?
>
> v1=vector([3,4,-6])
> v2=vector([-4,3,10])
> v3=v1.dot_product(v2)
> p1=v1.plot(color='red')
> p2=v2.plot(color='green')
> p3=v3.plot()
>
> ---------------------------------------------------------------------------AttributeError
>                             Traceback (most recent call 
> last)<ipython-input-22-73b179d3596d> in <module>()      4 
> p1=v1.plot(color='red')      5 p2=v2.plot(color='green')----> 6 p3=v3.plot()
> /home/pi/git/sage/src/sage/structure/element.pyx in 
> sage.structure.element.Element.__getattr__ 
> (/home/pi/git/sage/src/build/cythonized/sage/structure/element.c:4254)()    
> 457             AttributeError: 
> 'LeftZeroSemigroup_with_category.element_class' object has no attribute 
> 'blah_blah'    458         """--> 459         return 
> self.getattr_from_category(name)    460     461     cdef 
> getattr_from_category(self, name):
> /home/pi/git/sage/src/sage/structure/element.pyx in 
> sage.structure.element.Element.getattr_from_category 
> (/home/pi/git/sage/src/build/cythonized/sage/structure/element.c:4363)()    
> 470         else:    471             cls = P._abstract_element_class--> 472   
>       return getattr_from_other_class(self, cls, name)    473     474     def 
> __dir__(self):
> /home/pi/git/sage/src/sage/structure/misc.pyx in 
> sage.structure.misc.getattr_from_other_class 
> (/home/pi/git/sage/src/build/cythonized/sage/structure/misc.c:1928)()    298  
>        dummy_error_message.cls = type(self)    299         
> dummy_error_message.name = name--> 300         raise dummy_attribute_error    
> 301     attribute = <object>attr    302     # Check for a descriptor (__get__ 
> in Python)
> AttributeError: 'sage.rings.integer.Integer' object has no attribute 'plot'
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to