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
frem - return the floating-point remainder
Calling Sequence
frem(x, y)
Parameters
x
-
extended_numeric or complex
y
Description
The frem(x, y) function returns r = x - y*n where n is the integer nearest the exact value x/y. The value of n is taken to be even in the case of a tie.
The rounding mode is not considered for this computation. If r = 0, then its sign is set to that of x.
If y is real, frem(x, y) maps onto complex numerics.
This function signals invalid_operation if y is unordered with 0 (unless y is already a NaN).
Note: If m and n are integers, frem(m, n) is not necessarily the same mathematical value as irem(m, n), since frem() computes by using the nearest integer to the quotient m/n, not the integer quotient of m by n.
Thread Safety
The frem command is thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
Examples
See Also
complex, exceptions, float, irem, Rounding
Download Help Document