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 :/ - Division
Unary / binary: Binary
Prefix / infix: Infix
Input data type Output data type
real/real real
real/complex complex
real/quaternion quaternion
complex/real complex
complex/complex complex
complex/quaternion quaternion
vector/real vector
quaternion/real quaternion
quaternion/complex quaternion
quaternion/quaternion quaternion
color/real color

Notes:


This operator divides the first operand by the second operand.The data type of the result is real, if both operands are either int or real. If at least one operand is complex, the result is stored as a complex number. If at least one operand is a quaternion number, the result is stored as a quaternion number.

If you divide a color by a real number, then this operation is performed per color component, i.e. per red, green, blue and alpha component.

Examples:


  • 3/4
  • x/y
  • rgba(0.2, 0.4, 0.5, 1.0)/2 = rgba(0.1, 0.2, 0.25, 0.5)