Strange Behavior -- AT&T Std C

j.f.van valkenburg jfv at cbnewsk.att.com
Tue Apr 23 02:44:00 AEST 1991


In article <1991Apr18.144759.4492 at mccc.edu>, pjh at mccc.edu (Peter J. Holsberg) writes:
> Here's the source:
> 
> #include <stdio.h>
> #include <math.h>
> 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 at cbnewsk.att.com
Atlanta, GA.			Voice  404-873-7920
===============================================================================

   ---- Standard Disclaimers included -- Just another grunt at AT&T ----

===============================================================================



More information about the Comp.sys.att mailing list