You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jamie Bliss edited this page Jun 2, 2015
·
3 revisions
Binary (takes 2 inputs) F-Rep Operators
Symbol
Description
+
addition
-
subtraction
*
multiplication
/
division
i
minimum
a
maximum
p
power
Unary (single input) F-Rep Operators
Symbol
Description
s
sine
c
cosine
t
tangent
S
arcsine
C
arccosine
T
arctangent
b
absolute value
q
square
r
root
n
negation
NB: trigonometric operators assume radians
The f-rep syntax accepts four distinct types of atoms. X, Y, and Z are replaced by position in the world’s coordinate system at any given evaluation point. Floating point constants are preceded by f, followed by the value (e.g. f3.14159 or f6.023e23).
For example, a circle (x² + y² − 1) is written as -+qXqYf1.
Finally, the map operation allows for coordinate transforms to be represented in a
space-efficient manner. The map operator is written as m followed by four arguments.
The first three arguments represent transformed expressions xʹ, yʹ, and zʹ respectively
(in terms of x, y, and z); if a coordinate is not modified then a space appears instead.
The last argument is the expression to evaluate with the transformed coordinates.
The example m+XYX X applies the coordinate transform x’=x+y, y’=x, z’=z to the
expression x, producing x+y (note that the z coordinate is not modified, because the
third argument following m is a space).