From 2538a7e752a2d285ee9a2613983795da9ed9ef1f Mon Sep 17 00:00:00 2001 From: Koustav Chowdhury Date: Sat, 13 Jul 2019 00:15:56 +0530 Subject: [PATCH] math : fix typos --- vlib/math/fraction.v | 2 +- vlib/math/math.v | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vlib/math/fraction.v b/vlib/math/fraction.v index d4e25ff4c9..cf1dfb6a85 100644 --- a/vlib/math/fraction.v +++ b/vlib/math/fraction.v @@ -35,7 +35,7 @@ pub fn (f1 Fraction) + (f2 Fraction) Fraction { } } -// Fraction substract using operator overloading +// Fraction subtract using operator overloading pub fn (f1 Fraction) - (f2 Fraction) Fraction { if f1.d == f2.d { return Fraction{f1.n - f2.n, f1.d} diff --git a/vlib/math/math.v b/vlib/math/math.v index e81bb3aa9c..c7ef41dadc 100644 --- a/vlib/math/math.v +++ b/vlib/math/math.v @@ -65,7 +65,7 @@ pub fn atan(a f64) f64 { return C.atan(a) } -// atan2 calculates inverseed tangent with two arguments, returns angle between the X axis and the point. +// atan2 calculates inversed tangent with two arguments, returns angle between the X axis and the point. pub fn atan2(a, b f64) f64 { return C.atan2(a, b) } @@ -75,7 +75,7 @@ pub fn cbrt(a f64) f64 { return C.cbrt(a) } -// ceil returns the nearest integer equal or higher to the provided value. +// ceil returns the nearest integer greater or equal to the provided value. pub fn ceil(a f64) f64 { return C.ceil(a) } @@ -142,7 +142,7 @@ pub fn factorial(a int) i64 { return prod } -// floor returns the nearest integer equal or lower of the provided value. +// floor returns the nearest integer lower or equal of the provided value. pub fn floor(a f64) f64 { return C.floor(a) } @@ -187,7 +187,7 @@ pub fn lcm(a, b i64) i64 { return res } -// log calculates natural (base e) logarithm of the provided value. +// log calculates natural (base-e) logarithm of the provided value. pub fn log(a f64) f64 { return C.log(a) } @@ -220,7 +220,7 @@ pub fn max(a, b f64) f64 { return b } -// min returns the minimum value of all the values provided. +// min returns the minimum value of the two provided. pub fn min(a, b f64) f64 { if a < b { return a @@ -253,7 +253,7 @@ pub fn sinh(a f64) f64 { return C.sinh(a) } -// sqrt calculates square of the provided value. +// sqrt calculates square-root of the provided value. pub fn sqrt(a f64) f64 { return C.sqrt(a) }