ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 25 Apr 2021 17:01:36 +0200how to get value without e?https://ask.sagemath.org/question/56806/how-to-get-value-without-e/calculation:
print(1/664613997892457936451903530140172288)
result in sage :
1/664613997892457936451903530140172288
result in python:
1.504632769052528e-36
how to get number without e-36?
I need exactly number of divided.
MiroslawSun, 25 Apr 2021 17:01:36 +0200https://ask.sagemath.org/question/56806/Divisibilityhttps://ask.sagemath.org/question/24521/divisibility/To find numbers of the form 7aaa that are multiples of 7, I use:
sage:print [a for a in [0..9] if (7000+111*a)%7==0]
[0, 7]
I do not know how to write for 7|7abc.
Thanks.masacSat, 18 Oct 2014 17:32:22 +0200https://ask.sagemath.org/question/24521/"divides" in ring of integershttps://ask.sagemath.org/question/23498/divides-in-ring-of-integers/ It seems the method for "divides" is inherited to a ring_of_integers, but has undesirable behaviour:
f = CyclotomicField(3)
r = f.ring_of_integers()
gens = r.gens()
x = 1 + gens[1]
r(x).divides(r(gens[1]))
returns "True". Have I overlooked something here?
John BambergSun, 20 Jul 2014 11:57:57 +0200https://ask.sagemath.org/question/23498/