I have been induced by the name v3, that's why I /thought it was a vector./

/But after a night, having no answer to my question, I tried to think deeper of what it could be ?
/

/And just before reading the list I had came to conclusion it could only be a scalar, which I read in the mail a certain time after./

/An integer has a quantity then it can be plot as a quantity like near a vector, a point ?
/

/the scalar is 60 in this case, then sixty from zero could be a line...
/

/Cheers/

/Henri/


Le 06/02/2017 à 10:25, John Cremona a écrit :
Not every object in Sage has a plot() method.  As the error message
says, integers do not have a plot() method.  Can you think of a
sensible way of plotting a single integer?  Perhaps there is, but
no-one has thought of it yet.

On 6 February 2017 at 07:10, Henri Girard <henri.gir...@gmail.com> wrote:
Yes, I didn't know exactly the name, but thinking about it I came to the
same conclusion, thank. But my concern is why doesn't it display and gives
an error ?



Le 06/02/2017 à 03:03, Jorge Garcia a écrit :

V3 is a scalar = -60...

On Feb 5, 2017 5:38 PM, "Henri Girard" <henri.gir...@gmail.com> wrote:
Thanks


Le 05/02/2017 à 23:32, John Cremona a écrit :

V3 is not a vector!

On 5 Feb 2017 21:42, "Henri Girard" <henri.gir...@gmail.com> 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
sage-support+unsubscr...@googlegroups.com. To post to this group, send email
to sage-support@googlegroups.com. 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
sage-support+unsubscr...@googlegroups.com. To post to this group, send email
to sage-support@googlegroups.com. 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
sage-support+unsubscr...@googlegroups.com. To post to this group, send email
to sage-support@googlegroups.com. 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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com. 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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
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