[Tutor] How to convert the fortran logic to python definition
Alan Gauld
alan.gauld at yahoo.co.uk
Thu Mar 26 19:21:57 EDT 2020
On 26/03/2020 21:16, SATYABRATA DATTA wrote:
> if((x.lt.0.and.y.lt.0).or.(x.lt.0.and.y.gt.0))then
The obvious question here is what happens when x and/or y
is equal to zero? That is undefined.
Also
(A and B) or (A and notB)
is equal to:
A
Draw the truth table to prove it.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list