Ask Your Question

imbluedabedee's profile - activity

2024-04-19 00:15:32 +0200 received badge  Notable Question (source)
2024-03-14 07:14:34 +0200 commented question Type Conversion in coefficient method

Sorry for the late reply. Yes, this works. Thanks!

2024-03-14 07:14:13 +0200 marked best answer Type Conversion in coefficient method

I have the polynomials of a certain Eisenstein series. Those are given in the following way:


var('q','z');
K.<sqrt5> = QuadraticField(5);
d2 = [(0, 0, 1), (1/10*sqrt5 + 1/2, 0, 30), (1/10*sqrt5 + 1/2, -1/5*sqrt5 - 1, 1), (1/10*sqrt5 + 1/2, 1/5*sqrt5 + 1, 1), (1/10*sqrt5 + 1/2, -3/10*sqrt5 - 1/2, 12), (1/10*sqrt5 + 1/2, 3/10*sqrt5 + 1/2, 12), (1/10*sqrt5 + 1/2, -1/10*sqrt5 - 1/2, 20), (1/10*sqrt5 + 1/2, 1/10*sqrt5 + 1/2, 20), (1/10*sqrt5 + 1/2, 1/5*sqrt5, 12), (1/10*sqrt5 + 1/2, -1/5*sqrt5, 12), (-1/10*sqrt5 + 1/2, 0, 30), (-1/10*sqrt5 + 1/2, -1/10*sqrt5 - 1/2, 12), (-1/10*sqrt5 + 1/2, 1/10*sqrt5 + 1/2, 12), (-1/10*sqrt5 + 1/2, 1/10*sqrt5 - 1/2, 12), (-1/10*sqrt5 + 1/2, -1/10*sqrt5 + 1/2, 12), (-1/10*sqrt5 + 1/2, 2/5*sqrt5, 1), (-1/10*sqrt5 + 1/2, -2/5*sqrt5, 1), (-1/10*sqrt5 + 1/2, 1/5*sqrt5, 20), (-1/10*sqrt5 + 1/2, -1/5*sqrt5, 20), (-1/5*sqrt5 + 1, 0, 60), (-1/5*sqrt5 + 1, -1, 20), (-1/5*sqrt5 + 1, 1, 20), (-1/5*sqrt5 + 1, -3/10*sqrt5 - 1/2, 20), (-1/5*sqrt5 + 1, 3/10*sqrt5 + 1/2, 20), (-1/5*sqrt5 + 1, -1/10*sqrt5 - 1/2, 60), (-1/5*sqrt5 + 1, 1/10*sqrt5 + 1/2, 60), (-1/5*sqrt5 + 1, 1/10*sqrt5 - 1/2, 60), (-1/5*sqrt5 + 1, -1/10*sqrt5 + 1/2, 60), (-1/5*sqrt5 + 1, 3/10*sqrt5 - 1/2, 20), (-1/5*sqrt5 + 1, -3/10*sqrt5 + 1/2, 20), (-1/5*sqrt5 + 1, 2/5*sqrt5, 30), (-1/5*sqrt5 + 1, -2/5*sqrt5, 30), (-1/5*sqrt5 + 1, 1/5*sqrt5, 60), (-1/5*sqrt5 + 1, -1/5*sqrt5, 60), (1/5*sqrt5 + 1, 0, 60), (1/5*sqrt5 + 1, -2/5*sqrt5 - 1, 20), (1/5*sqrt5 + 1, 2/5*sqrt5 + 1, 20), (1/5*sqrt5 + 1, -1/5*sqrt5 - 1, 30), (1/5*sqrt5 + 1, 1/5*sqrt5 + 1, 30), (1/5*sqrt5 + 1, 1/2*sqrt5 + 1/2, 20), (1/5*sqrt5 + 1, -1/2*sqrt5 - 1/2, 20), (1/5*sqrt5 + 1, -3/10*sqrt5 - 1/2, 60), (1/5*sqrt5 + 1, 3/10*sqrt5 + 1/2, 60), (1/5*sqrt5 + 1, -1/10*sqrt5 - 1/2, 60), (1/5*sqrt5 + 1, 1/10*sqrt5 + 1/2, 60), (1/5*sqrt5 + 1, 1/10*sqrt5 - 1/2, 20), (1/5*sqrt5 + 1, -1/10*sqrt5 + 1/2, 20), (1/5*sqrt5 + 1, 1/5*sqrt5, 60), (1/5*sqrt5 + 1, -1/5*sqrt5, 60), (-2/5*sqrt5 + 1, 0, 30), (-2/5*sqrt5 + 1, 1/5*sqrt5 - 1, 1), (-2/5*sqrt5 + 1, -1/5*sqrt5 + 1, 1), (-2/5*sqrt5 + 1, 1/10*sqrt5 - 1/2, 20), (-2/5*sqrt5 + 1, -1/10*sqrt5 + 1/2, 20), (-2/5*sqrt5 + 1, 3/10*sqrt5 - 1/2, 12), (-2/5*sqrt5 + 1, -3/10*sqrt5 + 1/2, 12), (-2/5*sqrt5 + 1, 1/5*sqrt5, 12), (-2/5*sqrt5 + 1, -1/5*sqrt5, 12), (-2/5*sqrt5 + 1, 0, 30), (-2/5*sqrt5 + 1, 1/5*sqrt5 - 1, 1), (-2/5*sqrt5 + 1, -1/5*sqrt5 + 1, 1), (-2/5*sqrt5 + 1, 1/10*sqrt5 - 1/2, 20), (-2/5*sqrt5 + 1, -1/10*sqrt5 + 1/2, 20), (-2/5*sqrt5 + 1, 3/10*sqrt5 - 1/2, 12), (-2/5*sqrt5 + 1, -3/10*sqrt5 + 1/2, 12), (-2/5*sqrt5 + 1, 1/5*sqrt5, 12), (-2/5*sqrt5 + 1, -1/5*sqrt5, 12), (1, 0, 72), (1, -1/5*sqrt5 - 1, 30), (1, 1/5*sqrt5 + 1, 30), (1, -1, 12), (1, 1, 12), (1, 1/2*sqrt5 + 1/2, 12), (1, -1/2*sqrt5 - 1/2, 12), (1, -3/10*sqrt5 - 1/2, 60), (1, 3/10*sqrt5 + 1/2, 60), (1, -1/10*sqrt5 - 1/2, 60), (1, 1/10*sqrt5 + 1/2, 60), (1, 1/10*sqrt5 - 1/2, 60), (1, -1/10*sqrt5 + 1/2, 60), (1, 2/5*sqrt5, 30), (1, -2/5*sqrt5, 30), (1, 1/5*sqrt5, 60), (1, -1/5*sqrt5, 60)] 
e2 = sum(factor * q**exponent * z**exp2 for exponent,exp2, factor in d2) 

For example, the first entry in the list d2 would give me the entry 1q^0z^0 with the coefficient 1 and the index (0,0). Now I would like to filter these kind of polynomials to find the coefficients of a certain index.
My naive initial idea was to use the method (e2).coefficients() and then search via comparison.The problem that I am having is that I cannot "compare" the values of the index via "==" since the types are not compatible. So, this for example


type(p.coefficients()[1][1])

yields "<class 'sage.symbolic.expression.expression'="">" and I cannot compare this to an expression like "-2*sqrt(1/5) + 1".

Where is my mistake and is there an easy fix to this? Thanks in advance!

2024-03-12 15:11:28 +0200 commented question Type Conversion in coefficient method

This one: e2 = sum(factor * q**exponent * z**exp2 for exponent,exp2, factor in d2). The program tries to fit this into a

2024-03-12 15:11:13 +0200 commented question Type Conversion in coefficient method

This one: e2 = sum(factor * qexponent * zexp2 for exponent,exp2, factor in d2). The program tries to fit this into a rat

2024-03-12 13:14:12 +0200 commented question Type Conversion in coefficient method

Hey Max, thanks. I tried this. But I get the following error message: ... TypeError: Unable to coerce 1/10*sqrt5 + 1/2 t

2024-03-12 12:26:26 +0200 edited question Type Conversion in coefficient method

Type Conversion in coefficient method I have the polynomials of a certain Eisenstein series. Those are given in the foll

2024-03-12 12:21:38 +0200 edited question Type Conversion in coefficient method

Type Conversion in coefficient method I have the polynomials of a certain Eisenstein series. Those are given in the foll

2024-03-12 12:19:58 +0200 edited question Type Conversion in coefficient method

Type Conversion in coefficient method I have the polynomials of a certain Eisenstein series. Those are given in the foll

2024-03-12 12:19:14 +0200 edited question Type Conversion in coefficient method

Type Conversion in coefficient method I have the polynomials of a certain Eisenstein series. Those are given in the foll

2024-03-12 12:17:46 +0200 edited question Type Conversion in coefficient method

Type Conversion in coefficient method I have the polynomials of a certain Eisenstein series. Those are given in the foll

2024-03-12 12:16:04 +0200 asked a question Type Conversion in coefficient method

Type Conversion in coefficient method I have the polynomials of a certain Eisenstein series. Those are given in the foll

2024-02-24 01:07:13 +0200 received badge  Popular Question (source)
2024-02-22 17:37:09 +0200 commented answer Finding all integer solutions of binary quadratic form

Thanks a lot to you and Peter for your helpful comments!

2024-02-22 17:36:25 +0200 marked best answer Finding all integer solutions of binary quadratic form

I found the following page to calculate one solution for a binary quadratic form $ax^2+bxy +cy^2$: Link

Is there an algorithm to find, if possible, all integer solutions?

2024-02-20 16:53:10 +0200 asked a question Finding all integer solutions of binary quadratic form

Finding all integer solutions of binary quadratic form I found the following page to calculate one solution for a binary

2024-02-18 19:53:24 +0200 commented question How to find all elements of a ring up to a certain value

I see what you mean. There seems to be an error in the definition that I was given. Thanks. I will delete this question,

2024-02-18 17:16:18 +0200 commented question How to find all elements of a ring up to a certain value

Sorry for the additional question, since Inever got a proper introduction into SAGE: How would I epress the sum $ \sum_{

2024-02-18 17:16:15 +0200 edited question How to find all elements of a ring up to a certain value

How to find all elements of a ring up to a certain norm? I am having trouble finding a solution for this very simple que

2024-02-18 17:15:55 +0200 edited question How to find all elements of a ring up to a certain value

How to find all elements of a ring up to a certain norm? I am having trouble finding a solution for this very simple que

2024-02-18 17:07:11 +0200 commented question How to find all elements of a ring up to a certain value

Sorry for the additional question, since Inever got a proper introduction into SAGE: How would I epress the sum $ \sum_{

2024-02-18 17:06:45 +0200 commented question How to find all elements of a ring up to a certain value

Sorry for the additional question, since Inever got a proper introduction into SAGE: How would I epress the sum $ \sum_{

2024-02-18 17:06:29 +0200 commented question How to find all elements of a ring up to a certain value

Sorry for the additional question, since Inever got a proper introduction into SAGE: How would I epress the sum $ \sum_{

2024-02-18 17:05:21 +0200 commented question How to find all elements of a ring up to a certain value

Sorry for the additional question, since Inever got a proper introduction into SAGE: How would I epress the sum $ \sum_{

2024-02-18 17:04:58 +0200 commented question How to find all elements of a ring up to a certain value

Sorry for the additional question, since Inever got a proper introduction into SAGE: How would I epress the sum $ \sum_{

2024-02-18 17:04:32 +0200 commented question How to find all elements of a ring up to a certain value

Sorry for the additional question, since Inever got a proper introduction into SAGE: How would I epress the sum $\sum_{r

2024-02-18 17:03:27 +0200 commented question How to find all elements of a ring up to a certain value

Sorry for the additional question, since Inever got a proper introduction into SAGE: How would I epress the sum $\sum_{r

2024-02-18 17:03:06 +0200 commented question How to find all elements of a ring up to a certain value

Sorry for the additional question, since Inever got a proper introduction into SAGE: How would I epress the sum $\sum_{r

2024-02-18 15:39:21 +0200 edited question How to find all elements of a ring up to a certain value

How to find all elements of a ring up to a certain value? I am having trouble finding a solution for this very simple qu

2024-02-18 15:39:18 +0200 commented question How to find all elements of a ring up to a certain value

Good question! I meant up to a certain norm, just edited my initial question.

2024-02-18 15:39:02 +0200 commented question How to find all elements of a ring up to a certain value

Good question! I meant up to a certain norm.

2024-02-18 15:38:41 +0200 edited question How to find all elements of a ring up to a certain value

How to find all elements of a ring up to a certain value? I am having trouble finding a solution for this very simple qu

2024-02-18 15:22:08 +0200 asked a question How to find all elements of a ring up to a certain value

How to find all elements of a ring up to a certain value? I am having trouble finding a solution for this very simple qu

2024-02-18 13:39:39 +0200 marked best answer Special value of Dedekind Zeta Functions

Is there a way to compute the values of the following special kind of Dedekind Zeta Function:

Assume $a,b \in \mathbb N$ and $K = \mathbb Q(\sqrt{5}) \subset L= \mathbb Q(\sqrt{a+b\sqrt{5}})$. Set $d = \sqrt{a+b\sqrt{5}}$ which is also totally negative and furthermore a discriminant of L.

Now my problem is, can I calculate the (exact or numerical) values of the Dedekind Zeta function $\zeta_L(s)$ for s positive odd integer?

Thanks for any help!

2024-02-18 13:39:39 +0200 received badge  Scholar (source)
2024-02-18 09:21:38 +0200 commented answer Special value of Dedekind Zeta Functions

Hi dan, thanks a lot for your answer! This is very helpful!

2024-02-18 09:19:01 +0200 received badge  Supporter (source)
2024-02-17 11:59:17 +0200 asked a question Special value of Dedekind Zeta Functions

Special value of Dedekind Zeta Functions Is there a way to compute the values of the following special kind of Dedekind

2024-02-13 15:11:56 +0200 commented question Finding a certain ideal

Hey rburing, thanks for your feedback. This sounds correct, but I am still not sure on how to find the ideal in general.

2024-02-12 21:30:19 +0200 edited question Finding a certain ideal

Finding a certain ideal Hey SAGE-Community, I am new to SAGE and looking for some help for a small university project.

2024-02-12 21:30:01 +0200 edited question Finding a certain ideal

Finding divisor and certain ideals Hey SAGE-Community, I am new to SAGE and looking for some help for a small universit

2024-02-12 12:35:12 +0200 received badge  Editor (source)
2024-02-12 12:35:12 +0200 edited question Finding a certain ideal

Finding divisor and certain ideals Hey SAGE-Community, I am new to SAGE and looking for some help for a small universit

2024-02-12 11:47:33 +0200 received badge  Student (source)
2024-02-12 11:14:03 +0200 asked a question Finding a certain ideal

Finding divisor and certain ideals Hey SAGE-Community, I am new to SAGE and looking for some help for a small universit

2024-02-11 16:19:19 +0200 received badge  Organizer (source)