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
Functions
Arithmetic
abs
cabs
conj
crossproduct
flip
recip
sqr
sqrt
Conversion
Color
Trigonometric
Miscellaneous
Control Structures
Compiler Directives
Functions
Interface to ChaosPro
Special Features, Notes...
Compatibility
Fractal Type Reference
Tutorials
Appendix
CHAOSPRO 4.0
Release 4.0
.

Predefined Functions - sqr

Function name:sqr - Calculate square
Synopsis:sqr(x)

Input data type Output data type
real real
complex complex
quaternion quaternion


Description:

sqr(z) is identical to z*z, but sqr(z) can be faster than z*z.

Normally ChaosPro recognizes that z*z can be rewritten by the faster routine sqr(z). But if the argument is a more complex expression, ChaosPro won’t recognize it. Thus don’t write (z+sin(a)*4) * (z+sin(a)*4). Please write it as sqr( z+sin(a)*4 ).