Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

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

Search the Archive

Re: Formatting Output

  • To: mathgroup at smc.vnet.net
  • Subject: [mg5341] Re: [mg5305] Formatting Output
  • From: Sherman Reed <Sherman.Reed at worldnet.att.net>
  • Date: Wed, 27 Nov 1996 01:47:55 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

At 06:44 AM 11/23/96 +0000, you wrote:
>
>I want a combination of string and expression written to a file.
>The output from a Print command is exactly what I want:
>
>              In[43]:= Print["gm(",12,",",12,")=",FortranForm[gm]];  
>                 gm(12,12)=Cos(theta)
>
>Does anyone know how to get that same output written to a file?
>
Susan,

Here is what I did in 2.2.3 and 3.0.  I hope it helps.  If the approach is
wrong, let me know and I will think about it some more.


a=ToString["gm(12,12)=Cos(theta)"]      Command to Mma
gm(12,12)=Cos(theta)                    Response from mma
a>>novfile                              write to file novfile
<<novfile                               input from file novfile
gm(12,12)=Cos(theta)                    check!!!

Sherman Reed



  • Prev by Date: Re: Rule to Function, Frontend funnies
  • Next by Date: Re: Replace/No Rearrangement
  • Previous by thread: Formatting Output
  • Next by thread: Re: Formatting Output