- 11
- 0
- 约9.77千字
- 约 17页
- 2017-06-10 发布于河南
- 举报
Pascal uses Math 调用数学库(国外英文资料)
Pascal uses Math 调用数学库(国外英文资料)
USES invokes the Pascal database.
For example, USES Math calls the Math library.
Math library and practical summary
In FP, the Math library provides us with a rich mathematical function. The following are some functions and procedures in the Math library that you might use in OI.
Usage: load the Math library with the Uses statement in the program header
Example:
The Program Ex_Math;
Uses Math;
The Begin
Writeln (hypot (3, 4));
The End.
Function is introduced:
hypot
The prototype: function hypot (x: float; y: float) : float
Function: return the length of the longer side of a right triangle, which is SQRT (SQR (x) + SQR (y)).
ceil
Prototype: function ceil (x: float) : Integer
Function: the minimum integer that is larger than the parameter
Cause errors: overflow errors are caused when x exceeds the Integer
floor
Prototype: function floor (x: float) : Integer
Function: the maximum integer that returns a small parameter
Cause errors: overflow errors are caused when x exceeds the Integer
The power
Function power (base: float; exponent: float) : float
Function: return to base to exponent
Cause errors: when base is negative and exponent is a decimal
intpower
Prototype: function intpower (base: float; const exponent: Integer) : float
Function: return to base to exponent
ldexp
Prototype: function ldexp (x: float; const p: Integer) : float
Function: return 2 to the p times x
log10
Prototype: function log10 (x: float) : float
Function: the common logarithm of return x
log2
Prototype: function log2 (x: float) : float
Function: log base 2 of x
logn
The prototype: function logn (n: float; x: float) : float
Function: return x log base n
Max
The prototype: function Max (a: Integer; b: Integer) : Integer
Function Max (a: Int64; b: Int64) : Int64
Function Max (a: Extended; b: Extended) : Extended
Function: return a to the larger one in b
Min
The prototype: function Min (a: Integer; b: Integer) : Integer
Function Min (a: Int64; b: Int64) : Int64
Function
您可能关注的文档
- C语言答案(国外英文资料).doc
- dedecms详细模板制作教程(国外英文资料).doc
- DELL1400 bois设置(国外英文资料).doc
- dell笔记本1420bios设置(国外英文资料).doc
- dell 笔记本bios设置(国外英文资料).doc
- Delphi 使用动态方法创建的excel(国外英文资料).doc
- Delphi下利用SendInput模拟鼠标键盘(国外英文资料).doc
- Delphi中使用汇编例子(国外英文资料).doc
- delphi中获得文件或文件夹大小的函数(国外英文资料).doc
- Delphi操作Word的方法(国外英文资料).doc
- 党委2026年党建工作要点.pdf
- 年度预算管理制度.docx
- 2026年春江苏开放大学总书记关于教育的重要论述研究060702考核作业1.pdf
- 2026年春江苏开放大学总书记关于教育的重要论述研究060702考核作业1.docx
- 2026年春江苏开放大学施工安全技术与管理060982形考作业1-3答案.pdf
- 2026年春江苏开放大学施工安全技术与管理060982形考作业1答案.doc
- 2026年春江苏开放大学施工安全技术与管理060982形考作业1-3答案.docx
- 2026年春江苏开放大学施工安全技术与管理060982形考作业1答案.pdf
- 早发现、早介入、早化解——高一年级班级矛盾隐患闭环管理工作机制.pdf
- 2026年春江苏开放大学总书记关于教育的重要论述研究060702考核作业1.doc
原创力文档

文档评论(0)