From dc546ad8f0d5f4ccdb7ff05df3c4b2a0a6a21dc6 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Thu, 21 Jan 2021 03:02:29 +0300 Subject: [PATCH] Dump the version to 1.1.2 and fix the license field in occultist.json --- README.md | 108 ++++++++++++++++++++++++------------------------- occultist.json | 4 +- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/README.md b/README.md index 55f0e6f..4e9cac4 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ import math ## Mathematical Constants -### num math.pi() +### `num math.pi()` Returns the mathematical constant $\pi = 3.14159...$ @@ -21,7 +21,7 @@ kaos> math.pi() 3.14159 ``` -### num math.e() +### `num math.e()` Returns the mathematical constant $e = 2.71828...$ @@ -30,7 +30,7 @@ kaos> math.e() 2.71828 ``` -### num math.golden_ratio() +### `num math.golden_ratio()` Returns the mathematical constant $\phi = 1.61803...$ @@ -39,7 +39,7 @@ kaos> math.golden_ratio() 1.61803 ``` -### num math.inf() +### `num math.inf()` Returns the positive infinity `inf` constant. @@ -48,7 +48,7 @@ kaos> math.inf() inf ``` -### num math.nan() +### `num math.nan()` Returns the not-a-number `nan` constant. @@ -59,7 +59,7 @@ nan ## Trigonometric Functions -### num math.cos(num x) +### `num math.cos(num x)` Returns the cosine of `x`, in degrees. @@ -68,7 +68,7 @@ kaos> math.cos(60) 0.5 ``` -### num math.sin(num x) +### `num math.sin(num x)` Returns the sine of `x`, in degrees. @@ -77,7 +77,7 @@ kaos> math.sin(30) 0.5 ``` -### num math.tan(num x) +### `num math.tan(num x)` Returns the tangent of `x`, in degrees. @@ -86,7 +86,7 @@ kaos> math.tan(45) 1 ``` -### num math.acos(num x) +### `num math.acos(num x)` Returns the arc cosine of `x`, in degrees. @@ -95,7 +95,7 @@ kaos> math.acos(0.5) 60 ``` -### num math.asin(num x) +### `num math.asin(num x)` Returns the arc sine of `x`, in degrees. @@ -104,7 +104,7 @@ kaos> math.asin(0.5) 30 ``` -### num math.atan(num x) +### `num math.atan(num x)` Returns the arc tangent of `x`, in degrees. @@ -113,7 +113,7 @@ kaos> math.atan(1.0) 45 ``` -### num math.atan2(num x, num y) +### `num math.atan2(num x, num y)` Returns the arc tangent of `x` (x-coordinate) and `y` (y-coordinate) in degrees. Two parameters version of `atan()` @@ -124,7 +124,7 @@ kaos> math.atan2(-10.0, 10.0) ## Hyperbolic Functions -### num math.cosh(num x) +### `num math.cosh(num x)` Returns the hyperbolic cosine of `x`. @@ -133,7 +133,7 @@ kaos> math.cosh(0.693147) 1.25 ``` -### num math.sinh(num x) +### `num math.sinh(num x)` Returns the hyperbolic sine of `x`. @@ -142,7 +142,7 @@ kaos> math.sinh(0.693147) 0.75 ``` -### num math.tanh(num x) +### `num math.tanh(num x)` Returns the hyperbolic tangent of `x`. @@ -151,7 +151,7 @@ kaos> math.tanh(0.693147) 0.6 ``` -### num math.acosh(num x) +### `num math.acosh(num x)` Returns the nonnegative area hyperbolic cosine of `x`. @@ -160,7 +160,7 @@ kaos> math.acosh(3.762196) 2 ``` -### num math.asinh(num x) +### `num math.asinh(num x)` Returns the nonnegative area hyperbolic sine of `x`. @@ -169,7 +169,7 @@ kaos> math.asinh(3.626860) 2 ``` -### num math.atanh(num x) +### `num math.atanh(num x)` Returns the nonnegative area hyperbolic tangent of `x`. @@ -180,7 +180,7 @@ kaos> math.atanh(0.761594) ## Exponential and Logarithmic Functions -### num math.exp(num x) +### `num math.exp(num x)` Returns $e$ raised to the power of `x`: $e^x$ @@ -189,7 +189,7 @@ kaos> math.exp(5) 148.413 ``` -### num dict math.frexp(num x) +### `num dict math.frexp(num x)` Returns the mantissa and exponent of `x`: $x = {mantissa} \times 2^{exponent}$ @@ -202,7 +202,7 @@ kaos> frexp['exponent'] 4 ``` -### num math.ldexp(num x, num exp) +### `num math.ldexp(num x, num exp)` Returns the result of multiplying `x` by `2` raised to the power of `y`: $x \times 2 ^{y}$ @@ -213,7 +213,7 @@ kaos> math.ldexp(0.95, 4) 15.2 ``` -### num math.ln(num x) +### `num math.ln(num x)` Returns the natural logarithm of `x`: $lnx$ or $log_{e}x$ @@ -222,7 +222,7 @@ kaos> math.ln(5.5) 1.70475 ``` -### num math.log(num x, num b) +### `num math.log(num x, num b)` Returns the base-`b` logarithm of `x`: $log_{b}x$ @@ -231,7 +231,7 @@ kaos> math.log(81, 3) 4 ``` -### num math.log1p(num x) +### `num math.log1p(num x)` Returns the natural logarithm of `1 + x`: $ln(1 + x)$ or $log_{e}(1 + x)$ @@ -242,7 +242,7 @@ kaos> math.log1p(1.0) 0.693147 ``` -### num math.log2(num x) +### `num math.log2(num x)` Returns the base-`2` logarithm of `x`: $log_{2}x$ @@ -253,7 +253,7 @@ kaos> math.log2(1024.0) 10 ``` -### num math.log10(num x) +### `num math.log10(num x)` Returns the base-`10` logarithm of `x`: $log_{10}x$ @@ -264,7 +264,7 @@ kaos> math.log10(1000) 3 ``` -### num dict math.modf(num x) +### `num dict math.modf(num x)` Returns the integer and fractional parts of `x`. @@ -276,7 +276,7 @@ kaos> modf['fraction'] 0.141593 ``` -### num math.expm1(num x) +### `num math.expm1(num x)` Returns $e$ raised to the power of `x`, minus `1`: $e^x - 1$ @@ -287,7 +287,7 @@ kaos> math.expm1(1.0) ## Power Functions -### num math.pow(num x, num y) +### `num math.pow(num x, num y)` Returns `x` raised to the power of `y`: $x^y$ @@ -296,7 +296,7 @@ kaos> math.pow(2, 3) 8 ``` -### num math.sqrt(num x) +### `num math.sqrt(num x)` Returns the square root of `x`: $\sqrt{x}$ @@ -305,7 +305,7 @@ kaos> math.sqrt(1024) 32 ``` -### num math.cbrt(num x) +### `num math.cbrt(num x)` Returns the cubic root of `x`: $\sqrt[3]{x}$ @@ -314,7 +314,7 @@ kaos> math.cbrt(27) 3 ``` -### num math.hypot(num x, num y) +### `num math.hypot(num x, num y)` Returns the hypotenuse of a right-angled triangle whose legs are `x` and `y`: $\sqrt{x^2 + y^2}$ @@ -325,7 +325,7 @@ kaos> math.hypot(3.0, 4.0) ## Error and Gamma Functions -### num math.erf(num x) +### `num math.erf(num x)` Returns the [error function](https://en.wikipedia.org/wiki/Error_function) value for `x`. @@ -334,7 +334,7 @@ kaos> math.erf(1.0) 0.842701 ``` -### num math.erfc(num x) +### `num math.erfc(num x)` Returns the [complementary error function](https://en.wikipedia.org/wiki/Error_function#Complementary_error_function) value for `x`. @@ -343,7 +343,7 @@ kaos> math.erfc(1.0) 0.157299 ``` -### num math.gamma(num x) +### `num math.gamma(num x)` Returns the [gamma function](https://en.wikipedia.org/wiki/Gamma_function) at `x`. @@ -352,7 +352,7 @@ kaos> math.gamma(0.5) 1.77245 ``` -### num math.lgamma(num x) +### `num math.lgamma(num x)` Returns the natural logarithm of the absolute value of the [gamma function](https://en.wikipedia.org/wiki/Gamma_function) @@ -365,7 +365,7 @@ kaos> math.lgamma(0.5) ## Rounding and Remainder Functions -### num math.ceil(num x) +### `num math.ceil(num x)` Rounds `x` upward, returning the smallest integral value that is not less than `x`. @@ -376,7 +376,7 @@ kaos> math.ceil(-3.8) -3 ``` -### num math.floor(num x) +### `num math.floor(num x)` Rounds `x` downward, returning the largest integral value that is not greater than `x`. @@ -387,7 +387,7 @@ kaos> math.floor(-5.6) -6 ``` -### num math.mod(num x, num y) +### `num math.mod(num x, num y)` Computes the remainder that results from performing **integer** division of `x` by `y`. @@ -396,7 +396,7 @@ kaos> math.mod(23, 4) 3 ``` -### num math.fmod(num x, num y) +### `num math.fmod(num x, num y)` Computes the remainder that results from performing **floating-point** division of `x` by `y`. @@ -405,7 +405,7 @@ kaos> math.fmod(18.5, 4.2) 1.7 ``` -### num math.trunc(num x) +### `num math.trunc(num x)` Rounds `x` toward zero, returning the nearest integral value that is not larger in magnitude than `x`. @@ -416,7 +416,7 @@ kaos> math.trunc(-3.8) -3 ``` -### num math.round(num x) +### `num math.round(num x)` Returns the integral value that is nearest to `x`, with halfway cases rounded away from zero. @@ -427,7 +427,7 @@ kaos> math.round(-3.8) -4 ``` -### num math.remainder(num x, num y) +### `num math.remainder(num x, num y)` Returns the floating-point remainder of `x / y` (*rounded to nearest*). @@ -436,7 +436,7 @@ kaos> math.remainder(18.5, 4.2) 1.7 ``` -### num dict math.remquo(num x, num y) +### `num dict math.remquo(num x, num y)` Returns the same as `remainder()`, but also returns the `quotient`. @@ -450,7 +450,7 @@ kaos> remquo['quotient'] ## Floating-point Manipulation Functions -### num math.copysign(num x, num y) +### `num math.copysign(num x, num y)` Returns a value with the magnitude of `x` and the sign of `y`. @@ -459,7 +459,7 @@ kaos> math.copysign(-10.0, -1.0) -10 ``` -### num math.nextafter(num x, num y) +### `num math.nextafter(num x, num y)` Returns the next representable value after `x` in the direction of `y`. @@ -472,7 +472,7 @@ kaos> math.nextafter(0.0, -1.0) ## Other Functions -### num math.abs(num x) +### `num math.abs(num x)` Returns the absolute value of `x`: $\left | x \right |$ @@ -483,7 +483,7 @@ kaos> math.abs(-10.6) 10.6 ``` -### num math.factorial(num x) +### `num math.factorial(num x)` Returns the factorial of `x`. Returns `-1` if `x` is negative. @@ -496,7 +496,7 @@ kaos> math.factorial(-5) ## Boolean Functions -### bool math.is_finite(num x) +### `bool math.is_finite(num x)` Returns whether `x` is a finite value. @@ -507,7 +507,7 @@ kaos> math.is_finite(1.0 / 0.0) false ``` -### bool math.is_inf(num x) +### `bool math.is_inf(num x)` Returns whether `x` is an infinity value (*either positive infinity or negative infinity*). @@ -518,7 +518,7 @@ kaos> math.is_inf(1.0 / 0.0) true ``` -### bool math.is_nan(num x) +### `bool math.is_nan(num x)` Returns whether `x` is a `nan` (not-a-number) value. @@ -532,7 +532,7 @@ kaos> math.is_nan(nan_example) true ``` -### bool math.is_normal(num x) +### `bool math.is_normal(num x)` Returns whether `x` is a normal value: i.e., whether it is neither `inf`(*infinity*), `nan`(*not-a-number*), zero or subnormal. @@ -545,7 +545,7 @@ kaos> math.is_normal(1.0 / 0.0) false ``` -### bool math.is_positive(num x) +### `bool math.is_positive(num x)` Returns whether the sign of `x` is **positive**. @@ -556,7 +556,7 @@ kaos> math.is_positive(-1.0) false ``` -### bool math.is_negative(num x) +### `bool math.is_negative(num x)` Returns whether the sign of `x` is **negative**. diff --git a/occultist.json b/occultist.json index 18df4fa..063da8e 100644 --- a/occultist.json +++ b/occultist.json @@ -1,10 +1,10 @@ { "name": "math", - "version": "1.1.1", + "version": "1.1.2", "description": "Math library of Chaos language.", "tags": ["official", "math"], "type": "extension", - "license": "MIT", + "license": "LGPL-3.0", "authors": [ { "name": "M. Mert Yildiran",