Xref: utzoo comp.sys.att:12180 comp.lang.c:38567 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!mips!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsm!cbnewsk!jfv From: jfv@cbnewsk.att.com (j.f.van valkenburg) Newsgroups: comp.sys.att,comp.lang.c Subject: Re: Strange Behavior -- AT&T Std C Summary: Works for me Message-ID: <1991Apr22.164400.20859@cbnewsk.att.com> Date: 22 Apr 91 16:44:00 GMT References: <1991Apr18.144759.4492@mccc.edu> Followup-To: comp.lang.c,comp.sys.att Distribution: na Organization: AT&T Bell Laboratories Lines: 47 In article <1991Apr18.144759.4492@mccc.edu>, pjh@mccc.edu (Peter J. Holsberg) writes: > Here's the source: > > #include > #include > void main() > { > printf("Exp(0) = %f\n", exp(0.0)); > printf("Exp(1) = %f\n", exp(1.0)); > printf("Exp(-1) = %f\n", exp(-1.0)); > } > > > Here's a typescript of the compilation, execution, and debugging runs: > > Script is typescript, started Thu Apr 18 10:41:28 1991 > various messages I tried it on my 3B2/1000 running SVR3.2.2 and it complied with no burps and ran smooth I compiled cc foo.c -lm -o foo result was Exp(0) = 1.000000 Exp(1) = 2.718282 Exp(-1) = 0.367879 I don't know what happened but, I had no trouble. ------------------------ James F. Van Valkenburg a.k.a. "van" AT&T Attmail: !jfv jfv@cbnewsk.att.com Atlanta, GA. Voice 404-873-7920 =============================================================================== ---- Standard Disclaimers included -- Just another grunt at AT&T ---- ===============================================================================