mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-08 13:17:00 +02:00
Fixing docs for hyperbolic functions.
This commit is contained in:
12
math.scad
12
math.scad
@@ -163,32 +163,32 @@ function distance(p1, p2) = norm(point3d(p2)-point3d(p1));
|
|||||||
|
|
||||||
|
|
||||||
// Function: sinh()
|
// Function: sinh()
|
||||||
// Description: Takes a radians value `x`, and returns the hyperbolic sine of it.
|
// Description: Takes a value `x`, and returns the hyperbolic sine of it.
|
||||||
function sinh(x) = (exp(x)-exp(-x))/2;
|
function sinh(x) = (exp(x)-exp(-x))/2;
|
||||||
|
|
||||||
|
|
||||||
// Function: cosh()
|
// Function: cosh()
|
||||||
// Description: Takes a radians value `x`, and returns the hyperbolic cosine of it.
|
// Description: Takes a value `x`, and returns the hyperbolic cosine of it.
|
||||||
function cosh(x) = (exp(x)+exp(-x))/2;
|
function cosh(x) = (exp(x)+exp(-x))/2;
|
||||||
|
|
||||||
|
|
||||||
// Function: tanh()
|
// Function: tanh()
|
||||||
// Description: Takes a radians value `x`, and returns the hyperbolic tangent of it.
|
// Description: Takes a value `x`, and returns the hyperbolic tangent of it.
|
||||||
function tanh(x) = sinh(x)/cosh(x);
|
function tanh(x) = sinh(x)/cosh(x);
|
||||||
|
|
||||||
|
|
||||||
// Function: asinh()
|
// Function: asinh()
|
||||||
// Description: Takes a value `x`, and returns the inverse hyperbolic sine of it in radians.
|
// Description: Takes a value `x`, and returns the inverse hyperbolic sine of it.
|
||||||
function asinh(x) = ln(x+sqrt(x*x+1));
|
function asinh(x) = ln(x+sqrt(x*x+1));
|
||||||
|
|
||||||
|
|
||||||
// Function: acosh()
|
// Function: acosh()
|
||||||
// Description: Takes a value `x`, and returns the inverse hyperbolic cosine of it in radians.
|
// Description: Takes a value `x`, and returns the inverse hyperbolic cosine of it.
|
||||||
function acosh(x) = ln(x+sqrt(x*x-1));
|
function acosh(x) = ln(x+sqrt(x*x-1));
|
||||||
|
|
||||||
|
|
||||||
// Function: atanh()
|
// Function: atanh()
|
||||||
// Description: Takes a value `x`, and returns the inverse hyperbolic tangent of it in radians.
|
// Description: Takes a value `x`, and returns the inverse hyperbolic tangent of it.
|
||||||
function atanh(x) = ln((1+x)/(1-x))/2;
|
function atanh(x) = ln((1+x)/(1-x))/2;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user