Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: "FortranForm" for numbers?
Replies: 1   Last Post: Aug 16, 1996 3:03 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
AES

Posts: 72
Registered: 12/7/04
"FortranForm" for numbers?
Posted: Aug 7, 1996 4:01 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


Wanted:

1) A simple way to put an option at the start of a notebook so that all
output numbers (in Print, Write, TableForm, etc) will come out in
something similar to Fortran format, e.g.

4.56789E-7

(I don't care much about the exact number of digits, or exactly where the
decimal point ends up, and the exponent part can be skipped if not
needed. Note that in mma FortranForm[1/7] comes out as 1/7 and not
0.1429).

2) I'd also like to understand why TableForm sometimes comes out with
blank lines between each line of output and sometimes not, on the same
table (and it's not due to word wrapping). And how to put multiple
"sometable // TableForm ;" statements inside a Do loop and have them
Print.








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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.