C3E: Complex Compute Core Engine v1.0
An engine for handling complex computational tasks
Loading...
Searching...
No Matches
trigo.h File Reference

Trigonometric and special functions for the C3E library. More...

#include <c3e/commons.h>
Include dependency graph for trigo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

c3e_number c3e_radian_degrees (c3e_number x)
 Converts an angle from radians to degrees.
 
c3e_number c3e_gamma (c3e_number x)
 Computes the Gamma function of a given number.
 
c3e_number c3e_log_gamma (c3e_number x)
 Computes the logarithm of the Gamma function (log-Gamma) of a given number.
 

Detailed Description

Author
Nathanne Isip

This file provides functions for performing trigonometric calculations and special mathematical functions. These include conversions between radians and degrees, as well as Gamma and logarithmic Gamma functions, and many more.

Function Documentation

◆ c3e_gamma()

c3e_number c3e_gamma ( c3e_number  x)

This function calculates the Gamma function of a number, which is a generalization of the factorial function. For positive integers, it returns the factorial of (x-1). For other values, it provides an approximation based on the Gamma function definition.

Parameters
xThe value for which the Gamma function is to be computed.
Returns
The Gamma function of the input value.

◆ c3e_log_gamma()

c3e_number c3e_log_gamma ( c3e_number  x)

This function calculates the natural logarithm of the Gamma function for a given input. The log-Gamma function is useful in various statistical computations, especially in contexts where logarithmic scales are employed.

Parameters
xThe value for which the log-Gamma function is to be computed.
Returns
The natural logarithm of the Gamma function of the input value.

◆ c3e_radian_degrees()

c3e_number c3e_radian_degrees ( c3e_number  x)

This function converts a given angle in radians to its equivalent in degrees.

Parameters
xThe angle in radians to be converted.
Returns
The equivalent angle in degrees.