首页 > 其他分享 >VBA中的数学公式

VBA中的数学公式

时间:2022-08-29 18:13:08浏览次数:59  
标签:数学公式 VBA Inverse Log Hyperbolic Atn Sqr Exp

Table 3-5. Visual Basic math functions General
Abs Exp Fix Int Log
Rnd Sgn Sqr   
Trigonometric
Atn Cos Sin Tan
Financial
DDB FV IPmt IRR MIRR
NPer NPV Pmt PPmt PV
Rate SLN SYD   




Table 3-6. Derived math functions Function Formula
Secant (Sec) 1 / Cos(x)
Cosecant (Cosec) 1 / Sin(x)
Cotangent (Cotan) 1 / Tan(x)
Inverse Sine (Arcsin) Atn(x / Sqr(-x * x + 1))
Inverse Cosine (Arccos) Atn(-x / Sqr(-x * x + 1)) + 2 * Atn(1)
Inverse Secant (Arcsec) Atn(x / Sqr(x * x - 1)) + Sgn((x) - 1) * (2 * Atn(1))
Inverse Cosecant (Arccosec) Atn(Sgn(x) / Sqr(x * x 1))
Inverse Cotangent (Arccotan) 2 * Atn(1) - Atn(x)
Hyperbolic Sine (HSin) (Exp(x) - Exp(-x)) / 2
Hyperbolic Cosine (HCos) (Exp(x) + Exp(-x)) / 2
Hyperbolic Tangent (HTan) (Exp(x) - Exp(-x)) / (Exp(x) + Exp(-x))
Hyperbolic Secant (HSec) 2 / (Exp(x) + Exp(-x))
Hyperbolic Cosecant (HCosec) 2 / (Exp(x) - Exp(-x))
Hyperbolic Cotangent (HCotan) (Exp(x) + Exp(-x)) / (Exp(x) - Exp(-x))
Inverse Hyperbolic Sine (HArcsin) Log(x + Sqr(x * x + 1))
Inverse Hyperbolic Cosine (HArccos) Log(x + Sqr(x * x - 1))
Inverse Hyperbolic Tangent (HArctan) Log((1 + x) / (1 x)) / 2
Inverse Hyperbolic Secant (HArcsec) Log((Sqr(-x * x + 1) + 1) / x)
Inverse Hyperbolic Cosecant (HArccosec) Log((Sgn(x) * Sqr(x * x + 1) + 1) / x)
Inverse Hyperbolic Cotangent (HArccotan) Log(x + Sqr(x * x - 1))
Logarithm to base N (LogN) Log(x) / Log(n)

标签:数学公式,VBA,Inverse,Log,Hyperbolic,Atn,Sqr,Exp
From: https://www.cnblogs.com/dogingate/p/16636867.html

相关文章

  • VBA登录SAP
    VBA代码DimSAPexePathAsStringDimuserAsString,pwdAsString,langAsString,clientAsString,sysnameAsStringSAPexePath="C:\ProgramFiles......
  • Latex写数学公式
    公式请到这里写https://latexlive.com/home勾股定理\[a^2+b^2=c^2\]一元二次方程组\[ax^2+bx+c=0\]\[x={-b\pm\sqrt{b^2-4ac}\over2a}\]圆的标准方程......
  • vba 数组判断与转换
    PrivateFunctionCountArr(arr)'*****************************'计算数组是几维数组'*****************************Dimi%,j%OnErrorGoToerrFori=1To10......
  • vba
    VBAVBA是VB的一个子集,主要用于office软件中。1.数据类型数字byte 0~255integer -32768~32767long -2,147,483,648~2,147,483,648single 负值:-3.402823......