MathGroup Archive 2009

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

Search the Archive

Re: Got a tip ?

Try ToCharacterCode["any text you want"]


Fabrizio wrote:
> Hello,
> I want to write a function that translates its argument (which is a letter of the alphabet) into a numerical value.
> f[a] = 1
> f[b] = 2
> .
> If this small module is finished, i want to expand the function by giving as an argument; a string of letters (or a text), but i have no clue which functions i have to use to define the smaller part (only letters) first. What functions can i use for all of this and how do i handle the variables ? Does the difference between Module and Block come into play ? Or . . .any help is much appreciated.

  • Prev by Date: Mathematica Tools Blog: FunctionsWithOption
  • Next by Date: Re: Help x-y pairs with rules
  • Previous by thread: Re: Got a tip ?
  • Next by thread: Re: Got a tip ?