From 649c7c054a9e837fe6f9ec4f2d21e88d7f7a0a21 Mon Sep 17 00:00:00 2001 From: Kamrul Islam Shahin <44506464+shahin-cuet@users.noreply.github.com> Date: Sun, 11 Oct 2020 21:39:31 +0600 Subject: [PATCH] add some variation of Logarithmic function --- 02_Day_Data_types/02_day_data_types.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/02_Day_Data_types/02_day_data_types.md b/02_Day_Data_types/02_day_data_types.md index 198ae2b..0e82901 100644 --- a/02_Day_Data_types/02_day_data_types.md +++ b/02_Day_Data_types/02_day_data_types.md @@ -231,7 +231,16 @@ console.log(Math.E) // 2.718 console.log(Math.log(2)) // 0.6931471805599453 console.log(Math.log(10)) // 2.302585092994046 +// Returns the natural logarithm of 2 and 10 respectively +console.log(Math.LN2) // 0.6931471805599453 +console.log(Math.LN10) // 2.302585092994046 + +// Returns the natural logarithm with base 10 of x, Math.log10(x) +console.log(Math.log10(2)) // 0.3010299956639812 +console.log(Math.log10(10)) // 1 + // Trigonometry +// Returns the value in radians Math.sin(0) Math.sin(60)