日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 前端技术 > javascript >内容正文

javascript

np.expm1_JavaScript中带有示例的Math.expm1()方法

發(fā)布時(shí)間:2025/3/11 javascript 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 np.expm1_JavaScript中带有示例的Math.expm1()方法 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

np.expm1

JavaScript | Math.expm1()方法 (JavaScript | Math.expm1() Method)

Math operations in JavaScript are handled using functions of math library in JavaScript. In this tutorial on Math.expm1() method, we will learn about the expm1() method and its working with examples.

JavaScript中的數(shù)學(xué)運(yùn)算是使用JavaScript中的數(shù)學(xué)庫(kù)函數(shù)處理的。 在有關(guān)Math.expm1()方法的本教程中,我們將學(xué)習(xí)expm1()方法及其示例。

Math.expm1() is a function in math library of JavaScript that is used to support math's operation of ep-1 of a number p. Where, e is a mathematical constant with value 2.718.

Math.expm1()是JavaScript數(shù)學(xué)庫(kù)中的一個(gè)函數(shù),用于支持?jǐn)?shù)字p的e p -1的數(shù)學(xué)運(yùn)算。 其中, e是一個(gè)數(shù)學(xué)常數(shù),值為2.718 。

Syntax:

句法:

Math.expm1(p);

Parameter(s):

參數(shù):

  • p – It takes only one value which is the number.

    p –僅采用一個(gè)值即數(shù)字。

Return value:

返回值:

The return type of this method is number, it returns the result of the expression ep-1.

該方法的返回類(lèi)型為number ,它返回表達(dá)式e p -1的結(jié)果。

Example 1:

范例1:

console.log(Math.expm1(0))

Output

輸出量

0

The value of e0 - 1 = 0

e 0-1 = 0的值

Example 2: printing valid results for the function

示例2:為該函數(shù)打印有效結(jié)果

console.log(Math.expm1(2)) console.log(Math.expm1(2.32)) console.log(Math.expm1(-5)) console.log(Math.expm1(Math.log10(43)))

Output

輸出量

6.38905609893065 9.175674306073333 -0.9932620530009145 4.121608017082989

Example 2: Tring values that will provide invalid results for the function.

示例2:Tring值將為該函數(shù)提供無(wú)效的結(jié)果。

console.log(Math.expm1(C)) /*Uncaught ReferenceError: C is not definedat <anonymous>:1:24*/console.log(Math.expm1("include help")) /*NaN*/

翻譯自: https://www.includehelp.com/code-snippets/math-expm1-method-with-example-in-JavaScript.aspx

np.expm1

總結(jié)

以上是生活随笔為你收集整理的np.expm1_JavaScript中带有示例的Math.expm1()方法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。