next up previous contents
Next: Controlling line breaking Up: String manipulation Previous: String replacement

Upper and lower case

Certain FORTRAN compilers (specifically MSDOS) require that all characters be specified in upper case.

In[4]:= FortranAssign[y,Sin[2 Cos[x + Log[y]]],AssignCase->Upper]

Out[4]//OutputForm=
          Y=SIN(2.D0*COS(X+LOG(Y)))
Case conversion can also be used to translate expressions to lower case in C (see section 4.11 for the command CAssign).



Jorge Romao
5/14/1998