From 762413338cda6e4e9fc38c1a4483bee2a20d1fc8 Mon Sep 17 00:00:00 2001 From: skylarmt Date: Thu, 16 Apr 2015 13:05:31 -0600 Subject: [PATCH] Update docs and functions.py --- src/net/apocalypselabs/symat/functions.py | 8 +++++++- src/net/apocalypselabs/symat/resources/functions.txt | 12 +++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/net/apocalypselabs/symat/functions.py b/src/net/apocalypselabs/symat/functions.py index c1585d6..d02b8ec 100644 --- a/src/net/apocalypselabs/symat/functions.py +++ b/src/net/apocalypselabs/symat/functions.py @@ -87,4 +87,10 @@ def asec(a): def acsc(a): return _.acsc(a) def acot(a): - return _.acot(a) \ No newline at end of file + return _.acot(a) +def sech(a): + return _.sech(a) +def csch(a): + return _.csch(a) +def coth(a): + return _.coth(a) \ No newline at end of file diff --git a/src/net/apocalypselabs/symat/resources/functions.txt b/src/net/apocalypselabs/symat/resources/functions.txt index 0a8a639..6c76e29 100644 --- a/src/net/apocalypselabs/symat/resources/functions.txt +++ b/src/net/apocalypselabs/symat/resources/functions.txt @@ -45,8 +45,18 @@ pow(x,y)|Raise x to y and calculate. sin(0)|Find the sine. cos(0)|Find the cosine. tan(0)|Find the tangent. +sinh(0)|Find the hyperbolic sine. +cosh(0)|Find the hyperbolic cosine. +tanh(0)|Find the hyperbolic tangent. +sec(0)|Find the secant. +csc(0)|Find the cosecant. +cot(0)|Find the cotangent. +sech(0)|Find the hyperbolic secant. +csch(0)|Find the hyperbolic cosecant. +coth(0)|Find the hyperbolic cotangent. print("")|Prints the supplied text or formula to the output. solve(f,'x',0)|Solve function f for 'x' when it equals 0. solve(f,'x')|Solve function f for 'x', assuming equal to 0. solve(f)|Solve function f, assuming 'x' and 0. -printa(array)|Get array contents as text. \ No newline at end of file +printa(array)|Get array contents as text. +primes(n)|Find all prime numbers up to n. \ No newline at end of file