Re: how to write a mathematica program

• To: mathgroup at smc.vnet.net
• Subject: [mg30872] Re: [mg30822] how to write a mathematica program
• From: Tomas Garza <tgarza01 at prodigy.net.mx>
• Date: Fri, 21 Sep 2001 04:04:10 -0400 (EDT)
• References: <200109200751.DAA16198@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```I don't know what is a multiplication table in Zn. Now, if you have a string
of binary characters, you can produce the decimal equivalent as follows.
Suppose you have the string "101110011":

In[1]:=
FromDigits[IntegerDigits[ToExpression["101110011"]],2]
Out[1]=
371

Check in the Help Browser for the meaning of each function.

Tomas Garza
Mexico City
----- Original Message -----
From: "Au Han Bin" <auhb3 at cz3.nus.edu.sg>
To: mathgroup at smc.vnet.net
Subject: [mg30872] [mg30822] how to write a mathematica program

> 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
>

```

• Prev by Date: New user of Mathematica (FORTRAN related question)
• Next by Date: RE: PlotStyles
• Previous by thread: how to write a mathematica program
• Next by thread: Re: how to write a mathematica program