axiom-mail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-mail] Random numbers in axiom


From: root
Subject: Re: [Axiom-mail] Random numbers in axiom
Date: Tue, 27 Apr 2004 07:58:32 -0400

Chris,

You can create a random element in a more complicated domain
such as Finite Fields. For example:

(1) -> F49:=FiniteField(7,2)
                                Type: Domain

(2) -> definingPolynomial()$F49

        2
   (2) ?  + 1
                                 Type: SparseUnivariatePolynomial PrimeField 7

(3) -> random()$F49

   (3) 2%A + 1
                                 Type: FiniteField(7,2)


FiniteField(7,2) is a finite field with 7^2 elements.
The first argument (in this case, 7) must be prime.
("%A" is a variable name Axiom created.)


Tim Daly
address@hidden
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]