Message Boards Message Boards

0
|
2366 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Adding white space between printed variables in a data file?

Posted 3 years ago

Hello how are you? I am having a problem printing data to a file using the Write command. The command I use is the following:

Write[arch3, 
 N[SimpsonsRule[
   Re[ResPote[x, me, mh, meh, ne, nh, neh, 1.0, R0P, la]], {x, 0, 
    50}], 50], me, mh, meh, ne, nh, neh]

I want to generate white spacing between the variables "me", "mh", "ne", etc. However, I can't get it to be totally blank spacing. What I can do? Thanks a lot

POSTED BY: Nicolas Legnazzi
Posted 3 years ago

Nicholas:

I tried running your code, but SimpsonsRule and ResPote are undefined. Could you provide code that the community to run? That would make it easier for the community to help.

That said, you can use ToString[] on an expression. For example,

ToString[x*y*z]

Produces:

"x y z"

Which you could then write to a file.

Have a great weekend.

POSTED BY: Mike Besso
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract