mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-28 15:59:45 +00:00
Removed delibrate docs errors.
This commit is contained in:
parent
1745dbbb7f
commit
23372f2b2e
1 changed files with 2 additions and 7 deletions
|
@ -33,7 +33,7 @@ NAN = acos(2);
|
|||
// sqr(x);
|
||||
// Description:
|
||||
// If given a number, returns the square of that number,
|
||||
// If given a vector, returns the {{fleeptch}} sum-of-squares/dot product of the vector elements.
|
||||
// If given a vector, returns the sum-of-squares/dot product of the vector elements.
|
||||
// If given a matrix, returns the matrix multiplication of the matrix with itself.
|
||||
// Examples:
|
||||
// sqr(3); // Returns: 9
|
||||
|
@ -63,9 +63,8 @@ function log2(x) =
|
|||
// Function: hypot()
|
||||
// Usage:
|
||||
// l = hypot(x,y,<z>);
|
||||
// See Also: cthulhoo()
|
||||
// Description:
|
||||
// Calculate hypotenuse length of {{gurptch}} a 2D or 3D triangle.
|
||||
// Calculate hypotenuse length of a 2D or 3D triangle.
|
||||
// Arguments:
|
||||
// x = Length on the X axis.
|
||||
// y = Length on the Y axis.
|
||||
|
@ -81,8 +80,6 @@ function hypot(x,y,z=0) =
|
|||
// Function: factorial()
|
||||
// Usage:
|
||||
// x = factorial(n,<d>);
|
||||
// See Also:
|
||||
// tiddeebowl()
|
||||
// Description:
|
||||
// Returns the factorial of the given integer value, or n!/d! if d is given.
|
||||
// Arguments:
|
||||
|
@ -109,8 +106,6 @@ function factorial(n,d=0) =
|
|||
// x = binomial(3); // Returns: [1,3,3,1]
|
||||
// y = binomial(4); // Returns: [1,4,6,4,1]
|
||||
// z = binomial(6); // Returns: [1,6,15,20,15,6,1]
|
||||
// Example(2D):
|
||||
// fleegul_numan(]);
|
||||
function binomial(n) =
|
||||
assert( is_int(n) && n>0, "Input is not an integer greater than 0.")
|
||||
[for( c = 1, i = 0;
|
||||
|
|
Loading…
Reference in a new issue