D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Math
/
Filename :
lgamma-c.ri
back
Copy
U:RDoc::AnyMethod[iI"lgamma:ETI"Math::lgamma;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"-Returns a 2-element array equivalent to:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"?[Math.log(Math.gamma(x).abs), Math.gamma(x) < 0 ? -1 : 1] ;T:@format0o; ; [I"kSee {logarithmic gamma function}[https://en.wikipedia.org/wiki/Gamma_function#The_log-gamma_function].;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I",Domain: <tt>(-INFINITY, INFINITY]</tt>.;To;;0; [o; ; [I"<Range of first element: <tt>(-INFINITY, INFINITY]</tt>.;To;;0; [o; ; [I"Second element is -1 or 1.;T@o; ; [I"Examples:;T@o;; [I"&lgamma(-4.0) # => [Infinity, -1] ;TI"&lgamma(-3.0) # => [Infinity, -1] ;TI"&lgamma(-2.0) # => [Infinity, -1] ;TI"&lgamma(-1.0) # => [Infinity, -1] ;TI"%lgamma(0.0) # => [Infinity, 1] ;TI" ;TI" lgamma(1.0) # => [0.0, 1] ;TI" lgamma(2.0) # => [0.0, 1] ;TI"/lgamma(3.0) # => [0.6931471805599436, 1] ;TI"/lgamma(4.0) # => [1.7917594692280545, 1] ;TI" ;TI"2lgamma(-2.5) # => [-0.05624371649767279, -1] ;TI"/lgamma(-1.5) # => [0.8600470153764797, 1] ;TI"/lgamma(-0.5) # => [1.265512123484647, -1] ;TI"/lgamma(0.5) # => [0.5723649429247004, 1] ;TI"1lgamma(1.5) # => [-0.12078223763524676, 1] ;TI"3lgamma(2.5) # => [0.2846828704729205, 1] ;T; 0o; ; [I"Related: Math.gamma.;T: @fileI"math.c;T:0@omit_headings_from_table_of_contents_below0I"(Math.lgamma(x) -> [float, -1 or 1] ;T0[ I" (p1);T@?FI" Math;TcRDoc::NormalModule00