UserManual:Tools:Formulas

From Seamly
Revision as of 21:37, 18 June 2024 by JCDesign (talk | contribs)

Draft Mode - Formulas

Formulas

Below you'll find some examples and tips how you can use the formulas to create your pattern

List of buitlt-in functions

  • abs Absolute value, Usage: abs(x)
    • Returns the absolute value of a number. The absolute value of a number is the number without its sign.
    • E.g.: abs(-1) = 1
    • E.g.: abs(1) = 1
  • acos Inverse cosine function working with radians, Usage: acos(x)
    • The arccosine function is the inverse function of the cosine function and calculates the angle for a given cosine. X must be in the [-1..1] range. The result is an angle expressed in radians.
    • E.g.: acos(0.1) = 1.47063
  • acosD Inverse cosine function working with degrees, Usage: acosD(x)
    • For values of X in the interval [-1, 1], acosd(X) returns values in the interval [0, 180]
    • E.g.: acosD(-1) = 180
  • acosh Inverse Hyperbolic cosine function, Usage: acosh(x)
    • Returns the inverse hyperbolic cosine of a number. The number must be greater than 1.
    • E.g.: acosh(2) = 1.31696
  • asin Inverse sine function working with radians, Usage: asin(x)
    • It returns the inverse sine of a value, given a ratio of a triangle's opposite side over its hypotenuse. The asin()function is a trigonometric function that returns the inverse sine of a number between -1 and 1. The function contains a single calculation that returns the number of radians representing an <angle> between -90deg and 90deg.
    • E.g.: asin(-1) = -1.5708
  • asinD Inverse sine function working with degrees, Usage: asinD(x)
    • The function accepts both real and complex inputs. For real values of X in the interval [-1, 1], asind(X) returns values in the interval [-90, 90].
    • E.g.: asinD(1) = 90
  • asinh Inverse Hyperbolic sine function, Usage: asinh(x)
    • Returns the inverse hyperbolic sine of the elements of X. All angles are in radians.
    • E.g.: asinh(90) = 5.19299
  • atan Inverse tangent function working with radians, Usage: atan(x)
  • atanD Inverse tangent function working with degrees, Usage: atanD(x)
  • atanh Inverse Hyperbolic tangent function, Usage: atanh(x)
  • avg Mean value of all arguments, Usage: avg(arg 1; arg 2; ... arg n)
  • cos Cosine function working with radians, Usage: cos(angle 0 in radians)
  • cosD Cosine function working with degrees, Usage: cosD(angle 0 in degrees)
  • cosh Hyperbolic cosine function, Usage: cosh(angle 0 in radians)
  • degTorad Converts degrees to radians, Usage: degTorad(angle 0 in degrees)
  • exp E raised to the power of x, Usage: exp(x) where e = 2.718
  • fmod Returns the floating-point remainder of x/y (rounded towards zero), Usage: fmod(x; y)
  • ln Logarithm to base e (2.71828...), Usage: ln(x)
  • log Logarithm to base 10, Usage: log(x)
  • log10 Logarithm to base 10, Usage: log10(x)
  • log2 Logarithm to base 2, Usage: log2(x)
  • max Max of all arguments, Usage: max(arg 1; arg 2; ... arg n)
  • min Min of all arguments, Usage: min(arg 1; arg 2; ... arg n)
  • radTodeg Converts radians to degrees, Usage: radTodeg(angle 0 in radians)
  • rint Round to nearest integer, Usage: rint(float x)
  • sign Sign function -1 if x<0; 1 if x>0, Usage: sign(x)
  • sin Sine function working with radians, Usage: sin(angle 0 in radians)
  • sinD Sine function working with degrees, Usage: sinD(angle 0 in degrees)
  • sinh Hyperbolic sine function, Usage: sinh(angle 0 in radians)
  • sqrt Square root of a value, Usage: sqrt(x)
  • sum Sum of all arguments, Usage: sum(arg 1; arg 2; ... arg n)
  • tan Tangent function working with radians, Usage: tan(angle 0 in radians)
  • tanD Tangent function working with degrees, Usage: tanD(angle 0 in degrees)
  • tanh Hyperbolic tangent function, Usage: tanh(angle 0 in radians)