欢迎来到天天文库
浏览记录
ID:12661245
大小:32.00 KB
页数:10页
时间:2018-07-18
《数值计算函数(numerical calculation function)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、数值计算函数(Numericalcalculationfunction)ThenumericalcalculationfunctionofPbfunctionlibraryAuthor:unknownupdatetime:2005-05-18(Abs)Absolutevalueoffunctioncalculation.SyntaxAbs(n)Parametern:anumericvariableorexpressionthatgetstheabsolutevalue.ThereturnedvaluereturnsthesametypeofdataasthedatatypeofN
2、,andreturnstheabsolutevalueofnwhenthefunctionsucceeds.IftheparameternisNULL,theAbs()functionreturnsNULL.--------------------------------------------------------------------------------Ceiling()Functionreturnsthesmallestintegergreaterthann.SyntaxCeiling(n)Parametern:anumericvariableorexpressio
3、nthatreturnsavaluewhosedatatypeisthesameasthedatatypeofn.Whenthefunctionsucceeds,itreturnsthesmallestintegergreaterthann.IftheparameternisNULL,theCeiling()functionreturnsNULL.--------------------------------------------------------------------------------(Cos)Thefunctioncalculatesthecosine,in
4、whichtheparametersaremeasuredinradians.SyntaxCos(n)Argumentn:numericvariableorexpressionreturnedvalueDouble.Whenthefunctionsucceeds,thecosineofthenisreturned.IftheparameternisNULL,theCos()functionreturnsNULL.--------------------------------------------------------------------------------(Exp)
5、ThefunctioncalculatesthenpowerofE.SyntaxExp(n)Parametern:SpecifiesthepowerreturnvalueDouble.Whenthefunctionsucceeds,itreturnstheN-E(approximatelyequalto2.71828).IftheparameternisNULL,theExp()functionreturnsNULL.--------------------------------------------------------------------------------(F
6、act)Functioncalculatesthefactorialofn.SyntaxFact(n)Argumentn:numericvariableorexpressionreturnedvalueDouble.Whenthefunctionsucceeds,thefactorialofthenisreturned.IftheparameternisNULL,theFact()functionreturnsNULL.--------------------------------------------------------------------------------(
7、Int)Functiongetsamaximumintegerlessthanorequalton.SyntaxInt(n)Argumentn:numericvariableorexpressionreturnedvalueInteger.Whenthefunctionsucceeds,itreturnsthelargestintegerlessthanorequalton.Ifthevalueofnistoosmallortoolargetoexceedtherangeofth
此文档下载收益归作者所有