Ask Your Question

alvaro's profile - activity

2021-09-11 20:47:45 +0100 commented question can I download Sage on chromebook?

I cannot give an answer, since there is no official app for chrome os right now. But i think there are some options if y

2021-09-11 20:47:21 +0100 commented question can I download Sage on chromebook?

I cannot give an answer, since there is no official app for chrome os right now. But i think there are some options if y

2021-05-29 16:26:32 +0100 received badge  Nice Question (source)
2021-05-29 00:14:40 +0100 commented answer unique elements in complex numbers list

in fact that is a great solution! Thanks

2021-05-29 00:05:13 +0100 marked best answer unique elements in complex numbers list

I have a list of complex numbers, but even after converting it to a set, there are a lot of repetitions. here is a minimal example (in my code i have 10^6 polynomials, here only 2)

from sage.rings.polynomial.complex_roots import complex_roots
x = polygen(ZZ)

r1 = complex_roots( x^3+1)
r2 = complex_roots( x^6+2*x^3+1)

s1 = set([r[0] for r in r1])
s2 = set([r[0] for r in r2])

s1 | s2

which results in

{-1,
 0.500000000000000? - 0.866025403784439?*I,
 0.500000000000000? - 0.866025403784439?*I,
 0.500000000000000? + 0.866025403784439?*I,
 0.500000000000000? + 0.866025403784439?*I}

as you can see, the roots must be only 3. Is there an instruction to reduce a set of complex numbers differing less than a delta?

2021-05-28 20:07:45 +0100 edited question unique elements in complex numbers list

unique elements in complex numbers list I have a list of complex numbers, but even after converting it to a set, there a

2021-05-28 20:05:18 +0100 edited question unique elements in complex numbers list

unique elements in complex numbers list I have a list of complex numbers, but even after converting it to a set, there a

2021-05-28 19:44:09 +0100 commented answer unique elements in complex numbers list

exactly! i wonder if there is an instruction to reduce a set taking that into account

2021-05-28 19:43:17 +0100 commented question unique elements in complex numbers list

agreed, added example and results

2021-05-28 19:40:50 +0100 edited question unique elements in complex numbers list

unique elements in complex numbers list I have a list of complex numbers, but even after converting it to a set, there a

2021-05-28 09:55:04 +0100 asked a question unique elements in complex numbers list

unique elements in complex numbers list I have a list of complex numbers, but even after converting it to a set, there a

2020-08-14 23:15:14 +0100 commented answer How do I use sage objects within markdown cells

Thankyou @slelievre

2020-08-14 23:14:24 +0100 received badge  Supporter (source)
2020-08-14 23:14:20 +0100 received badge  Scholar (source)
2020-08-14 02:39:39 +0100 received badge  Student (source)
2020-08-14 01:48:41 +0100 received badge  Editor (source)
2020-08-13 23:58:00 +0100 asked a question How do I use sage objects within markdown cells

I would like to use some result created in a previous cell, whithin an explanation in text on a markdown cell in the same notebook, in jupyter.