File: sillymath.sl

package info (click to toggle)
tess 0.3.0-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 464 kB
  • sloc: sh: 2,841; makefile: 177
file content (15 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
	define add()
	{
	   variable i, j;
	   if (_NARGS < 2) usage("add(i,j)");
	   (i,j) = ();
	   return i+j;
	}

	define subtract()
	{
	   variable i, j;
	   if (_NARGS < 2) usage("subtract(i,j)");
	   (i,j) = ();
	   return i - j;
	}