CoCalc Public Filessupport / period-lattice-sage.ipynb
Authors: Harald Schilly, William A. Stein
Description: Jupyter notebook support/2015-06-04-141749-bokeh.ipynb
In [11]:
A = 2; B = 3
E = EllipticCurve([A, B])
show(E)
show(E.period_lattice().basis())
show(E.period_lattice().basis(prec=150))  # more bits of precision
show(plot(E))  # what E(RR) looks like

$y^2 = x^{3} + 2 x + 3$
$\left(3.13807354504303, 1.56903677252151 + 1.09820401412526i\right)$
$\left(3.1380735450430275094334329000899057043678606, 1.5690367725215137547167164500449528521839303 + 1.0982040141252551721419720023716696564009347i\right)$
In [12]:
L = E.period_lattice()
L._compute_periods_real??

In [13]:
L??

--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-13-e33de4ada6d5> in <module>() ----> 1 E._abc /ext/sage/sage-8.8_1804/local/lib/python2.7/site-packages/sage/structure/category_object.pyx in sage.structure.category_object.CategoryObject.__getattr__ (build/cythonized/sage/structure/category_object.c:6865)() 832 AttributeError: 'PrimeNumbers_with_category' object has no attribute 'sadfasdf' 833 """ --> 834 return self.getattr_from_category(name) 835 836 cdef getattr_from_category(self, name): /ext/sage/sage-8.8_1804/local/lib/python2.7/site-packages/sage/structure/category_object.pyx in sage.structure.category_object.CategoryObject.getattr_from_category (build/cythonized/sage/structure/category_object.c:7028)() 847 cls = self._category.parent_class 848 --> 849 attr = getattr_from_other_class(self, cls, name) 850 self.__cached_methods[name] = attr 851 return attr /ext/sage/sage-8.8_1804/local/lib/python2.7/site-packages/sage/cpython/getattr.pyx in sage.cpython.getattr.getattr_from_other_class (build/cythonized/sage/cpython/getattr.c:2540)() 387 dummy_error_message.cls = type(self) 388 dummy_error_message.name = name --> 389 raise AttributeError(dummy_error_message) 390 cdef PyObject* attr = instance_getattr(cls, name) 391 if attr is NULL: AttributeError: 'EllipticCurve_rational_field_with_category' object has no attribute '_abc' 
In [ ]: