Ask Your Question

mathjain's profile - activity

2023-10-10 02:04:13 +0200 received badge  Famous Question (source)
2023-06-12 15:32:13 +0200 received badge  Famous Question (source)
2022-11-27 00:34:55 +0200 received badge  Notable Question (source)
2022-10-04 12:18:21 +0200 received badge  Notable Question (source)
2022-03-18 10:53:23 +0200 received badge  Famous Question (source)
2022-01-25 17:18:37 +0200 received badge  Notable Question (source)
2021-11-23 08:35:34 +0200 received badge  Notable Question (source)
2021-11-23 08:35:34 +0200 received badge  Popular Question (source)
2021-05-29 22:56:17 +0200 received badge  Notable Question (source)
2021-05-29 22:56:17 +0200 received badge  Popular Question (source)
2021-05-14 12:55:47 +0200 received badge  Popular Question (source)
2020-11-09 04:19:43 +0200 received badge  Notable Question (source)
2020-11-09 04:19:43 +0200 received badge  Popular Question (source)
2020-05-09 15:44:46 +0200 received badge  Famous Question (source)
2020-04-11 22:32:21 +0200 received badge  Popular Question (source)
2020-02-11 21:25:36 +0200 received badge  Notable Question (source)
2020-02-11 21:25:36 +0200 received badge  Popular Question (source)
2019-04-18 19:48:26 +0200 received badge  Popular Question (source)
2018-09-19 08:20:46 +0200 asked a question Enumerating prime ideals in SAGE

Given a number Field K and its ring of integers $O_K$, I want to enumerate prime ideals and calculate some quantities in $O_K$ modulo the prime ideals. This computation depends on the size of the ideal.

What I did earlier was taking a prime number, creating its ideal, factorizing it and using the factors as prime ideals. But this way I think I am doing very large computations because the norm would be very high.

I want to enumerate prime ideals below a certain norm in SAGE. What can I do?

2018-08-10 15:54:14 +0200 asked a question Algorithm for computing Class Group and Class Number?

I wanted to know what procedure does SAGE use for computing class numbers. I typed

sage : K = NumberField(x^2 + x + 1)

sage : K.class_number?

After that I got the documentation and further I opened this file ~/SageMath/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.py

In that I looked for the place where I can find the class number snippet. It turns out that sage returns the order of class group, so I looked for class group snippet.

proof = proof_flag(proof)

    try:
        return self.__class_group[proof, names]
    except KeyError:
        pass
    except AttributeError:
        self.__class_group = {}
    k = self.pari_bnf(proof)
    cycle_structure = tuple( ZZ(c) for c in k.bnf_get_cyc() )

    # Gens is a list of ideals (the generators)
    gens = tuple( self.ideal(hnf) for hnf in k.bnf_get_gen() )

    G = ClassGroup(cycle_structure, names, self, gens, proof=proof)
    self.__class_group[proof, names] = G
    return G

But I couldn't understand where is the implementation of algorithm. Can anyone help me from here to reach where I can get the algorithm?

2018-06-28 23:26:08 +0200 received badge  Editor (source)
2018-06-28 23:18:27 +0200 asked a question TypeError : Object not iterable

I am trying to build the multiplicative group of a finite field.

I define a finite field, its multiplicative group, and a conversion map from the finite field to its multiplicative group as follows:

sage: F.<a> = GF(7^2)
sage: G = AbelianGroupWithValues([a], n=1,
....:     gens_orders=[48], values_group=F)
sage: phi = G.convert_map_from(F)

Up to here, everything is fine.

Now there is an error when trying to use phi:

sage: phi(a)
Traceback (most recent call last)
...
TypeError: 'sage.rings.finite_rings.element_givaro.FiniteField_givaroElement' object is not iterable

What does this mean?

2018-06-28 23:15:47 +0200 asked a question Object is not iterable

I am facing a problem while doing following on terminal in Sage

sage: Fin_field = GF(49) sage: Mult_grp = AbelianGroupWithValues([Fin_field.gen()], n =1 , gens_order = [48], values_group=Fin_field) sage: phi = Fin_field.coerce_map_from(Mult_grp) Upto here, everything is fine. Now there is an error in the next line - sage: phi(Fin_field.gen())

TypeError: 'sage.rings.finite_rings.element_givaro.FiniteField_givaroElement' object is not iterable

What does this mean?

2018-06-27 02:49:42 +0200 asked a question Quotient Group construction

I have created a group in the category - finite enumerated commutative subgroup. But it doesn't have an option of quotient group ( it has but shows Not Implemented Error)

I wanted to know why implementing a quotient group is not possible if quotient ring is done already? Actually, I was thinking to implement it myself, but I thought it will be good to ask here first if people have tried that. Also, does anyone know how I can track the current progress being done in sage.

2018-06-25 16:54:16 +0200 commented answer Multiplicative Group of a field

How to apply it to one's installation? Thanks!

2018-06-25 16:49:15 +0200 received badge  Supporter (source)
2018-06-25 16:33:56 +0200 asked a question Offline vs CoCalc

I am currently working with sage offline version (downloaded version). What difference does it make if I use CoCalc. Does offline version supports all features?

2018-06-24 20:44:16 +0200 asked a question Multiplicative Group of a field

I have a finite field with me. I want to work with a multiplicative group of it. I only found that it is possible to do this with Z modulo n in Sage. But my fields are finite extensions of such a field.

If someone has a way to deal with, please help!

2018-06-21 23:18:31 +0200 commented answer get multiplicative subgroup of Z/nZ

Yeah this surely works for the case when R is defined as Integers(something). Is there any method to get it for a general finite field for instance, a residue field?

2018-06-21 15:54:57 +0200 asked a question Killed Process Meaning?

I tried computing this -

sage : K = CyclotomicField(37^5)

But after almost a minute, the process just popped up "Killed" and automatically exited sage session.

Why does that happen and what is the meaning?

Is there any alternative way to do this?

2018-06-17 11:51:27 +0200 asked a question subgroup of unit group of number field (without calculating unit group)?

https://ask.sagemath.org/question/272...

There is a similar question in this link. But I want to know whether I can do this (without knowing the unit group). So, I have collected a list of elements (from another code), which will be generators of the subgroup I want to generate. What should I do?

2018-06-13 11:20:31 +0200 received badge  Student (source)
2018-06-12 23:40:43 +0200 asked a question Algorithm for defining polynomial of an unramified extension?

I wanted to know by what algorithm sage finds a defining polynomial of an unramified extension of p-adic numbers?

2018-06-12 23:40:43 +0200 asked a question Algorithm for finding a defining polynomial for an unramified extension?

I wanted to know by what algorithm sage finds a defining polynomial of an unramified extension of p-adic numbers?