Dear Chris

Please have a look to the standard 
http://www.j3-fortran.org/doc/standing/links/007.pdf
page 138, middle of the note 7.9.

I copied it here that you dont miss it

"... These formation rules do not permit expressions containing
two consecutive numeric operators, such as A ** -B or A + -B. However,
expressions such as A ** (-B)
and A + (-B) are permitted."

... so applying the standard avoids this kind of problems.

V


On Nov 11, 9:07 pm, Chris Smith <[email protected]> wrote:
> >> gives
>
> >>>      1.0d0*x**-1.0d0
>
> >> which is not fortran standard.. I would expect 1.0d0/x or x**(-1) or
> >> in the worst case x**(-1.0d0). How can I get a better output?
>
> From my work in f77 and f90, I don't recall that the `**-1.0d0` is a
> problem. Am I mistaken? (Though there was an interesting failure for
> this particular syntax in one of the compilers, as I recall.)

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to