MathGroup Archive 1999

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

Search the Archive

Re: problem with 'FortranForm' of Mathematica 3.0


I think it does this because it isn't a Real. It has FullForm:

     Times[Rational[1,12],Power[7,Rational[1,2]]]

Using N[] or //N will allow FortranForm to work as you expect:

    In[8]:=FortranForm[Sqrt[7]/12]//N
    Out[8]//FortranForm=0.2204792759220492

Now, can anyone tell me how to make Outlook Express quit assuuming //
indicates a hyperlink to a file?

Dave

Xiaogang Wang wrote in message <7j591c$fuv at smc.vnet.net>...
> I found Mathematica 3.0's command 'FortranForm' gives bad results!!
>
>Example:
>>FortranForm[Sqrt[7]/12]
>
>Sqrt(7)/11.99999999999999
>
>while Mathematica 2.2.3 gives correct results
>
>How to solve this small 'bug'? Thanks!
>
>Xiaogang Wang
>
>
>




  • Prev by Date: Re: FW: Strain Ellipsoids
  • Next by Date: Q: Animation
  • Previous by thread: Re: Mathematica and 64-bit computing (... and Unix/Linux)
  • Next by thread: Q: Animation