有理数クラス(RationalNumber.java)

Product Information

$27.57
cart Add to cart favorites Add to favorites
User Guide

Developer

avatar
kumapon
×

Negotiate Price

Request Code Sample Direct message

Jul 25, 2019

Public chat

Product Details

有理数を表すJavaのクラスです。
BigIntegerオブジェクトを使用した、「誤差のない」有理数演算をサポートしています。
有理数の四則演算に加え、 約分、逆数、べき乗、大小の比較、絶対値を計算するメソッドを持っています。
使い方:
通常のJavaのクラスと同じように、RationalNumberクラスのオブジェクトを生成し、addメソッドやsubtractメソッド等を使用して有理数の計算を行います。
計算結果は、toString()メソッドによる文字列表現か、分子と分母を表すBigIntegerオブジェクトを取得することができます。
丸めによる計算誤差が発生しないため、厳密な計算に使用することができます。
特に、分子と分母の整数に意味があるような計算において効果を発揮します。

File Tree

  • 📁 有理数クラス(RationalNumber.java)

Price Information

Price Statistics

Highest Price
$27.57
Average Price
$27.57
Lowest Price
$27.57
AI Price Forecast
$20.07

Insights

Limited Preview Only


Real Product Contains All Files And Full Code

Check dependencies

See product external dependencies

Randomly Selected Sample File

Project File Statistics

Hierarchy

Choose a sample file
X
user-symbol

Stay in touch

Get Practical Tips For Business and Developers.

Learn about PieceX Community Needs for Source Code Projects.

Be the First to Know PieceX Newest Free Community Code Projects.