From 7bf81befc029a43309af977f2579a0c36ba92f57 Mon Sep 17 00:00:00 2001 From: Kamrul Islam Shahin <44506464+shahin-cuet@users.noreply.github.com> Date: Sun, 11 Oct 2020 22:00:05 +0600 Subject: [PATCH] add values in trigonometric function --- 02_Day_Data_types/02_day_data_types.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/02_Day_Data_types/02_day_data_types.md b/02_Day_Data_types/02_day_data_types.md index 0e82901..5f8d186 100644 --- a/02_Day_Data_types/02_day_data_types.md +++ b/02_Day_Data_types/02_day_data_types.md @@ -235,17 +235,17 @@ console.log(Math.log(10)) // 2.302585092994046 console.log(Math.LN2) // 0.6931471805599453 console.log(Math.LN10) // 2.302585092994046 -// Returns the natural logarithm with base 10 of x, Math.log10(x) +// Returns the common 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) +Math.sin(0) // 0 +Math.sin(60) // -0.3048106211 -Math.cos(0) -Math.cos(60) +Math.cos(0) // 1 +Math.cos(60) // -0.95241298041 ``` #### Random Number Generator