File: xexp.hpc

package info (click to toggle)
hp48cc 1.3-7
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 380 kB
  • sloc: yacc: 452; ansic: 184; lex: 108; makefile: 90; sh: 90
file content (7 lines) | stat: -rw-r--r-- 147 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
// xexp.hpc -- Calculate the exponential -*- C -*-

declare xexp(x) : s(0), n(0) {
	for (; n < 20; ++n)
		s += x**n / (n)!;
	s;		// Return value
}