Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Numeric
/
//opt/alt/ruby21/share/ri/2.1.0/system/Numeric/cdesc-Numeric.ri
U:RDoc::NormalClass[iI"Numeric:ET@I"Object;To:RDoc::Markup::Document:@parts[o;;[S:RDoc::Markup::Heading: leveli: textI" mathn;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph;[I"Jmathn is a library for changing the way Ruby does math. If you need ;TI"Dmore precise rounding with multiple division or exponentiation ;TI".operations, then mathn is the right tool.;T@o; ;[I"Without mathn:;T@o:RDoc::Markup::Verbatim;[I"3 / 2 => 1 # Integer ;T:@format0o; ;[I"With mathn:;T@o;;[I"3 / 2 => 3/2 # Rational ;T;0o; ;[I"Omathn features late rounding and lacks truncation of intermediate results:;T@o; ;[I"Without mathn:;T@o;;[I")20 / 9 * 3 * 14 / 7 * 3 / 2 # => 18 ;T;0o; ;[I"With mathn:;T@o;;[I")20 / 9 * 3 * 14 / 7 * 3 / 2 # => 20 ;T;0o; ;[I"QWhen you require 'mathn', the libraries for Prime, CMath, Matrix and Vector ;TI"are also loaded.;T@S; ; i;I"Copyright;T@o; ;[I"-Author: Keiju ISHITSUKA (SHL Japan Inc.);T: @fileI"lib/mathn.rb;T:0@omit_headings_from_table_of_contents_below0o;;[o; ;[I" The top-level number class.;T;I"numeric.c;T;0;0;0[ [ [[I"Comparable;To;;[ ;@?;0I"numeric.c;T[[I" class;T[[:public[ [:protected[ [:private[ [I" instance;T[[;[/[I"%;T@G[I"+@;T@G[I"-@;T@G[I"<=>;T@G[I"abs;T@G[I" abs2;TI"complex.c;T[I" angle;T@c[I"arg;T@c[I" ceil;T@G[I"coerce;T@G[I" conj;T@c[I"conjugate;T@c[I"denominator;TI"rational.c;T[I"div;T@G[I"divmod;T@G[I" eql?;T@G[I" fdiv;T@G[I" floor;T@G[I"i;T@G[I" imag;T@c[I"imaginary;T@c[I"initialize_copy;T@G[I" integer?;T@G[I"magnitude;T@G[I"modulo;T@G[I" nonzero?;T@G[I"numerator;T@r[I" phase;T@c[I" polar;T@c[I"quo;T@r[I" real;T@c[I" real?;T@G[I" rect;T@c[I"rectangular;T@c[I"remainder;T@G[I" round;T@G[I"singleton_method_added;T@G[I" step;T@G[I" to_c;T@c[I"to_int;T@G[I" truncate;T@G[I" zero?;T@G[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[ I"complex.c;T@9@?I"rational.c;T@�cRDoc::TopLevel