MathGroup Archive 2001

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

Search the Archive

Re: how to write a mathematica program

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30903] Re: how to write a mathematica program
  • From: Ignacio Rodriguez <ignacio at sgirmn.pluri.ucm.es>
  • Date: Sun, 23 Sep 2001 02:16:50 -0400 (EDT)
  • References: <9oc74r$fmd$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Dear Mr Bin,
Mr Garza has already answered about how to convert binary strings to
decimal numbers.

As to your first question, you can easily make a multiplication table in
Zn using

Table[Mod[Times[i,j],n],{i,0,n-1},{j,0,n-1}]

Au Han Bin wrote:

> hi, i am a programming newbie, and i urgently need to find out how to
> make a multiplication table in Zn
>
> also i am trying to write a program that changes a string of binary to
> base 10 numbers
>
> {100}-> 8
>
> myfunct[x_, y_,z_] := x*4 + y*2 + z*1
> but this is limited, how can i do this for long continous strings?
>
> regards,joe

--

Ignacio Rodriguez Ramirez de Arellano
Unidad de RMN
Universidad Complutense
Paseo Juan XXIII, 1
Madrid 28040, Spain

Tel. 34-91-394-3288
Fax  34-91-394-3245
e-mail: ignacio at sgirmn.pluri.ucm.es





  • Prev by Date: Re: Problem with Interval Calculations?
  • Next by Date: Re: Speed issue with MathLink
  • Previous by thread: Re: how to write a mathematica program
  • Next by thread: Exporting To Adobe Illustrator