MATH(DOCS)		The Optical Printer Control System	MATH(DOCS)

    NAME
        math - math operations in opcs

    MATH EXPRESSIONS	
	You can usually use math expressions in place of most numeric 
	arguments as long as the expression is ENCLOSED IN PARENTHESIS,
	and DOES NOT CONTAIN EMBEDDED SPACES. Example:

	    (3+(3*sqrt(16)*12))

	Math can be done on frame counter values:

	    (cam+3)

	For a complete list of all built in math operations, execute:

	     (?)

	The following lists some of the operations supported by the 
	math expression parser:

		/*** TYPICAL OPERATIONS ***/

		3+4-2*12/6         # add, subtract, multiply, divide
		533%256            # modulus
		2^4                # exponentiation (powers)

		/*** OPCS VALUES ***/
		cam   - camera counter value
		pro   - main projector counter value
		pro1  - main projector counter value 
		pro2  - aerial projector counter value

		/*** MATH FUNCTIONS ***/

		sqrt(),  log(),     exp(),
		sin(),   cos(),     tan(),
		asin(),  acos(),    atan(),
		atan2(), radians(), degrees()
		hex(), pi

		/*** NUMERIC EXPRESSIONS ***/
		-12           # negative 12
		+34           # positive 34
		0x3ff         # hex representation for 1023 decimal


    THE ONLINE CALCULATOR
	As an aid to the operator, you can the above techniques for printing 
	out the answer to expressions by typing them alone on a line.
	Example:

		(3+(3*sqrt(16)*12))

	..on a blank line (as if it were a command), the answer will be 
	printed to the screen:

		147.000000


    BUGS
        Needs logicals some day, like not() xor() and() etc.

    ORIGIN
	Gregory Ercolano, Los Feliz California 12/15/89
© Copyright 1997 Greg Ercolano. All rights reserved.