Parameters Manager Expressions
Parameters Manager Expressions
GstarCAD 2021 → User Guide → Additional Pages
Parameters Manager Expressions
Used Operators in Expressions
The following operators within expressions are supported by dimensional constraint parameters and user variables:
| Operator | Description |
|---|---|
| + | Addition |
| - | Subtraction or unary negation |
| % | Floating point modulo |
| * | Multiplication |
| / | Division |
| ^ | Exponentiation |
| ( ) | Parenthesis, expression delimiter |
| . | Decimal separator |
Functions Supported in Expressions
The following functions are available for use in expressions:
| Syntax | Function |
|---|---|
| cos(expression) | Cosine |
| sin(expression) | Sine |
| tan(expression) | Tangent |
| acos(expression) | Arc cosine |
| asin(expression) | Arc sine |
| atan(expression) | Arc tangent |
| cosh(expression) | Hyperbolic cosine |
| sinh(expression) | Hyperbolic sine |
| tanh(expression) | Hyperbolic tangent |
| acosh(expression) | Arc hyperbolic cosine |
| asinh(expression) | Arc hyperbolic sine |
| atanh(expression) | Arc hyperbolic tangent |
| sqrt(expression) | Square root |
| sign(expression) | Signum function (-1,0,1) |
| round(expression) | Round to nearest integer |
| trunc(expression) | Truncate decimal |
| floor(expression) | Round down |
| ceil(expression) | Round up |
| abs(expression) | Absolute value |
| max(expression1;expression2) | Largest element in array |
| min(expression1;expression2) | Smallest element in array |
| d2r(expression) | Degrees to radians |
| r2d(expression) | Radians to degrees |
| ln(expression) | Logarithm, base e |
| log(expression) | Logarithm, base 10 |
| exp(expression) | Exponent, base e |
| exp10(expression) | Exponent, base 10 |
| pow(expression1;expression2) | Power function |
| Random | Random decimal, 0-1 |
Gstarsoft Co.,Ltd
Other versions with matching text
GstarCAD 2017 · GstarCAD 2018 · GstarCAD 2019 · GstarCAD 2020