File r37/lisp/csl/html/r37_0289.html artifact 7eab18ceec part of check-in dc9552dc80



<A NAME=FORT>

<TITLE>FORT</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>



<B>FORT</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>switch</B><P>
<P>
 
 <P>
<P>
When <em>fort</em> is on, output is given Fortran-compatible syntax. Default 
is <em>off</em>. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>
on fort; 

df(sin(7*x + y),x); 

  ANS=7.*COS(7*X+Y) 


on rounded; 

b := log(sin(pi/5 + n*pi)); 

  	       B=LOG(SIN(3.14159265359*N+0.628318530718))

</TT></PRE><P>REDUCE results can be written to a file (using 
<A HREF=r37_0233.html>out</A>) and used as data 
by Fortran programs when <em>fort</em> is in effect. <em>fort</em> knows about 
correct statement length, continuation characters, defining a symbol when 
it is first used, and other Fortran details. 
<P>
<P>
The 
<A HREF=r37_0651.html>GENTRAN</A> package offers many more possibilities than th
e 
<em>fort</em> switch. It produces Fortran (or C or Ratfor) code from REDUCE 
procedures or structured specifications, including facilities for producing 
double precision output. 
<P>
<P>
<P>


REDUCE Historical
REDUCE Sourceforge Project | Historical SVN Repository | GitHub Mirror | SourceHut Mirror | NotABug Mirror | Chisel Mirror | Chisel RSS ]