⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 m4_scalar.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 02apr2005}{...}
{cmd:help m4 scalar}
{hline}
{* index scalar functions}{...}
{* index mathematical functions}{...}

{title:Title}

{p 4 4 2}
{bf:[M-4] scalar -- Scalar mathematical functions}


{title:Contents}

{col 5}   [M-5]
{col 5}Manual entry{col 22}Function{col 39}Purpose
{col 5}{hline}

{col 5}   {c TLC}{hline 9}{c TRC}
{col 5}{hline 3}{c RT}{it: Complex }{c LT}{hline}
{col 5}   {c BLC}{hline 9}{c BRC}

{col 7}{bf:{help mf_re:Re()}}{...}
{col 22}{cmd:Re()}{...}
{col 39}real part
{col 22}{cmd:Im()}{...}
{col 39}imaginary part

{col 7}{bf:{help mf_c:C()}}{...}
{col 22}{cmd:C()}{...}
{col 39}make complex

{col 5}   {c TLC}{hline 14}{c TRC}
{col 5}{hline 3}{c RT}{it: Sign related }{c LT}{hline}
{col 5}   {c BLC}{hline 14}{c BRC}

{col 7}{bf:{help mf_abs:abs()}}{...}
{col 22}{cmd:abs()}{...}
{col 39}absolute value (length if complex)

{col 7}{bf:{help mf_sign:sign()}}{...}
{col 22}{cmd:sign()}{...}
{col 39}sign function
{col 22}{cmd:quadrant()}{...}
{col 39}quadrant of value

{col 7}{bf:{help mf_dsign:dsign()}}{...}
{col 22}{cmd:sign()}{...}
{col 39}FORTRAN-like DSIGN function

{col 7}{bf:{help mf_conj:conj()}}{...}
{col 22}{cmd:conj()}{...}
{col 39}complex conjugate

{col 5}   {c TLC}{hline 30}{c TRC}
{col 5}{hline 3}{c RT}{it: Transcendental & square root }{c LT}{hline}
{col 5}   {c BLC}{hline 30}{c BRC}

{col 7}{bf:{help mf_exp:exp()}}{...}
{col 22}{cmd:exp()}{...}
{col 39}exponentiation
{col 22}{cmd:ln()}, {cmd:log()}{...}
{col 39}natural logarithm
{col 22}{cmd:log10()}{...}
{col 39}base-10 logarithm

{col 7}{bf:{help mf_sqrt:sqrt()}}{...}
{col 22}{cmd:sqrt()}{...}
{col 39}square root

{col 7}{bf:{help mf_sin:sin()}}{...}
{col 22}{cmd:sin()}{...}
{col 39}sine
{col 22}{cmd:cos()}{...}
{col 39}cosine
{col 22}{cmd:tan()}{...}
{col 39}tangent
{col 22}{cmd:asin()}{...}
{col 39}arc sine
{col 22}{cmd:acos()}{...}
{col 39}arc cosine
{col 22}{cmd:atan()}{...}
{col 39}arc tangent
{col 22}{cmd:arg()}{...}
{col 39}argument of complex
{col 22}{cmd:atan2()}{...}
{col 39}two-argument arc tangent
{col 22}{cmd:sinh()}{...}
{col 39}hyperbolic sine
{col 22}{cmd:cosh()}{...}
{col 39}hyperbolic cosine
{col 22}{cmd:tanh()}{...}
{col 39}hyperbolic tangent
{col 22}{cmd:asinh()}{...}
{col 39}arc hyperbolic sine
{col 22}{cmd:acosh()}{...}
{col 39}arc hyperbolic cosine
{col 22}{cmd:atanh()}{...}
{col 39}arc hyperbolic tangent
{col 22}{cmd:pi()}{...}
{col 39}value of {it:pi}

{col 5}   {c TLC}{hline 19}{c TRC}
{col 5}{hline 3}{c RT}{it: Factorial & Gamma }{c LT}{hline}
{col 5}   {c BLC}{hline 19}{c BRC}

{col 7}{bf:{help mf_factorial:factorial()}}{...}
{col 22}{cmd:factorial()}{...}
{col 39}factorial
{col 22}{cmd:lnfactorial()}{...}
{col 39}natural logarithm of factorial
{col 22}{cmd:gamma()}{...}
{col 39}Gamma function
{col 22}{cmd:lngamma()}{...}
{col 39}natural logarithm of Gamma function
{col 22}{cmd:digamma()}{...}
{col 39}derivative of {cmd:lngamma()}
{col 22}{cmd:trigamma()}{...}
{col 39}second derivative of {cmd:lngamma()}

{col 5}   {c TLC}{hline 28}{c TRC}
{col 5}{hline 3}{c RT}{it: Modulus & integer rounding }{c LT}{hline}
{col 5}   {c BLC}{hline 28}{c BRC}

{col 7}{bf:{help mf_mod:mod()}}{...}
{col 22}{cmd:mod()}{...}
{col 39}modulus

{col 7}{bf:{help mf_trunc:trunc()}}{...}
{col 22}{cmd:trunc()}{...}
{col 39}truncate to integer
{col 22}{cmd:floor()}{...}
{col 39}round down to integer 
{col 22}{cmd:ceil()}{...}
{col 39}round up to integer 
{col 22}{cmd:round()}{...}
{col 39}round to closest integer or multiple

{col 5}{hline}


{title:Description}

{p 4 4 2}
With a few exceptions, the above functions are what most people would consider
scalar functions, although in fact all will work with matrices, in an
element-by-element fashion.


{title:Remarks}

{p 4 4 2}
For other mathematical functions, see 

{col 8}{...}
{bf:{help m4_matrix:[M-4] matrix}}{...}
{col 30}Matrix mathematical functions

{col 8}{...}
{bf:{help m4_mathematical:[M-4] mathematical}}{...}
{col 30}Important mathematical functions

{col 8}{...}
{bf:{help m4_statistical:[M-4] statistical}}{...}
{col 30}Statistical functions


{title:Also see}

{p 4 13 2}
Manual:  {hi:[M-4] scalar}

{p 4 13 2}
Online:  help for 
{bf:{help m4_intro:[M-4] intro}},
{bf:{help mata:[M-0] intro}}
{p_end}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -