Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
convert/rational - 浮動小数を近似する有理数に変換
使い方
convert( float, rational, digits )
convert( float, fraction, digits )
パラメータ
float - 浮動小数点数
digits - (オプション) 整数もしくは名前
説明
convert/rational は、浮動小数 を 近似する 有理数 に 変換します。タイプ fraction は、このような場合、rational と同じ意味をもちます。
変換の精度は、グローバル変数 Digits の値 または 引数 digits (整数) の値 で決まります。
3 番目の引数 digits が 名前 'exact' の場合、浮動少数は正確に有理数に変換されます。; Float(f,e) は f*10^e となります。 注意: exact での変換はシンプルなので、より速く 変換できます。
例
convert(0.125,rational);
convert(2.345,rational);
convert(0.3333333333,rational);
convert(0.3333333333,rational,exact);
convert(evalf(Pi),rational);
convert(evalf(Pi),rational,3);
convert(evalf(Pi),rational,exact);
参照
convert, Digits
Download Help Document