E is the base e.vbs_vbs of the natural logarithm

Source: Internet
Author: User
Tags natural logarithm
' e=1+1/1! +1/2! +1/3! +1/4! +......+1/n!
' Φkρ=αe
' Wherein, alpha and k are constants, φ is polar, and rho is the polar diameter, and E is the base of the natural logarithm. For the sake of discussion, we define e or the form of "natural law" through a certain transformation and composition of E. Therefore, the core of the "natural Law" is E, whose value is 2.71828 ..., is an infinite number of loops.
' E= (1+1/x) ^x
' Made by Correy
' qq:112426112
' Email:leguanyuan@126.com
' The first method of calculation
E=1
M=1
N=0
Do Until n=99
M= (n+1) *m
e=e+1/m
N=n+1
Loop
WScript.Echo E
' The second method of calculation utilizes the language itself.
E = exp (1)
WScript.Echo E
' The third method of calculation is not very accurate.
x=999999999
E= (1+1/x) ^x
WScript.Echo E

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.