MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

implementation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23648] implementation
  • From: "Matt Herman" <Henayni at hotmail.com>
  • Date: Sun, 28 May 2000 23:09:00 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,


For number theoretic purposes,  Iwant to implement the following 
functions
a0=Floor[(m0+Sqrt[D])/q0], m1=a0q0-m0, q1 = (D-(m1)^2)/q0
an=Floor[(mn+Sqrt[D])/qn],mn+1=an+qn-mn, qn+1=qn-1+an-1(mn-mn+1)

here an = a sub n etc... mn+1= m sub n+1.
When I try to implement these in mathematica, it wont allow me to use 
f[(a_+Sqrt[D_])/q_)]:= ....
I keep getting errors.

anyone have any ideas?

matt



  • Prev by Date: Rookie question
  • Next by Date: More Epilogs
  • Previous by thread: RE: Rookie question
  • Next by thread: Re: implementation