usencrypt#

The general usencrypt module contains the following functions:

acos

Computes the arcosine of \(x\) using the Newton-Raphson method.

asin

Computes the arcsine of \(x\) using the Newton-Raphson method.

atan

Computes the arctangent of \(x\) using the Newton-Raphson method.

atanh

Computes the hyperbolic arctangent of \(x\) using the Newton-Raphson method.

conjugate

Returns the conjugate of \(x\).

cos

Computes the cosine of \(x\) using \(n\) iterations of the Taylor series approximation method.

decrypt

Decrypts the encrypted object \(E(x)\), returning the original non-encrypted \(x\).

encrypt

Encrypts \(x\) using USEncryption's encrypted operator computing (EOC) method and stores it in an encrypted object \(E(x)\).

exp

Computes the exponential of \(x\) using \(n\) iterations of the Taylor series approximation method.

ifelse

Ternary if-else expression for programming with encrypted objects.

if_else

Ternary if-else expression for programming with encrypted objects.

is_encrypted

Checks if an object or collection is already encrypted with the USEncrypt® library.

log

Computes the natural logarithm of \(x\) using the Newton-Raphson method.

sin

Computes the sine of \(x\) using the cosine series approximation method.

sqrt

Computes the non-negative square-root of \(x\).

tan

Computes the tangent of \(x\) using the definition \(\tan{x} = \frac{\sin{x}}{\cos{x}}\).

tanh

Computes the hyperbolic tangent of \(x\) using the definition \(\tanh(x) = \frac{e^x - e^{-x}}{e^x + e^{-x}}\).