KANT
1 program
Added 2026-03-10T12:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: KASH, KANT/KASH, Kash
Provenance: commit 79bf8e8081 · authored 2026-03-10T21:47:38+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Class Group of Quadratic Number Field
Provenance: commit 79bf8e8081 · authored 2026-03-10T21:47:38+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
\ KASH (KANT Shell) program: Class number computation
\ Computes the class group of a quadratic number field Q(sqrt(d))
\ Create the polynomial ring over the integers
_<x> := PolynomialRing(Integers());
\ Define the minimal polynomial for Q(sqrt(-23))
f := x^2 + 23;
\ Create the number field
K := NumberField(f);
\ Compute its ring of integers (maximal order)
OK := MaximalOrder(K);
\ Compute the class group
CG := ClassGroup(OK);
\ Print results
Print("Number field: Q(sqrt(-23))\n");
Print("Discriminant: ", Discriminant(OK), "\n");
Print("Class group: ", CG, "\n");
Print("Class number: ", #CG, "\n");