The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Re: [mg5305] Formatting Output
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Sherman Reed

Posts: 112
Registered: 12/7/04
Re: [mg5305] Formatting Output
Posted: Nov 26, 1996 3:41 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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?


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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.