Skip to content

Commit

Permalink
ci: mbti
Browse files Browse the repository at this point in the history
  • Loading branch information
qazxcdswe123 committed Sep 30, 2024
1 parent ae9678e commit 7baf756
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions double/double.mbti
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let not_a_number : Double
impl Double {
abs(Double) -> Double
ceil(Double) -> Double
exp(Double) -> Double
exp(Double) -> Double //deprecated
floor(Double) -> Double
from_int(Int) -> Double
inf(Int) -> Double //deprecated
Expand All @@ -27,8 +27,8 @@ impl Double {
is_neg_inf(Double) -> Bool
is_pos_inf(Double) -> Bool
ln(Double) -> Double
log10(Double) -> Double
log2(Double) -> Double
log10(Double) -> Double //deprecated
log2(Double) -> Double //deprecated
min_normal() -> Double //deprecated
nan() -> Double //deprecated
round(Double) -> Double
Expand Down
4 changes: 3 additions & 1 deletion double/log.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ fn frexp(f : Double) -> (Double, Int) {
return (frac, exp)
}

/// @alert deprecated "Use `@math::ln` instead"
// The deprecation is commented out since it's also used by `log2` and `log10`
// can thus is not deprecated yet.
// /// @alert deprecated "Use `@math::ln` instead"
pub fn ln(self : Double) -> Double {
if self.is_nan() || self.is_inf() {
return self
Expand Down
8 changes: 8 additions & 0 deletions math/math.mbti
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ fn atan(Double) -> Double

fn cos(Double) -> Double

fn exp(Double) -> Double

fn ln(Double) -> Double

fn log10(Double) -> Double

fn log2(Double) -> Double

fn maximum[T : Compare + Eq](T, T) -> T

fn minimum[T : Compare + Eq](T, T) -> T
Expand Down

0 comments on commit 7baf756

Please sign in to comment.