in reply to Perl and maths

It would help to get your example right. What is this?
(5/3 + 7/13)/(5/2-3/7)
and let them perl produce line bye line
(39 + 3/13)/(35-9/21)
Did you mean this?
(65/39 + 21/39)/(35/14 - 6/14)

Edit: fixed typo: thanks Paulster2

Replies are listed 'Best First'.
Re^2: Perl and maths
by Paulster2 (Priest) on Feb 15, 2005 at 22:32 UTC

    But didn't you mean:

    (65/39 + 21/39) / (35/14 - 6/14) ??

    I agree that the original looks a little screwy though.

    Paulster2


    You're so sly, but so am I. - Quote from the movie Manhunter.