{"id":25407919,"url":"https://github.com/teomandeniz/ft_math","last_synced_at":"2026-03-06T21:31:19.777Z","repository":{"id":158833170,"uuid":"609197675","full_name":"TeomanDeniz/ft_math","owner":"TeomanDeniz","description":"The entire \u003cmath.h\u003e library from scratch.","archived":false,"fork":false,"pushed_at":"2025-01-27T14:04:40.000Z","size":201,"stargazers_count":14,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T04:13:28.794Z","etag":null,"topics":["42","42-school","42projects","42school","c","math"],"latest_commit_sha":null,"homepage":"http://maximum-tension.com/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TeomanDeniz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-03T15:25:55.000Z","updated_at":"2025-02-11T11:30:39.000Z","dependencies_parsed_at":"2024-06-02T10:32:51.829Z","dependency_job_id":null,"html_url":"https://github.com/TeomanDeniz/ft_math","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TeomanDeniz/ft_math","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeomanDeniz%2Fft_math","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeomanDeniz%2Fft_math/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeomanDeniz%2Fft_math/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeomanDeniz%2Fft_math/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TeomanDeniz","download_url":"https://codeload.github.com/TeomanDeniz/ft_math/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeomanDeniz%2Fft_math/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30198661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["42","42-school","42projects","42school","c","math"],"created_at":"2025-02-16T07:19:23.003Z","updated_at":"2026-03-06T21:31:19.737Z","avatar_url":"https://github.com/TeomanDeniz.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--------------------------------------------------------------------------- !\n !                                                                            !\n !                                                        :::      ::::::::   !\n !   ft_math.h                                          :+:      :+:    :+:   !\n !                                                    +:+ +:+         +:+     !\n !   By: hdeniz \u003cDiscord:@teomandeniz\u003e              +#+  +:+       +#+        !\n !                                                +#+#+#+#+#+   +#+           !\n !   Created: 2023/02/26 18:17:45 by hdeniz            #+#    #+#             !\n !   Updated: 2024/05/18 ??:??:?? by hdeniz           ###   ########.fr       !\n !                                                                            !\n ! ----------------------------------------------------------------------------\u003e\n\n# ft_math\n`ft_math.h` is a remake library from original `\u003cmath.h\u003e` library.\n\nIncludes `C23`, `C11` and `C99` functions + their `float` types, can compilable and work all versions + compilers.\n\n# Setup:\n\n\u003e **Windows:**\n\u003e\n\u003e You can double click `MAKE.bat` file and directly install it.\n\u003e \n\u003e Or in console, write `make` to compile the stup.\n\n\u003e **Linux, macOS:**\n\u003e \n\u003e In console, write `make` to compile the setup.\n\n## PHONYS\n\nHere's the arguments `MAKE.bat` and `Makefile` using:\n\n\u003e `fc`, `fclean`, `fclear` -\u003e Clear both object and created products.\n\n\u003e `c`, `clean`, `clear` -\u003e Clear only object files\n\n\u003e `re` -\u003e Remake everything\n\nThen, in console: you need to include your binary compiler library (.a file) via parameter while compiling your file.\n\n```\nGCC main.c mathft.a\n```\n\n# Trigonometric functions:\n| Function Name                                                                                                                                                                             | Function Parameter(s)                          | Description                                                     |\n| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- | --------------------------------------------------------------- |\n| **[ft_sin](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_sin.c)** **[ft_sinf](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_sinf.c)**             | `double` x                                     | Returns the sine of `x`                                         |\n| **[ft_cos](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_cos.c)** **[ft_cosf](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_cosf.c)**             | `double` x                                     | Returns the cosine of `x`                                       |\n| **[ft_tan](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_tan.c)**  **[ft_tanf](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_tanf.c)**            | `double` x                                     | Returns the tangent of `x`. [sin(`x`) / cos(`x`)]               |\n| **[ft_asin](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_asin.c)**  **[ft_asinf](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_asinf.c)**        | `double` x                                     | Returns the arc sine in radians. (1 ≥ x ≥ -1) [Aka: sin⁻¹(x)]   |\n| **[ft_acos](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_acos.c)**  **[ft_acosf](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_acosf.c)**        | `double` x                                     | Returns the arc cosine in radians. (1 ≥ x ≥ -1) [Aka: cos⁻¹(x)] |\n| **[ft_atan](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_atan.c)**  **[ft_atanf](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_atanf.c)**        | `double` x                                     | Returns the arc tangent of `x`                                  |\n| **[ft_atan2](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_atan2.c)**  **[ft_atan2f](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_atan2f.c)**    | `double` x, `double` y                         | Calculates the angle in radians for the quadrant                |\n| **[ft_csc](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_csc.c)**  **[ft_cscf](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_cscf.c)**            | `double` x                                     | Returns the cosecant of `x`                                     |\n| **[ft_sec](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_sec.c)**  **[ft_secf](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_secf.c)**            | `double` x                                     | Returns the secant of `x`                                       |\n| **[ft_cot](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_cot.c)**  **[ft_cotf](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_cotf.c)**            | `double` x                                     | Returns the cotangent of `x`                                    |\n| **[ft_sincos](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_sincos.c)** **[ft_sincosf](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_sincosf.c)** | `double` x, `double *` sine, `double *` cosine | Split `x` to given variables as sine and cosine                 |\n| **[ft_sinpi](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_sinpi.c)**  **[ft_sinpif](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_sinpif.c)**    | `double` x                                     | sin(`x` * M_PI)                                                 |\n| **[ft_cospi](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_cospi.c)**  **[ft_cospif](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_cospif.c)**    | `double` x                                     | cos(`x` * M_PI)                                                 |\n| **[ft_tanpi](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_tanpi.c)**  **[ft_tanpif](https://github.com/TeomanDeniz/ft_math/blob/main/Trigonometric/ft_tanpif.c)**    | `double` x                                     | tan(`x` * M_PI)                                                 |\n\n# Hyperbolic functions:\n| Function Name                                                                                                                                                                   | Function Parameter(s) | Description                                |\n| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ------------------------------------------ |\n| **[ft_sinh](https://github.com/TeomanDeniz/ft_math/blob/main/Hyperbolic/ft_sinh.c)** **[ft_sinhf](https://github.com/TeomanDeniz/ft_math/blob/main/Hyperbolic/ft_sinhf.c)**     | `double` x            | Computes the hyperbolic sine of `x`        |\n| **[ft_cosh](https://github.com/TeomanDeniz/ft_math/blob/main/Hyperbolic/ft_cosh.c)** **[ft_coshf](https://github.com/TeomanDeniz/ft_math/blob/main/Hyperbolic/ft_coshf.c)**     | `double` x            | Computes the hyperbolic cosine of `x`      |\n| **[ft_tanh](https://github.com/TeomanDeniz/ft_math/blob/main/Hyperbolic/ft_tanh.c)** **[ft_tanhf](https://github.com/TeomanDeniz/ft_math/blob/main/Hyperbolic/ft_tanhf.c)**     | `double` x            | Computes the hyperbolic tangent of `x`     |\n| **[ft_asinh](https://github.com/TeomanDeniz/ft_math/blob/main/Hyperbolic/ft_asinh.c)** **[ft_asinhf](https://github.com/TeomanDeniz/ft_math/blob/main/Hyperbolic/ft_asinhf.c)** | `double` x            | Computes the arc hyperbolic sine of `x`    |\n| **[ft_acosh](https://github.com/TeomanDeniz/ft_math/blob/main/Hyperbolic/ft_acosh.c)** **[ft_acoshf](https://github.com/TeomanDeniz/ft_math/blob/main/Hyperbolic/ft_acoshf.c)** | `double` x            | Computes the arc hyperbolic cosine of `x`  |\n| **[ft_atanh](https://github.com/TeomanDeniz/ft_math/blob/main/Hyperbolic/ft_atanh.c)** **[ft_atanhf](https://github.com/TeomanDeniz/ft_math/blob/main/Hyperbolic/ft_atanhf.c)** | `double` x            | Computes the arc hyperbolic tangent of `x` |\n\n# Exponential and Logarithmic functions:\n| Function Name                                                                                                                                                                                                     | Function Parameter(s)                          | Description                                         |\n| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- | --------------------------------------------------- |\n| **[ft_exp](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_exp.c)** **[ft_expf](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_expf.c)**                 | `double` x                      | Computes e(2.71828) raised to the power of the given `x`           |\n| **[ft_exp2](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_exp2.c)** **[ft_exp2f](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_exp2f.c)**             | `double` x                      | Computes `2` raised to the given power `x`                         |\n| **[ft_exp10](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_exp10.c)** **[ft_exp10f](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_exp10f.c)**         | `double` x                      | Calculate the exponent of `10` by `x`                              |\n| **[ft_expm1](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_expm1.c)** **[ft_expm1f](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_expm1f.c)**         | `double` x                      | Computes the Euler's number raised to the given `x`, (-1.0 `x`)    |\n| **[ft_frexp](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_frexp.c)** **[ft_frexpf](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_frexpf.c)**         | `double` x, `int *` exponent    | Returns value of mantissa, and pointed to by `exponent`            |\n| **[ft_ilogb](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_ilogb.c)** **[ft_ilogbf](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_ilogbf.c)**         | `double` x                      | Extracts the value of the unbiased exponent from the  `x` as `int` |\n| **[ft_ldexp](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_ldexp.c)** **[ft_ldexpf](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_ldexpf.c)**         | `double` x, `int` exponent      | Returns `x` multiplied by `2` raised to the power of `exponent`    |\n| **[ft_log](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_log.c)** **[ft_logf](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_logf.c)**                 | `double` x                      | Calculation of the logarithm of `x`                                |\n| **[ft_log2](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_log2.c)** **[ft_log2f](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_log2f.c)**             | `double` x                      | Calculation of the base-2 logarithm of `x`                         |\n| **[ft_log10](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_log10.c)** **[ft_log10f](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_log10f.c)**         | `double` x                      | Calculation of the logarithm of `x` to the base of 10              |\n| **[ft_log1p](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_log1p.c)** **[ft_log1pf](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_log1pf.c)**         | `double` x                      | Calculates the logarithm of one plus of `x`                        |\n| **[ft_logb](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_logb.c)** **[ft_logbf](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_logbf.c)**             | `double` x                      | Extracts the unbiased radix-independent exponent from the `x`      |\n| **[ft_scalbln](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_scalbln.c)** **[ft_scalblnf](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_scalblnf.c)** | `double` x, `long int` exponent | Returns `x` multiplied by `2` raised to the power of `exponent`    |\n| **[ft_scalbn](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_scalbn.c)** **[ft_scalbnf](https://github.com/TeomanDeniz/ft_math/blob/main/Exponential_Logarithmic/ft_scalbnf.c)**     | `double` x, `int` exponent      | Returns `x` multiplied by `2` raised to the power of `exponent`    |\n\n# Power functions:\n| Function Name                                                                                                                                                                 | Function Parameter(s)         | Description                                      |\n| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- | ------------------------------------------------ |\n| **[ft_cbrt](https://github.com/TeomanDeniz/ft_math/blob/main/Power/ft_cbrt.c)** **[ft_cbrtf](https://github.com/TeomanDeniz/ft_math/blob/main/Power/ft_cbrtf.c)**             | `double` x                    | Computes the cube root of `x`                    |\n| **[ft_hypot](https://github.com/TeomanDeniz/ft_math/blob/main/Power/ft_hypot.c)** **[ft_hypotf](https://github.com/TeomanDeniz/ft_math/blob/main/Power/ft_hypotf.c)**         | `double` p, `double` b        | Find hypotenuse of two sides. h = √(p²+b²)       |\n| **[ft_invsqrt](https://github.com/TeomanDeniz/ft_math/blob/main/Power/ft_invsqrt.c)** **[ft_invsqrtf](https://github.com/TeomanDeniz/ft_math/blob/main/Power/ft_invsqrtf.c)** | `double` x                    | Fast inverse square root                         |\n| **[ft_pow](https://github.com/TeomanDeniz/ft_math/blob/main/Power/ft_pow.c)** **[ft_powf](https://github.com/TeomanDeniz/ft_math/blob/main/Power/ft_powf.c)**                 | `double` base, `double` power | Calculates the angle in radians for the quadrant |\n| **[ft_pow10](https://github.com/TeomanDeniz/ft_math/blob/main/Power/ft_pow10.c)** **[ft_pow10f](https://github.com/TeomanDeniz/ft_math/blob/main/Power/ft_pow10f.c)**         | `double` x                    | Calculate the exponent of `10` by `x`            |\n| **[ft_sqrt](https://github.com/TeomanDeniz/ft_math/blob/main/Power/ft_sqrt.c)** **[ft_sqrtf](https://github.com/TeomanDeniz/ft_math/blob/main/Power/ft_sqrtf.c)**             | `double` x                    | Square root calculation of `x`                   |\n\n# Rounding and Remainder functions:\n| Function Name                                                                                                                                                                                                       | Function Parameter(s)                    | Description                                                         |\n| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- | ------------------------------------------------------------------- |\n| **[ft_ceil](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_ceil.c)** **[ft_ceilf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_ceilf.c)**                         | `double` x                               | Computes the nearest integer greater than `x`                       |\n| **[ft_copysign](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_copysign.c)** **[ft_copysignf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_copysignf.c)**         | `double` x, `double` y                   | Composes a result with magnitude of `x` and the sign of `y`         |\n| **[ft_fdim](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_fdim.c)** **[ft_fdimf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_fdimf.c)**                         | `double` x, `double` y                   | Returns the positive difference between `x` and `y`                 |\n| **[ft_floor](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_floor.c)** **[ft_floorf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_floorf.c)**                     | `double` x                               | Returns the largest integer that is smaller than or equal to `x`    |\n| **[ft_fmod](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_fmod.c)** **[ft_fmodf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_fmodf.c)**                         | `double` x, `double` y                   | Gets the modalities of 2 numbers in \"float\"                         |\n| **[ft_lrint](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_lrint.c)** **[ft_lrintf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_lrintf.c)**                     | `double` x                               | Roundoff the floating-point `x` to a long                           |\n| **[ft_lround](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_lround.c)** **[ft_lroundf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_lroundf.c)**                 | `double` x                               | Computes the nearest integer value to `x`                           |\n| **[ft_nan](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_nan.c)** **[ft_nanf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_nanf.c)**                             | `const char *` tag_pointer               | Just returns NAN (**N**ot **A** **N**umber)                         |\n| **[ft_nearbyint](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_nearbyint.c)** **[ft_nearbyintf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_nearbyintf.c)**     | `double` x                               | Rounds the floating-point `x` to an integer value                   |\n| **[ft_nextafter](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_nextafter.c)** **[ft_nextafterf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_nextafterf.c)**     | `double` x, `double` y                   | Returns the next representable value of from in the direction of to |\n| **[ft_nexttoward](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_nexttoward.c)** **[ft_nexttowardf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_nexttowardf.c)** | `double` x, `long double` y              | (Same with **ft_nextafter**)                                        |\n| **[ft_remainder](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_remainder.c)** **[ft_remainderf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_remainderf.c)**     | `double` x, `double` y                   | Computes the IEEE remainder of floating point division operation    |\n| **[ft_remquo](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_remquo.c)** **[ft_remquof](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_remquof.c)**                 | `double` x, `double` y, `int *` quotient | Computes the floating-point remainder of the division operation     |\n| **[ft_rint](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_rint.c)** **[ft_rintf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_rintf.c)**                         | `double` x                               | Roundoff the floating-point `x` to an integer                       |\n| **[ft_round](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_round.c)** **[ft_roundf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_roundf.c)**                     | `double` x                               | Returns the nearest integer value (rounded value) of the given `x`  |\n| **[ft_trunc](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_trunc.c)** **[ft_truncf](https://github.com/TeomanDeniz/ft_math/blob/main/Rounding_Remainder/ft_truncf.c)**                     | `double` x                               | Truncates the `x` by removing the fraction                          |\n\n# Floating-point Classification functions:\n| Function Name                                                                                                                                                                                                                                 | Function Parameter(s) | Description                                                               |\n| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ------------------------------------------------------------------------- |\n| **[ft_fpclassify](https://github.com/TeomanDeniz/ft_math/blob/main/Floating-point_Classification/ft_fpclassify.c)** **[ft_fpclassifyf](https://github.com/TeomanDeniz/ft_math/blob/main/Floating-point_Classification/ft_fpclassifyf.c)**     | `double` x            | Categorizes floating point value `x` into the following categories        |\n| **[ft_isfinite](https://github.com/TeomanDeniz/ft_math/blob/main/Floating-point_Classification/ft_isfinite.c)**                                                                                                                               | `double` x            | Check if number is not infinity                                           |\n| **[ft_isinf](https://github.com/TeomanDeniz/ft_math/blob/main/Floating-point_Classification/ft_isinf.c)**                                                                                                                                     | `double` x            | Check if float number is inf number (Will also return -1 if \"-inf\")       |\n| **[ft_isnan](https://github.com/TeomanDeniz/ft_math/blob/main/Floating-point_Classification/ft_isnan.c)**                                                                                                                                     | `double` x            | Check if float number is non number                                       |\n| **[ft_isnormal](https://github.com/TeomanDeniz/ft_math/blob/main/Floating-point_Classification/ft_isnormal.c)**                                                                                                                               | `double` x            | Check if number is normal to in use                                       |\n| **[ft_signbit](https://github.com/TeomanDeniz/ft_math/blob/main/Floating-point_Classification/ft_signbit.c)**                                                                                                                                 | `double` x            | Checking if the float number is minus or not                              |\n| **[ft_significand](https://github.com/TeomanDeniz/ft_math/blob/main/Floating-point_Classification/ft_significand.c)** **[ft_significandf](https://github.com/TeomanDeniz/ft_math/blob/main/Floating-point_Classification/ft_significandf.c)** | `double` x            | Retrieves the fractional part of a double-precision floating-point number |\n\n# Bessel functions:\n| Function Name                                                                                                                                               | Function Parameter(s) | Description                                                       |\n| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ----------------------------------------------------------------- |\n| **[ft_j0](https://github.com/TeomanDeniz/ft_math/blob/main/Bessel/ft_j0.c)** **[ft_j0f](https://github.com/TeomanDeniz/ft_math/blob/main/Bessel/ft_j0f.c)** | `double` x            | Compute the Bessel function of the first kind of order zero (j0)  |\n| **[ft_j1](https://github.com/TeomanDeniz/ft_math/blob/main/Bessel/ft_j1.c)** **[ft_j1f](https://github.com/TeomanDeniz/ft_math/blob/main/Bessel/ft_j1f.c)** | `double` x            | Compute the Bessel function of the first kind of order one  (j1)  |\n| **[ft_jn](https://github.com/TeomanDeniz/ft_math/blob/main/Bessel/ft_jn.c)** **[ft_jnf](https://github.com/TeomanDeniz/ft_math/blob/main/Bessel/ft_jnf.c)** | `int` n, `double` x   | Compute the Bessel function of the first kind of order `n` (jn)   |\n| **[ft_y0](https://github.com/TeomanDeniz/ft_math/blob/main/Bessel/ft_y0.c)** **[ft_y0f](https://github.com/TeomanDeniz/ft_math/blob/main/Bessel/ft_y0f.c)** | `double` x            | Compute the Bessel function of the second kind of order zero (y0) |\n| **[ft_y1](https://github.com/TeomanDeniz/ft_math/blob/main/Bessel/ft_y1.c)** **[ft_y1f](https://github.com/TeomanDeniz/ft_math/blob/main/Bessel/ft_y1f.c)** | `double` x            | Compute the Bessel function of the second kind of order one  (y1) |\n| **[ft_yn](https://github.com/TeomanDeniz/ft_math/blob/main/Bessel/ft_yn.c)** **[ft_ynf](https://github.com/TeomanDeniz/ft_math/blob/main/Bessel/ft_ynf.c)** | `int` n, `double` x   | Compute the Bessel function of the second kind of order `n` (yn)  |\n\n# Other functions:\n| Function Name                                                                                                                                                             | Function Parameter(s)              | Description                                                                         |\n| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- | ----------------------------------------------------------------------------------- |\n| **[ft_erf](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_erf.c)** **[ft_erff](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_erff.c)**             | `double` x                         | Computes the error function of the given `x`                                        |\n| **[ft_erfc](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_erfc.c)** **[ft_erfcf](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_erfcf.c)**         | `double` x                         | Computes the complementary error of `x`                                             |\n| **[ft_fibonacci](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_fibonacci.c)**                                                                                 | `unsigned long long` number        | Every number in the sequence is the sum of two numbers preceding it in the sequence |\n| **[ft_fma](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_fma.c)** **[ft_fmaf](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_fmaf.c)**             | `double` x, `double` y, `double` z | `(x * y + z)`                                                                       |\n| **[ft_fabs](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_fabs.c)** **[ft_fabsf](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_fabsf.c)**         | `double` x                         | Get the absolute value of a `x`                                                     |\n| **[ft_fmax](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_fmax.c)** **[ft_fmaxf](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_fmaxf.c)**         | `double` x                         | If (`x` \u003e `y`) return `x`, else return `y`                                          |\n| **[ft_fmin](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_fmin.c)** **[ft_fminf](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_fminf.c)**         | `double` x                         | If (`x` \u003c `y`) return `x`, else return `y`                                          |\n| **[ft_lerp](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_lerp.c)** **[ft_lerpf](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_lerpf.c)**         | `double` x, `double` y, `double` f | Linear interpolation.                                                               |\n| **[ft_lgamma](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_lgamma.c)** **[ft_lgammaf](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_lgammaf.c)** | `double` x                         | Computes the logarithm of the absolute `x` of the gamma function                    |\n| **[ft_modf](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_modf.c)** **[ft_modff](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_modff.c)**         | `double` x, `double *` integer     | Splits fraction an integer in float number (Returns fraction)                       |\n| **[ft_tgamma](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_tgamma.c)** **[ft_tgammaf](https://github.com/TeomanDeniz/ft_math/blob/main/Other/ft_tgammaf.c)** | `double` x                         | Compute the gamma function of `x`                                                   |\n\n# Neural Network functions:\n| Function Name                                                                                                                                                                                               | Function Parameter(s)                    | Description                                                             |\n| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- | ----------------------------------------------------------------------- |\n| **[ft_elu](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_elu.c)** **[ft_eluf](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_eluf.c)**                             | `double` x, `double` aplha               | \"Exponential Linear Unit\" Determines the slope for negative input       |\n| **[ft_leakyrelu](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_leakyrelu.c)** **[ft_leakyreluf](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_leakyreluf.c)**     | `double` x, `double` aplha               | ReLU, But has a small slope for negative values instead of a flat slope |\n| **[ft_mish](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_mish.c)** **[ft_mishf](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_mishf.c)**                         | `double` x                               | Hyperbolic tangent function, and `softplus` is the smooth approximation |\n| **[ft_prelu](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_prelu.c)** **[ft_preluf](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_preluf.c)**                     | `double` x, `double` aplha               | ReLU, But has a small slope for negative values instead of a flat slope |\n| **[ft_relu](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_relu.c)** **[ft_reluf](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_reluf.c)**                         | `double` x                               | \"The Rectified Linear Unit\" Returns `0` if `x` is negative              |\n| **[ft_sigmoid](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_sigmoid.c)** **[ft_sigmoidf](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_sigmoidf.c)**             | `double` x                               | Performs the role of an activation function in machine learning         |\n| **[ft_softmax](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_softmax.c)** **[ft_softmaxf](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_softmaxf.c)**             | `double *` x, `int` size                 | Normalizes the input array `x` by exponentiating each element           |\n| **[ft_softmedian](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_softmedian.c)** **[ft_softmedianf](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_softmedianf.c)** | `double *` x, `int` size, `double` alpha | Defined as the weighted average of the elements in a vector `x`         |\n| **[ft_softmin](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_softmin.c)** **[ft_softminf](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_softminf.c)**             | `double *` x, `int` size, `double` alpha | Aka: softmax(-`x`)                                                      |\n| **[ft_swish](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_swish.c)** **[ft_swishf](https://github.com/TeomanDeniz/ft_math/blob/main/Neural_Network/ft_swishf.c)**                     | `double` x                               | Allows for a more flexible range of `x`                                 |\n\n# Constants:\n| Define Name                                                                                                                                                            | Value                                            |\n| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |\n| **[M_E](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L17)** **[M_E_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L72)**                  | `2.71828182845904523536` (Aka: `Euler's number`) |\n| **[M_LOG2E](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L20)** **[M_LOG2E_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L75)**          | `1.44269504088896340736` (Aka: `log2(e)`)        |\n| **[M_LOG10E](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L23)** **[M_LOG10E_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L78)**        | `0.43429448190325182765` (Aka: `log10(e)`)       |\n| **[M_LN2](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L26)** **[M_LN2_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L81)**              | `0.69314718055994528623` (Aka: `ln(2)`)          |\n| **[M_LN10](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L29)** **[M_LN10_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L84)**            | `2.30258509299404568402` (Aka: `ln(10)`)         |\n| **[M_PIX2](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L32)** **[M_PIX2_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L87)**            | `6.28318530717958647692` (Aka: `M_PI * 2`)       |\n| **[M_PIX2_3](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L35)** **[M_PIX2_3_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L90)**        | `4.71238898038400589261` (Aka: M_PI * 2 / 3)     |\n| **[M_PI](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L38)** **[M_PI_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L93)**                | `3.14159265358979323846` (π)                     |\n| **[M_PI_2](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L41)** **[M_PI_2_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L96)**            | `1.57079632679489661923` (Aka: `M_PI / 2`)       |\n| **[M_PI_4](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L44)** **[M_PI_4_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L99)**            | `0.78539816339744830961` (Aka: `M_PI / 4`)       |\n| **[M_1_PI](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L47)** **[M_1_PI_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L102)**           | `0.31830988618379067153` (Aka: `1 / M_PI`)       |\n| **[M_2_PI](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L50)** **[M_2_PI_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L105)**           | `0.63661977236758134307` (Aka: `2 / M_PI`)       |\n| **[M_SQRT2](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L53)** **[M_SQRT2_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L108)**         | `1.41421356237309504880` (Aka: `sqrt(2)`)        |\n| **[M_SQRT1_2](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L56)** **[M_SQRT1_2_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L111)**     | `0.70710678118654752440` (Aka: `1 / sqrt(2)`)    |\n| **[M_SQRTPI](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L59)** **[M_SQRTPI_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L114)**       | `1.77245385090551588191` (Aka: `sqrt(PI)`)       |\n| **[M_2_SQRTPI](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L62)** **[M_2_SQRTPI_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L117)**   | `1.12837916709551257390` (Aka: `2 / sqrt(pi)`)   |\n| **[M_INVSQRTPI](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L65)** **[M_INVSQRTPI_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L120)** | `0.56418958354775627928` (Aka: `invsqrt(pi)`)    |\n| **[M_TPI](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L68)** **[M_TPI_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L123)**             | `0.63661977236758138243` (Aka: `2 / PI`)         |\n\n# Trigonometric Constants:\n| Define Name                                                                                                                                                       | Value             |\n| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |\n| **[M_0DEG](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L129)** **[M_0DEG_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L151)**     | `0`               |\n| **[M_1DEG](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L132)** **[M_1DEG_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L154)**     | `0.0174532925199` |\n| **[M_45DEG](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L135)** **[M_45DEG_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L157)**   | `π / 4`           |\n| **[M_90DEG](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L138)** **[M_90DEG_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L160)**   | `π / 2`           |\n| **[M_180DEG](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L141)** **[M_180DEG_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L163)** | `π`               |\n| **[M_270DEG](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L144)** **[M_270DEG_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L166)** | `π * 2 / 3`       |\n| **[M_360DEG](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L147)** **[M_360DEG_F](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L169)** | `π * 2`           |\n\n# \u003cfloat.h\u003e Constants:\n| Define Name                                                                         | Value                           |\n| ----------------------------------------------------------------------------------- | ------------------------------- |\n| **[FLT_MAX](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L176)**      | `3.40282347E+38F`               |\n| **[FLT_MIN](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L179)**      | `1.17549435E-38F`               |\n| **[FLT_EPSILON](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L182)**  | `1.19209290E-7F`                |\n| **[DBL_MAX](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L187)**      | `1.7976931348623158E+308`       |\n| **[DBL_MIN](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L190)**      | `2.2250738585072014E-308`       |\n| **[DBL_EPSILON](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L193)**  | `2.2204460492503131E-16`        |\n| **[LDBL_MAX](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L198)**     | `1.18973149535723176502E+4932L` |\n| **[LDBL_MIN](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L201)**     | `3.36210314311209350626E-4932L` |\n| **[LDBL_EPSILON](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L204)** | `1.08420217248550443401E-19L`   |\n\n# Environments for **[ft_fpclassify](https://github.com/TeomanDeniz/ft_math/blob/main/Floating-point_Classification/ft_fpclassify.c)** function:\n| Define Name                                                                         | Value |\n| ----------------------------------------------------------------------------------- | ----- |\n| **[FP_NAN](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L210)**       |  `0`  |\n| **[FP_INFINITE](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L213)**  |  `1`  |\n| **[FP_ZERO](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L216)**      |  `2`  |\n| **[FP_SUBNORMAL](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L219)** |  `3`  |\n| **[FP_NORMAL](https://github.com/TeomanDeniz/ft_math/blob/main/ft_math.h#L222)**    |  `4`  |\n\n# A Few Example(s):\n```c\n#include\t\u003cstdio.h\u003e /*\n * int printf(char *str, ...);\n */\n\n#include\t\u003cmath.h\u003e\n\n#include\t\"ft_math.h\"\n\nint\n\tmain(void)\n{\n\tdouble x = 42;\n\tdouble y = 5;\n\n\tprintf(\"Trigonometric functions:\\n\");\n\tprintf(\"[   sin(%d) = %f]\\n\", x, sin(x));\n\tprintf(\"[ft_sin(%d) = %f]\\n\", x, ft_sin(x));\n\tprintf(\"\\n\");\n\tprintf(\"[   cos(%d) = %f]\\n\", x, cos(x));\n\tprintf(\"[ft_cos(%d) = %f]\\n\", x, ft_cos(x));\n\tprintf(\"\\n\");\n\tprintf(\"[   tan(%d) = %f]\\n\", x, tan(x));\n\tprintf(\"[ft_tan(%d) = %f]\\n\", x, ft_tan(x));\n\tprintf(\"\\n\");\n\tprintf(\"[   asin(%d) = %f]\\n\", x, asin(x));\n\tprintf(\"[ft_asin(%d) = %f]\\n\", x, ft_asin(x));\n\tprintf(\"\\n\");\n\tprintf(\"[   acos(%d) = %f]\\n\", x, acos(x));\n\tprintf(\"[ft_acos(%d) = %f]\\n\", x, ft_acos(x));\n\tprintf(\"\\n\");\n\tprintf(\"[   atan(%d) = %f]\\n\", x, atan(x));\n\tprintf(\"[ft_atan(%d) = %f]\\n\", x, ft_atan(x));\n\tprintf(\"\\n\");\n\tprintf(\"[   atan2(%d, %d) = %f]\\n\", x, y, atan2(x, y));\n\tprintf(\"[ft_atan2(%d, %d) = %f]\\n\", x, y, ft_atan2(x, y));\n\tprintf(\"\\n\\n\");\n\n\tprintf(\"[   log(%d) = %f]\\n\", x, log(x));\n\tprintf(\"[ft_log(%d) = %f]\\n\", x, ft_log(x));\n\tprintf(\"\\n\");\n\tprintf(\"[   log1p(%d) = %f]\\n\", x, log1p(x));\n\tprintf(\"[ft_log1p(%d) = %f]\\n\", x, ft_log1p(x));\n\tprintf(\"\\n\");\n\tprintf(\"[   log10(%d) = %f]\\n\", x, log10(x));\n\tprintf(\"[ft_log10(%d) = %f]\\n\", x, ft_log10(x));\n\tprintf(\"\\n\\n\");\n\n\tprintf(\"Power functions:\\n\");\n\tprintf(\"[   pow(%d, %d) = %f]\\n\", x, y, pow(x, y));\n\tprintf(\"[ft_pow(%d, %d) = %f]\\n\", x, y, ft_pow(x, y));\n\tprintf(\"\\n\");\n\tprintf(\"[   sqrt(%d) = %f]\\n\", x, sqrt(x));\n\tprintf(\"[ft_sqrt(%d) = %f]\\n\", x, ft_sqrt(x));\n\tprintf(\"\\n\\n\");\n\n\tdouble nan = (0.0 / 0.0);\n\tdouble inf = (1.0 / 0.0);\n\n\tprintf(\"[   isnan = %f]\\n\", isnan(nan));\n\tprintf(\"[ft_isnan = %f]\\n\", ft_isnan(nan));\n\tprintf(\"\\n\");\n\tprintf(\"[   isnan = %f]\\n\", isnan(-nan));\n\tprintf(\"[ft_isnan = %f]\\n\", ft_isnan(-nan));\n\tprintf(\"\\n\");\n\tprintf(\"[   ininf = %f]\\n\", isinf(inf));\n\tprintf(\"[ft_isinf = %f]\\n\", ft_isinf(inf));\n\tprintf(\"\\n\");\n\tprintf(\"[   ininf = %f]\\n\", isinf(-inf));\n\tprintf(\"[ft_ininf = %f]\\n\", ft_isinf(-inf));\n\tprintf(\"\\n\\n\");\n\n\tprintf(\"Other functions:\\n\");\n\tdouble pi = 3.1415;\n\tdouble temp = 0;\n\tprintf(\"[   fabs(%d) = %f]\\n\", -x, fabs(-x));\n\tprintf(\"[ft_fabs(%d) = %f]\\n\", -x, ft_fabs(-x));\n\tprintf(\"\\n\");\n\tprintf(\"[   fmod(%d, %d) = %f]\\n\", x, y, fmod(x, y));\n\tprintf(\"[ft_fmod(%d, %d) = %f]\\n\", x, y, ft_fmod(x, y));\n\tprintf(\"\\n\");\n\tprintf(\"[        modf = %f] {modf(pi, \u0026temp)}\\n\", modf(pi, \u0026temp));\n\tprintf(\"[   modf temp = %f] {temp}\\n\", temp);\n\tprintf(\"[     ft_modf = %f] {ft_modf(pi, \u0026temp)}\\n\", ft_modf(pi, \u0026temp));\n\tprintf(\"[ft_modf temp = %f] {temp}\\n\", temp);\n\n\treturn (0);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteomandeniz%2Fft_math","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteomandeniz%2Fft_math","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteomandeniz%2Fft_math/lists"}