Mathematical Functions
Sample (illustrates interpolations): KwrInterpolations.CATPart
|
abs(Real): Real
Calculates the absolute value of a number.
|
ceil(Real): Real
Returns the smallest integer value that is greater than or equal to the value specified in the
argument.
|
floor(Real):Real
Returns the largest integer value that is less than or equal to the value specified in the
argument.
|
int(Real):Real
Returns the integer value of a number.
|
|
let
Assigns a value to a temporary variable ( let x = 30 mm )
|
min(Real,Real):Real, max(Real,Real)
Returns the minimum or maximum of a set of values specified in the argument.
|
sqrt(Real):Real
Returns the square root.
|
log(Real):Real
Returns the logarithm.
|
ln(Real):Real
Returns the natural logarithm.
|
round(Real):Real
Returns a rounded number.
|
exp(Real):Real
Returns the exponential.
|
LinearInterpolation(arg1:Real, arg2:Real, arg3:Real) : Real
Should be used when creating a parallel curve from a law.
Example:
1 - Create a line in the Generative Shape Design workbench
2 - Access the Knowledge Advisor workbench and create the law below:
FormalReal.1 = LinearInterpolation(1,9,FormalReal.2)
3 - Back to the Generative Shape Design, create a parallel curve. Select the Law mode and
specify the law above as the one to be applied.
|
|
CubicInterpolation(arg1:Real, arg2:Real, arg3:Real) : Real
Should be used when creating a parallel curve from a law.
Example:
1 - Create a line in the Generative Shape Design workbench
2 - Access the Knowledge Advisor workbench and create the law below:
FormalReal.1 = CubicInterpolation(1,50,FormalReal.2)
3 - Back to the Generative Shape Design, create a parallel curve. Select the Law mode and
specify the law above as the one to be applied.
|
|
mod(Real,Integer): Real
Enables the user to retrieve the remainder of the division of the integer
part of the real number by the integer.
|
| | | | | | | | | |
|
For these methods to be efficient, you should use real
numbers only. |
|