Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
trunc - ある数を 0 に向かって最も近い整数へと切り捨てる
round - ある数を最も近い整数に丸める
frac - ある数の小数部分
floor - ある数以下の最大整数
ceil - ある数以上の最小整数
使い方
trunc(x) or trunc(n,x)
round(x) or round(n,x)
frac(x) or frac(n,x)
floor(x) or floor(n,x)
ceil(x) or ceil(n,x)
パラメータ
x - 任意の式
n - 任意の式、非負整数と仮定
説明
これらの関数は、数の整数部分、小数部分を計算します。実数 x に対して、
x >= 0 については、trunc(x) は x 以下の最大整数です。x < 0 については、trunc(x) = -trunc(-x) です。
round(x) は x を最も近い整数に丸めます。
frac(x) は x の 、すなわち、frac(x) = x - trunc(x) です。
floor(x) () は x 以下の最大整数です。
ceil(x) () は x 以上の最小整数です。
複素数の引数 x に対しては、
trunc(x) = trunc(Re(x)) + I*trunc(Im(x))
round(x) = round(Re(x)) + I*round(Im(x))
frac(x) = frac(Re(x)) + I*frac(Im(x))
floor(x)については、 a = Re(x)-floor(Re(x)) および b = Im(x)-floor(Im(x)) とします。このとき floor(x) = floor(Re(x)) + I*floor(Im(x)) + X です。ただし / 0 if a+b < 1 X = < 1 if a+b >= 1 and a >= b \ I if a+b >= 1 and a < b
ceil(x) = -floor(-x)
すべての関数について、引数が 2 つの場合は、関数の x における n 回微分を指示します。frac 以外については、これらの導関数はそれらが定義される所では常に 0 です。frac については、1 階微分はそれが定義される所で常に 1 です。
もし x が定数ならば、これらの関数は evalr() を使って慎重に x を浮動小数点数に評価しようとし、またそれら自身を結果に適用します。この計算は現在の Digits の設定で実行されます。もし evalr() が適用されている関数に関してあいまいな結果を返す場合、もとの関数は未評価値を返します。この場合は、Digits を増やせばいいかもしれません。
その他の場合はすべて、これらの関数は未評価値を返します。
例
trunc(7);
trunc(8/3);
trunc(-2.4);
trunc(Pi);
trunc(x);
trunc(3.5+4.2*I);
round(8/3);
frac(8/3);
floor(8/3);
floor(-2.4);
floor(2.7+3.5*I);
diff(floor(x),x);
floor(1,3.5);
関数が定義されていないときエラーが返されます。
floor(1,5);
Error, (in floor) floor is not differentiable at integers
floor(1,x);
ceil(8/3);
ceil(exp(3));
参照
inifcns
参考文献
McDonnell, E.E. " Integer functions of complex numbers, with applications". IBM Philadelphia Scientific Center Tech. Rep. 320-3015, Feb. 1973
Download Help Document