Tag Info

Hot answers tagged

2

Well, n[1, 1, 1] (* {1.38996, 1.85383, 1.37325} *) n[5, 5, 5] (* {1.38996, 1.85383, 1.37325} *) When you first define your variables and then assign n[...] to this expression, the expression will evaluate and then be stored as that value. Regardless of what values you pass to n it will always return the same thing. You can read more about how Mathematica ...


2

In addition to what I've said in comments, you can write your function in shorter form: letterIndex2[l_, rot_: 0] := Mod[First@ToCharacterCode[l] - 64 + rot, 26, 1]



Only top voted, non community-wiki answers of a minimum length are eligible