MathGroup Archive 2000

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

Search the Archive

implementation


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