ChaosPro Home
Introduction
What's New
Palettes
Using Formulas
Layering in ChaosPro
Rendering
Fractal Parameter Windows
Windows
Menu
3D Transformations
Animations
Formula Compiler
Writing Formulas
Language Reference
Introduction
Basic Syntax
Datatypes
Constants
Variables
Expressions
Operators
Precedence
Arithmetic Operators
+
-
*
/
%
^
- (neg)
|a|
Assignment Operator
Comparison Operator
Logical Operators
Functions
Control Structures
Compiler Directives
Functions
Interface to ChaosPro
Special Features, Notes...
Compatibility
Fractal Type Reference
Tutorials
Appendix
CHAOSPRO 4.0
Release 4.0
.

Operators - -

Operator :- (negation)
Unary / binary: Unary
Prefix / infix: Prefix

Input data type

Output data type

int int
real real
complex complex
vector vector
quaternion quaternion

Notes:


This operator inversed the number specified after the operator (i.e. calculates the invers element of y according to addition, i.e. the element x which satisfies the equation y+x=0)

Or to be less mathematically: It places a minus-sign in front of the number as everybody would expect...

Examples:


-4

-(3,4) ==> (-3,-4)

-(-4) ==> 4

-a