This is ug.expon.c in view mode; [Download] [Up]
/* Exponentiation unit generator */ #include "ug.head.h" #include <math.h> #define IN 1 expon UGHEAD{ UGINIT; UGLOOP{ float lastin = 0., lastout = 1. ; if ( VAL(IN) != lastin ) { lastin = VAL(IN) ; VAL(OUT)++ = lastout = exp( (double) lastin ) ; } else VAL(OUT)++ = lastout ; UGEND(1) } }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.